Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
On 9/30/14 15:50 , Stefano Miccoli wrote: On 30 Sep 2014, at 08:32, Johan Ström > wrote: Hi all, picking this up again. Lets summarize the main points: * auto-detection can only be relied on for certain pure USB devices * auto-detection can not be relied on when "s

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
Hi, thanks for your feedback! On 9/30/14 20:08 , Der Tiger wrote: > ReHi Johan, > > On 30/09/14 08:32, Johan Ström wrote: >> * auto-detection can only be relied on for certain pure USB devices >> * auto-detection can not be relied on when "standard" serial bridge >> chips are used > While plug&pla

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Der Tiger
Hi Paul, On 24/09/14 01:58, Paul Alfille wrote: > Ok, I'm perplexed! > I need help mapping device name (e.g. /dev/ttyUSB0) to USB bus:devnum > that I get in libusb. > I can probably do it by parsing 'dmesg' but that's rather inelegant. > Perhaps the data is somewhere in /sys or /proc? Enumeration

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Der Tiger
ReHi Johan, On 30/09/14 08:32, Johan Ström wrote: > * auto-detection can only be relied on for certain pure USB devices > * auto-detection can not be relied on when "standard" serial bridge > chips are used While plug&play detecting USB devices (including serial interface converters) is integral p

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Paul Alfille
Ok, here is my code for mapping USB devices to tty devices. It's a script and needs to be tested on various platforms. --- #!/bin/sh # find all directories with busnum (they are USB devices) usbdirs=$(find /sys/devices -name "busnum" -printf "%h\n") # look at ever

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Stefano Miccoli
On 30 Sep 2014, at 08:32, Johan Ström wrote: > Hi all, > > picking this up again. Lets summarize the main points: > > * auto-detection can only be relied on for certain pure USB devices > * auto-detection can not be relied on when "standard" serial bridge chips are > used > * if we can resolv

Re: [Owfs-developers] Issues with FTDI based USB-Serial dongle & DS2480B

2014-09-30 Thread Johan Ström
Hi all, picking this up again. Lets summarize the main points: * auto-detection can only be relied on for certain pure USB devices * auto-detection can not be relied on when "standard" serial bridge chips are used * if we can resolve /dev/ttyUSB0 to a particular USB device, we can potentially sel