LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2012, 03:03 AM   #1
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Rep: Reputation: 0
Unhappy USB Issue Device /dev/ttyUSB0 access failed: No such file or directory.


Hey Guys

I need your assistance, when i run minicom i get the following error

Device /dev/ttyUSB0 access failed: No such file or directory.

For some reason my laptop does not ttyUSB0

How would i fix this ?

some output below

[root@dell3750 dev]# ls -l /dev/ttyUSB0
ls: cannot access /dev/ttyUSB0: No such file or directory
 
Old 09-20-2012, 04:43 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Pi OS & Android
Posts: 11,779

Rep: Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387Reputation: 1387
Try ls -l /dev/ttyACM*

If they are not there, grep your kernel .config for SERIAL options. CONFIG_USB_SERIAL would be a show stopper if not set. Kernel configs are usually config-version files in /boot
 
Old 09-20-2012, 06:03 AM   #3
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi I tried the following (ls -l /dev/ttyACM*) with no positive result returned.


What do i edit ? apologies i am quite new to linux

Please see below



CONFIG_USB_USS720=m
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_CONSOLE=y
CONFIG_USB_EZUSB=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_AIRCABLE=m
CONFIG_USB_SERIAL_ARK3116=m
CONFIG_USB_SERIAL_BELKIN=m
CONFIG_USB_SERIAL_CH341=m
CONFIG_USB_SERIAL_WHITEHEAT=m
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m
CONFIG_USB_SERIAL_CP210X=m
CONFIG_USB_SERIAL_CYPRESS_M8=m
CONFIG_USB_SERIAL_EMPEG=m
CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_FUNSOFT=m
CONFIG_USB_SERIAL_VISOR=m
CONFIG_USB_SERIAL_IPAQ=m
CONFIG_USB_SERIAL_IR=m
CONFIG_USB_SERIAL_EDGEPORT=m
CONFIG_USB_SERIAL_EDGEPORT_TI=m
# CONFIG_USB_SERIAL_F81232 is not set
CONFIG_USB_SERIAL_GARMIN=m
CONFIG_USB_SERIAL_IPW=m
CONFIG_USB_SERIAL_IUU=m
CONFIG_USB_SERIAL_KEYSPAN_PDA=m
CONFIG_USB_SERIAL_KEYSPAN=m
CONFIG_USB_SERIAL_KLSI=m
CONFIG_USB_SERIAL_KOBIL_SCT=m
CONFIG_USB_SERIAL_MCT_U232=m
# CONFIG_USB_SERIAL_METRO is not set
CONFIG_USB_SERIAL_MOS7720=m
CONFIG_USB_SERIAL_MOS7715_PARPORT=y
CONFIG_USB_SERIAL_MOS7840=m
CONFIG_USB_SERIAL_MOTOROLA=m
CONFIG_USB_SERIAL_NAVMAN=m
CONFIG_USB_SERIAL_PL2303=m
CONFIG_USB_SERIAL_OTI6858=m
CONFIG_USB_SERIAL_QCAUX=m
CONFIG_USB_SERIAL_QUALCOMM=m
CONFIG_USB_SERIAL_SPCP8X5=m
CONFIG_USB_SERIAL_HP4X=m
CONFIG_USB_SERIAL_SAFE=m
CONFIG_USB_SERIAL_SAFE_PADDED=y
CONFIG_USB_SERIAL_SIEMENS_MPI=m
CONFIG_USB_SERIAL_SIERRAWIRELESS=m
CONFIG_USB_SERIAL_SYMBOL=m
CONFIG_USB_SERIAL_TI=m
CONFIG_USB_SERIAL_CYBERJACK=m
CONFIG_USB_SERIAL_XIRCOM=m
CONFIG_USB_SERIAL_WWAN=m
CONFIG_USB_SERIAL_OPTION=m
CONFIG_USB_SERIAL_OMNINET=m
CONFIG_USB_SERIAL_OPTICON=m
CONFIG_USB_SERIAL_VIVOPAY_SERIAL=m
# CONFIG_USB_SERIAL_ZIO is not set
CONFIG_USB_SERIAL_SSU100=m
CONFIG_USB_SERIAL_QT2=m
CONFIG_USB_SERIAL_DEBUG=m
 
Old 09-20-2012, 06:58 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,408

Rep: Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551
Lets start at the beginning...
What linux distribution/version are you running?
What type of USB device is this?

Post the output of the lsusb command so we can see if the device is being recognized and its chipset.
You can also look at the output of the dmesg command to see if there are any messages pertaining to it.

Last edited by michaelk; 09-20-2012 at 07:00 AM.
 
Old 09-20-2012, 07:14 AM   #5
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Hi I am running Fedora 17 (dell vostro 3750 laptop)

3.5.3-1.fc17.x86_64

Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 003: ID 045e:00f6 Microsoft Corp. Comfort Optical Mouse 1000
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 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 138a:0011 Validity Sensors, Inc.
Bus 001 Device 005: ID 1bcf:2b81 Sunplus Innovation Technology Inc.
Bus 002 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 002 Device 003: ID 8086:0189 Intel Corp.

