LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-01-2009, 12:18 AM   #1
DylanB
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
Can't open USB port (ckermit)


Hello all,

I am having some trouble opening up my USB ports using kermit. I didn't have this problem until yesterday. Before then I could use kermit to access USB ports via:

$ kermit -l /dev/ttyUSB0

Now when I do this I get an error saying can't access device.

I had two ubuntu versions on my computer when the error initially occurred, 8.04lts and 9.04. At the time I was using 8.04 so I decided to restart and use 9.04 to see if the same error occurred, and it did. After this I decided to reformat the whole HD and just install 8.04. Still I get the same error.

This seems very puzzling. Literally one minute it was working and the next it was not. No system changes, nothing. I have tried USB1, USB2 etc with the same error. I looked in /dev and can't see any ttyUSB* at all.

I have no trouble using a USB mouse, or an external HD, or anything else it seems. I just can't get the port to open. I have also tried to open the port to read data from an IMU. That was when it first stopped working actually. I unplugged the IMU to straighten a pin and then after that the port would not open.

Any input would be great as I am completely baffled by this. I don't know if this makes any sense but my hypothesis is that something has been switched (almost physically)in the way the port is communicated with (or something like that) and thats why I can't open it even when I reformat.

Thanks in advance,
Dylan.

I read this thread and tried a few things:
http://www.linuxquestions.org/questi...evices-585426/
No success.
 
Old 09-01-2009, 10:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by DylanB View Post
Hello all,

I am having some trouble opening up my USB ports using kermit. I didn't have this problem until yesterday. Before then I could use kermit to access USB ports via:

$ kermit -l /dev/ttyUSB0

Now when I do this I get an error saying can't access device.

I had two ubuntu versions on my computer when the error initially occurred, 8.04lts and 9.04. At the time I was using 8.04 so I decided to restart and use 9.04 to see if the same error occurred, and it did. After this I decided to reformat the whole HD and just install 8.04. Still I get the same error.

This seems very puzzling. Literally one minute it was working and the next it was not. No system changes, nothing. I have tried USB1, USB2 etc with the same error. I looked in /dev and can't see any ttyUSB* at all.

I have no trouble using a USB mouse, or an external HD, or anything else it seems. I just can't get the port to open. I have also tried to open the port to read data from an IMU. That was when it first stopped working actually. I unplugged the IMU to straighten a pin and then after that the port would not open.

Any input would be great as I am completely baffled by this. I don't know if this makes any sense but my hypothesis is that something has been switched (almost physically)in the way the port is communicated with (or something like that) and thats why I can't open it even when I reformat.

Thanks in advance,
Dylan.

I read this thread and tried a few things:
http://www.linuxquestions.org/questi...evices-585426/
No success.
Possibly a dumb question, but since you're using USB via minicom, I assume you're using a USB to serial device? Did you verify that the converter is still working, or that you don't have a bad cable?

Since you ran a good diagnostic chain, and even rebooted (and reformatted!), your system, chances of it being a device lock or some other software problem are slim. Can you post the output of "ls -l /dev/ttyUSB0", and "dmesg" (from after you plug the USB converter in)
 
Old 09-01-2009, 10:21 PM   #3
DylanB
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hello,

Yes it is a USB-to-RS232 cable.

Print out from "dmesg"

[ 217.064980] usb 2-2: new full speed USB device using uhci_hcd and address 7
[ 217.175347] usb 2-2: device not accepting address 7, error -71
[ 217.209096] usb 2-2: new full speed USB device using uhci_hcd and address 8
[ 217.346527] usb 2-2: device not accepting address 8, error -71
[ 217.389377] usb 2-2: new full speed USB device using uhci_hcd and address 9
[ 217.433947] usb 2-2: device descriptor read/64, error -71
[ 217.510571] usb 2-2: device descriptor read/64, error -71
[ 217.569490] usb 2-2: new full speed USB device using uhci_hcd and address 10
[ 217.609253] usb 2-2: device descriptor read/64, error -71
[ 217.713319] usb 2-2: device descriptor read/64, error -71


Print out from "ls -l /dev/ttyUSB0"

ls: cannot access /dev/ttyUSB0: No such file or directory

I have tried to use (as root):
"echo Y > /sys/module/usbcore/parameters/old_scheme_first"
http://www.mepis.org/node/5860

Also I tried (as root):
"echo -1 > /sys/module/usbcore/parameters/autosuspend"
http://ubuntuforums.org/showthread.php?t=797789

Both were unsuccessful. I'm not sure what else to try. If there is somekind of error when I insert the cable does that mean that the driver is not working properly?

I have also removed "brltty" (some variety of braille package) that apparently conflicts with ttyUSB0. Of course, unsuccessful , but i don't think that had anything to do with it based on the "dmesg" output.
https://answers.launchpad.net/ubuntu/+question/5503

I'm going to get another cable and try that. I have already tried another of the same make. Perhaps that is where the problem lies, although I have used the current cable successfully more that 50 times. The only other options I can think of involve hammers...

Dylan.
 
Old 09-02-2009, 12:47 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,656

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by DylanB View Post
Hello,

Yes it is a USB-to-RS232 cable.

Print out from "dmesg"

[ 217.064980] usb 2-2: new full speed USB device using uhci_hcd and address 7
[ 217.175347] usb 2-2: device not accepting address 7, error -71
[ 217.209096] usb 2-2: new full speed USB device using uhci_hcd and address 8
[ 217.346527] usb 2-2: device not accepting address 8, error -71
[ 217.389377] usb 2-2: new full speed USB device using uhci_hcd and address 9
[ 217.433947] usb 2-2: device descriptor read/64, error -71
[ 217.510571] usb 2-2: device descriptor read/64, error -71
[ 217.569490] usb 2-2: new full speed USB device using uhci_hcd and address 10
[ 217.609253] usb 2-2: device descriptor read/64, error -71
[ 217.713319] usb 2-2: device descriptor read/64, error -71


Print out from "ls -l /dev/ttyUSB0"

ls: cannot access /dev/ttyUSB0: No such file or directory

I'm going to get another cable and try that. I have already tried another of the same make. Perhaps that is where the problem lies, although I have used the current cable successfully more that 50 times. The only other options I can think of involve hammers...

Dylan.
Well, hammers are certainly more fun, but not as effective.

You've walked a good diagnostic trail, but based on the error from dmesg, and on the lack of the /dev/ttyUSB0 device, it indicates a hardware problem. The dmesg lines say it tried to create the device, but couldn't get good results from the hardware. The lack of the ttyUSB0 says that too, since it'll 'auto-create' when you plug it in. There is information about that 'read/64' error on some of the kernel mailing lists, but it essentially says "hardware problem".

One other thing it COULD be...did you try a different USB port? The USB hardware on your system could have died too, and the dongle could be fine...
 
  


Reply

Tags
open, port, ubuntu, usb



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
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
LXer: Poseidon USB Stack Bounty Reached: Open Source, AROS Port LXer Syndicated Linux News 0 05-24-2009 01:00 AM
Kermit/CKermit or replacement in Slackware? randomsel Slackware 7 01-20-2008 09:18 AM
Unable to open USB port : Permission denied After 7.10 upgrade Fixed_it Ubuntu 1 12-26-2007 11:15 AM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM

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

All times are GMT -5. The time now is 10:08 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