You are not logged in.

#1 2012-05-30 04:28:42

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

USB <-> Serial cable on ttyUSB0 connects and disconnects immediately

Hey guys,

I have a USB <-> Serial cable that when plugged in, is picked up fine and is assigned /dev/ttyUSB0, but for some reason it disconnects immediately. At best it stayed connected for maybe 30 seconds (which I am unable to reproduce). I am running the stock Arch Kernel 3.3.7-1. I am connecting it to the back of my PC, to the main USB inputs, and not to a USB Hub or anything. I tried running "udevadm info -a -n /dev/ttyUSB0" but the device disconnects before I even get a chance to press enter.

My question how can I make the device stay connected while it is plugged in? Do I need to write a udev rule to give it a persistent name or something? I tried looking around, but I didn't come across any real insight. So, I decided to make a post while I continue to search for a solution. smile

May 29 21:01:46 localhost kernel: [10199.272328] usb 5-2: new full-speed USB device number 8 using uhci_hcd
May 29 21:01:46 localhost kernel: [10199.451064] ftdi_sio 5-2:1.0: FTDI USB Serial Device converter detected
May 29 21:01:46 localhost kernel: [10199.451097] usb 5-2: Detected FT232BM
May 29 21:01:46 localhost kernel: [10199.451099] usb 5-2: Number of endpoints 2
May 29 21:01:46 localhost kernel: [10199.451102] usb 5-2: Endpoint 1 MaxPacketSize 64
May 29 21:01:46 localhost kernel: [10199.451104] usb 5-2: Endpoint 2 MaxPacketSize 64
May 29 21:01:46 localhost kernel: [10199.451107] usb 5-2: Setting MaxPacketSize 64
May 29 21:01:46 localhost kernel: [10199.453084] usb 5-2: FTDI USB Serial Device converter now attached to ttyUSB0
May 29 21:01:46 localhost kernel: [10199.501144] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
May 29 21:01:46 localhost kernel: [10199.501159] ftdi_sio 5-2:1.0: device disconnected

EDIT: Just did a little test, if the cable is plugged in while the system boots it stays connected longer. But as soon as I fire up VirtualBox to access the cable it disconnects. What I am trying to do is, I have a flash cart that I am trying to write some stuff to, but the drivers are only available for win98, win2k and xpsp1. So I figured maybe I could run WinXP in virtualbox and access the flash cart through there. But as noted above the kernel disconnects the cable as vm boots. It won't even work in a win7 host. Guess i'll have to natively install winxp and just use that or try with QEMU.

[    6.067427] usbcore: registered new interface driver usbserial
[    6.067447] USB Serial support registered for generic
[    6.067521] usbcore: registered new interface driver usbserial_generic
[    6.067524] usbserial: USB Serial Driver core
[    6.086202] USB Serial support registered for FTDI USB Serial Device
[    6.086315] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[    6.086359] usb 5-1: Detected FT232BM
[    6.086362] usb 5-1: Number of endpoints 2
[    6.086365] usb 5-1: Endpoint 1 MaxPacketSize 64
[    6.086367] usb 5-1: Endpoint 2 MaxPacketSize 64
[    6.086369] usb 5-1: Setting MaxPacketSize 64
[    6.089338] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0
[    6.089355] usbcore: registered new interface driver ftdi_sio
[    6.089357] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

[   98.668113] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[   98.668134] ftdi_sio 5-1:1.0: device disconnected

Last edited by KingX (2012-06-02 06:32:36)

Offline

#2 2019-02-03 21:17:25

deemytch
Member
Registered: 2009-11-28
Posts: 27

Re: USB <-> Serial cable on ttyUSB0 connects and disconnects immediately

Hi KingX. I have the same problem now. Did you got what was happened? Are you resolved that issue?

Offline

#3 2019-02-03 21:32:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,409

Re: USB <-> Serial cable on ttyUSB0 connects and disconnects immediately

The thread is close to 7 years old, it is very unlikely that you have the exact same cause and problem now. Please open up your own thread with your own details about the issue.

Don't necrobump

Closing.

Offline

Board footer

Powered by FluxBB