On Tue, 2007-04-24 at 20:37 +0300, ik wrote:
> Hello,
> 
> I have a serial usb device, that from time to time disconnect
> according to the kernel (dmesg):
> 
> usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
> ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from 
> ttyUSB0
> 
> And then as you can see, the kernel assign it to a new address.
> 
> I'm looking either at a hint of what should I be looking on what
> causing it to disconnect, or for a bash/perl (or C) way to find what
> is the active usb /dev/ device to use.
> 
> The kernel I'm using is 2.6 (at the moment 2.6.20) on Fedora Core 6.
> 
> Any hints and tips on the subject are more then welcome
> 
> Thanks,
> 
> 
> Ido

In general, if you want to access the USB using C code, you'll need to
check /usr/include/usb.h or specifically, usb_find_busses,
usb_find_devices, usb_open and usb_claim_interface.

- Gilboa


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Reply via email to