LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2013, 07:33 AM   #1
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Rep: Reputation: Disabled
how do I access/enable the ttyUSB0 port in the /dev directory of Fedora 17 ?


I need to access the ttyUSB0 port on my labtop. I am using minicom and Fedora 17. When I check the /dev directory there is a listing of all the other ports (i.e. tty0, ttyS0, usbmon0, usbmon1 etc ...) but no listing for ttyUSB0. What do I have to do enable and access it ? Your help would be much appreciated.
 
Old 12-14-2013, 08:22 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,019

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
Welcome to LinuxQuestions.

Post the output of the command lsusb.
Do you have USB serial port adapter connected or some other device?
 
Old 12-14-2013, 08:45 AM   #3
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I have a mini2440 (i.e. target) attached to one of my usb ports.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 064e:a219 Suyin Corp. 1.3M WebCam (notebook emachines E730, Acer sub-brand)
Bus 002 Device 003: ID 045e:0053 Microsoft Corp. Optical Mouse
 
Old 12-14-2013, 08:53 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,019

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
So what are you trying to accomplish?
 
Old 12-14-2013, 09:11 AM   #5
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I am using a NFS to download executable images to the target. In order to achieve this objective I need to establish communication through one of my USB ports. The user guide accompanying the ELLK kit requires one to configure a port and suggests ttyS0, ttyS1, or if you are using USB to serial convertor, the correct device is most likely ttyUSB0. Based on this I surmise that I am after ttyUSB0 ? I have tried all the others listed in /dev including usbmon0, usbmon1, usbmon2, and ttyS0, ttyS1. At best I got a stream of characters (i.e. gibberish) when configuring the port as usbmon0 this occured when I hit the reset button on the target. I take this as a good sign although I have since come to understand that usbmon0 port is special port and although it is behaving as it should it is not the one that I am after. On a further note my mouse also produces the same gibberish that occurs with the reset button. I really appreciate your efforts here.
 
Old 12-14-2013, 09:24 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,019

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
Do you have a USB serial port adapter connected to the computer? If so it does not seem to be recognised.

I assume you are trying to connect your PC to the console port of the mini2440. Do you have the serial port cable that came with the kit?
 
Old 12-14-2013, 09:35 AM   #7
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
I have the serial port cable that came with the kit connected to the console port on the mini2440 and at the other end I have the cable connected directly the usb port on my computer.
 
Old 12-14-2013, 10:29 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,019

Rep: Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850Reputation: 1850
I'm not real familiar with the mini2440. The documentation found indicates the serial cable is not USB. Is their a nine pin connector on your device? The 9 pin connector would connect to a real serial port (ttyS0) or USB adapter (ttyUSB0) on the PC.
 
Old 12-14-2013, 10:39 AM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
Quote:
Originally Posted by Shweitzer View Post
I have the serial port cable that came with the kit connected to the console port on the mini2440 and at the other end I have the cable connected directly the usb port on my computer.
What do the two ends of the cable look like? From what it looks like on their site, the console port is your typical DE9 RS-232 port, not USB, and it doesn't look like they provide a USB to serial adapter, you would need to purchase one yourself. It's going to have a DE9 connector on one side and a USB-A connector on the other side.

DE9:
http://upload.wikimedia.org/wikipedi...le_closeup.jpg

USB-A (second from the right):
http://upload.wikimedia.org/wikipedi...connectors.JPG

/dev/ttyUSB0 won't be created until you plug in a USB to serial adapter. Since you're not seeing it, that tells me you're not using a USB to serial adapter currently, or it's not being recognized by the system (this would be rare, I've used tons of different USB to serial adapters in Linux and have never found one that didn't work immediately out of the box).

Last edited by suicidaleggroll; 12-14-2013 at 10:42 AM.
 
Old 12-14-2013, 11:31 AM   #10
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
The serial cable that I have connected to the labtop is illustrated in the USB-A pictures. The end that is connected to usb port on my labtop is the one second from the right with the other end connected directly to the target 1st from the right. I am not familiar with the term console that you were refering to and I had mistakenly thought it was the port on the target that the 1st from the right plugged into. No matter my bad.

The user guide is rather vague, and it mentions at one point that I am to connect the serial cable to the workstation port selected in the minicom setup and plug the other end into the target. There is no mention of the need for a usb to serial adapter as it goes on to say be sure to use the cable that came with the kit. Most female-to-female serial cables ae crossovers (null modem) but the cable for the Mini2440 is straight through. Do I still require a usb to serial adapter ? Again I really appreciate the efforts that you have made.
 
Old 12-14-2013, 12:57 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
That's not a serial cable, that's a USB cable. You need a 9 pin (DE9) RS-232 serial cable (I'm guessing the board came with one of these too?). If your computer does not have a 9 pin DE9 serial port, then you need a USB to serial adapter like this one:
http://www.amazon.com/Tripp-Lite-Ser...serial+adapter

As for crossover (null modem) versus straight, you probably need null modem, but I usually find it's easiest to just get a null modem adapter and then use it or not with either type of cable (it turns straight through into null modem and null modem into straight through). Something like this:
http://www.monoprice.com/Product?c_i...seq=1&format=2
 
Old 12-14-2013, 01:55 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,169

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Also be advised
Fedora 17 is and has been UNSUPPORTED for the last 6 months
Fedora 18 will hit it's End of Life in a month or so
you might want to install fedora 19
And/or in about 30 days install fedora 20
 
Old 12-15-2013, 11:16 AM   #13
Shweitzer
LQ Newbie
 
Registered: Nov 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thanks much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Issue Device /dev/ttyUSB0 access failed: No such file or directory. treschen Linux - Software 10 07-30-2017 01:36 PM
Minicom showing intermittent console output thro' /dev/ttyUSB0 port varunb Linux - Newbie 4 10-04-2011 06:54 AM
Is it possible to access an IrDA device as a serial device such as /dev/ttyUSB0? cricketlong Linux - Hardware 1 05-24-2011 03:11 PM
Ubuntu - How to determine which process has /dev/ttyUSB0 port open? EricNZ Ubuntu 4 01-16-2011 05:51 PM
Cannot access /dev/ttyUSB0 for garmin gps rooman Linux - Hardware 4 11-03-2010 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration