Find the usb device pragmatically

2007-04-24 Thread ik
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

Re: Find the usb device pragmatically

2007-04-24 Thread Oded Shimon
On Tue, Apr 24, 2007 at 08:37:12PM +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 disconne

Re: Find the usb device pragmatically

2007-04-25 Thread Maxim Veksler
On 4/24/07, ik <[EMAIL PROTECTED]> 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

Re: Find the usb device pragmatically

2007-04-25 Thread Gilboa Davara
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 fr

Re: Find the usb device pragmatically

2007-04-25 Thread Ehud Karni
On Tue, 24 Apr 2007 20:37:12 ik wrote: > > 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 > >

Re: Find the usb device pragmatically

2007-04-28 Thread ik
Hi, First of all I wish to thank you all for the answers. It seems that adding rules to udev made the job, and now the device is always ttyUSB0. Thanks, Ido On 4/25/07, Ehud Karni <[EMAIL PROTECTED]> wrote: On Tue, 24 Apr 2007 20:37:12 ik wrote: > > I have a serial usb device, that from time

Re: Find the usb device pragmatically

2007-04-28 Thread Amos Shapira
On 26/04/07, Ehud Karni <[EMAIL PROTECTED]> wrote: point. If you have only one such usb device you can do something like this (in bash): DEV=`echo /dev/ttyUSB?` and you'll get your device. Just as a side note - the "echo" is redundant, it's enough to do "DEV=/dev/ttyUSB?" --Amos (crusader ag

Re: Find the usb device pragmatically

2007-04-28 Thread Maxim Veksler
On 4/28/07, Amos Shapira <[EMAIL PROTECTED]> wrote: On 26/04/07, Ehud Karni <[EMAIL PROTECTED]> wrote: > point. If you have only one such usb device you can do something like > this (in bash): DEV=`echo /dev/ttyUSB?` and you'll get your device. Just as a side note - the "echo" is redundant, it's

Re: Find the usb device pragmatically

2007-04-29 Thread Amos Shapira
On 29/04/07, Maxim Veksler <[EMAIL PROTECTED]> wrote: You would love http://partmaps.org/era/unix/award.html Thanks. I did :) --Amos