[ 47.728151] usb 3-2: new low-speed USB device number 2 using xhci_hcd
[ 47.746490] usb 3-2: New USB device found, idVendor=045e, idProduct=00f6
[ 47.746501] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 47.746507] usb 3-2: Product: Comfort Optical Mouse 1000
[ 47.746511] usb 3-2: Manufacturer: Microsoft
[ 47.748170] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 47.752092] input: Microsoft Comfort Optical Mouse 1000 as /devices/pci0000:00/0000:00:1c.2/0000:03:00.0/usb3/3-2/3-2:1.0/input/input13
[ 47.753166] hid-generic 0003:045E:00F6.0001: input,hidraw0: USB HID v1.11 Mouse [Microsoft Comfort Optical Mouse 1000] on usb-0000:03:00.0-2/input0
[ 54.934000] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 61.371382] Adjusting tsc more than 11% (8568192 vs 8492368)
[ 157.217934] /dev/vmmon[2498]: PTSC: initialized at 2192901000 Hz using TSC, TSCs are synchronized.
[ 157.580234] /dev/vmmon[2498]: Monitor IPI vector: 0
[ 159.709674] /dev/vmnet: open called by PID 2552 (vmx-vcpu-0)
[ 159.709686] /dev/vmnet: port on hub 0 successfully opened
[ 168.602906] /dev/vmnet: open called by PID 2552 (vmx-vcpu-0)
[ 168.602917] /dev/vmnet: port on hub 0 successfully opened
[ 176.268792] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 176.495432] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 178.986302] usb 3-2: USB disconnect, device number 2
[ 182.899764] usb 3-2: new low-speed USB device number 3 using xhci_hcd
[ 182.917004] usb 3-2: New USB device found, idVendor=045e, idProduct=00f6
[ 182.917014] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 182.917020] usb 3-2: Product: Comfort Optical Mouse 1000
[ 182.917024] usb 3-2: Manufacturer: Microsoft
[ 182.917559] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
[ 182.921437] input: Microsoft Comfort Optical Mouse 1000 as /devices/pci0000:00/0000:00:1c.2/0000:03:00.0/usb3/3-2/3-2:1.0/input/input14
[ 182.922488] hid-generic 0003:045E:00F6.0002: input,hidraw0: USB HID v1.11 Mouse [Microsoft Comfort Optical Mouse 1000] on usb-0000:03:00.0-2/input0
[ 214.459241] usb 2-1.3: new full-speed USB device number 4 using ehci_hcd
[ 214.544734] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 214.544738] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 214.544740] usb 2-1.3: Product: USB-Serial Controller
[ 214.544742] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 214.579140] usbcore: registered new interface driver pl2303
[ 214.579160] USB Serial support registered for pl2303
[ 214.579183] pl2303 2-1.3:1.0: pl2303 converter detected
[ 214.580780] usb 2-1.3: pl2303 converter now attached to ttyUSB0
[ 220.613053] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 220.613097] pl2303 2-1.3:1.0: device disconnected
[ 220.744562] usb 2-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 220.829590] usb 2-1.3: device firmware changed
[ 220.830074] usb 2-1.3: USB disconnect, device number 4
[ 220.894045] usb 2-1.3: new full-speed USB device number 5 using ehci_hcd
[ 220.979963] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 220.979972] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 220.979978] usb 2-1.3: Product: USB-Serial Controller
[ 220.979992] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 221.435111] usb 2-1.3: reset full-speed USB device number 5 using ehci_hcd
[ 221.658510] usb 2-1.3: reset full-speed USB device number 5 using ehci_hcd
[ 274.061494] usb 2-1.3: USB disconnect, device number 5
[ 280.614388] usb 2-1.3: new full-speed USB device number 6 using ehci_hcd
[ 280.699963] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 280.699973] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 280.699978] usb 2-1.3: Product: USB-Serial Controller
[ 280.699983] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 280.700761] pl2303 2-1.3:1.0: pl2303 converter detected
[ 280.702759] usb 2-1.3: pl2303 converter now attached to ttyUSB0
[ 295.059441] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 295.059480] pl2303 2-1.3:1.0: device disconnected
[ 295.187276] usb 2-1.3: reset full-speed USB device number 6 using ehci_hcd
[ 295.272315] usb 2-1.3: device firmware changed
[ 295.272814] usb 2-1.3: USB disconnect, device number 6
[ 295.347732] usb 2-1.3: new full-speed USB device number 7 using ehci_hcd
[ 295.433287] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 295.433291] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 295.433293] usb 2-1.3: Product: USB-Serial Controller
[ 295.433294] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 295.961664] usb 2-1.3: reset full-speed USB device number 7 using ehci_hcd
[ 296.124330] usb 2-1.3: reset full-speed USB device number 7 using ehci_hcd
[ 2363.342005] pl2303 2-1.3:1.0: pl2303 converter detected
[ 2363.344547] usb 2-1.3: pl2303 converter now attached to ttyUSB0
[ 2367.019116] /dev/vmmon[3973]: PTSC: initialized at 2192901000 Hz using TSC, TSCs are synchronized.
[ 2368.887535] /dev/vmnet: open called by PID 4027 (vmx-vcpu-0)
[ 2368.887548] /dev/vmnet: port on hub 0 successfully opened
[ 2375.661613] /dev/vmnet: open called by PID 4027 (vmx-vcpu-0)
[ 2375.661622] /dev/vmnet: port on hub 0 successfully opened
[ 2377.212785] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 2377.440486] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 2413.961208] /dev/vmnet: open called by PID 4027 (vmx-vcpu-0)
[ 2413.961237] /dev/vmnet: port on hub 0 successfully opened
[ 2419.212007] /dev/vmnet: open called by PID 4027 (vmx-vcpu-0)
[ 2419.212019] /dev/vmnet: port on hub 0 successfully opened
[ 2422.077116] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 2422.298854] usb 1-1.3: reset full-speed USB device number 4 using ehci_hcd
[ 2778.929728] usb 2-1.3: USB disconnect, device number 7
[ 2778.930437] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 2778.930474] pl2303 2-1.3:1.0: device disconnected
[ 2787.025631] usb 2-1.3: new full-speed USB device number 8 using ehci_hcd
[ 2787.111810] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 2787.111820] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2787.111826] usb 2-1.3: Product: USB-Serial Controller
[ 2787.111831] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 2787.112792] pl2303 2-1.3:1.0: pl2303 converter detected
[ 2787.115009] usb 2-1.3: pl2303 converter now attached to ttyUSB0
[ 2791.006307] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 2791.006324] pl2303 2-1.3:1.0: device disconnected
[ 2791.130902] usb 2-1.3: reset full-speed USB device number 8 using ehci_hcd
[ 2791.216091] usb 2-1.3: device firmware changed
[ 2791.216334] usb 2-1.3: USB disconnect, device number 8
[ 2791.289706] usb 2-1.3: new full-speed USB device number 9 using ehci_hcd
[ 2791.375878] usb 2-1.3: New USB device found, idVendor=067b, idProduct=2303
[ 2791.375888] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2791.375893] usb 2-1.3: Product: USB-Serial Controller
[ 2791.375898] usb 2-1.3: Manufacturer: Prolific Technology Inc.
[ 2791.906602] usb 2-1.3: reset full-speed USB device number 9 using ehci_hcd
[ 2792.069293] usb 2-1.3: reset full-speed USB device number 9 using ehci_hcd
 
Old 09-20-2012, 07:30 AM   #6
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
The usb device i am using is a usb to serial converter used for console access to cisco routers
 
Old 09-20-2012, 05:21 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,408

Rep: Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551Reputation: 3551
It looks like the device is being recognised and /dev/ttyUSB0 is being created. However, the device looks like it connects and disconnects.

Post the output of the command:
lsusb -v -d 067b:2303
 
Old 09-21-2012, 06:05 AM   #8
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
It looks like the device is being recognised and /dev/ttyUSB0 is being created. However, the device looks like it connects and disconnects.

Post the output of the command:
lsusb -v -d 067b:2303


Hi, i have no output after issuing that command
 
Old 09-21-2012, 06:20 AM   #9
treschen
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
ok i switched to another usb port

and get the following output from lsusb -v -d 067b:2303

Bus 002 Device 014: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x067b Prolific Technology, Inc.
idProduct 0x2303 PL2303 Serial Port
bcdDevice 3.00
iManufacturer 1 Prolific Technology Inc.
iProduct 2 USB-Serial Controller
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
 
Old 07-30-2017, 12:43 PM   #10
parasthedev
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
Thumbs up

As this post is on the top of Google while searching for "ls: cannot access '/dev/ttyACM*': No such file or directory" or "ls: cannot access '/dev/ttyUSB*': No such file or directory" , and I hope my answer would help someone.

In my case when plugging in the Arduino uno or Arduino Pro mini, there is no device under Tools->ports.
But the LED on Arduino for Power and L both are On, so what is the problem ?, Why can't my PC detect the usb port.

Answer is I didn't plugged in the cable to Arduino board properly, push the cable into port of Arduino until you heard the sound of "TUCK", to ensure that the cable is plugged in properly.

P.S. - Loose cable can power up the Arduino board but remains undetected on PC.
 
Old 07-30-2017, 01:36 PM   #11
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Try
Code:
$ sudo minicom -s
serial port setup. Then, enter the device. Save the configuration. Exit, and it should work. You can also try
Code:
$ ls /dev/ttyUSB0
to make sure it's there. You can also try
Code:
$ watch ls /dev/ttyUSB0
to continuously monitor the presence of the device.
 
  


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
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
Cannot access /dev/ttyUSB0 for garmin gps rooman Linux - Hardware 4 11-03-2010 02:22 PM
How to access the nodes under the /dev directory to access the device? Nishant Desai Programming 2 11-18-2006 04:09 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
serial to USB, trying to read from /dev/ttyUSB0 in C code newguy21 Programming 1 09-29-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 AM.

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
Open Source Consulting | Domain Registration