Hi Paul,

thanks for playing around .... ;)

Am Samstag, den 08.05.2010, 08:09 -0400 schrieb Paul Alfille:
> Playing with an adapter:
> 
> OWFS:
> bus.0/interface/settings/address = "005/040"
> 
> lshal:
> udi= 'org/freedesktop/Hal/devices/usb_device_4fa_2490_noserial'
> ....
>   usb.device.bus_number = 5
>   usb.device.linux.device.number = 40
> 
> lsusb:
> Bus 005 Device 040: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1
> Fob, 1-Wire adapter
> 
> Note that 04fa is the vendor number and 2490 the device number.
> 
> So we can link the device as seen by OWFS with the device as
> enumerated by Hal ( and presumably DBUS ).
> The question is can you identify a physical DS9490R device and it's
> bus with a particular bus/device number combination? I can't figure
> out how to do that.
> 
> Taking a step back, does it really matter which interface (bus master)
> is which? All the sensors are uniquely identified.
> 
> In any case, I can add a feature to identify the USB
> bus_number/Device_number pair to use on the command line.. What do you
> think of:
> 
> -u 5/40
> or
> -u 5:40

thumbs up for this too ;)

> (for the device as seen above.)
> 
> -----------------------------
> 
> Test with 2 DS9490s
> 
> lsusb:
> Bus 001 Device 006: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1
> Fob, 1-Wire adapter
> Bus 001 Device 005: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1
> Fob, 1-Wire adapter
> 
> lshal: (partial)
> udi = '/org/freedesktop/Hal/devices/usb_device_4fa_2490_noserial_0'
>   info.udi = '/org/freedesktop/Hal/devices/usb_device_4fa_2490_noserial_0'
>  (string)
>   linux.device_file = '/dev/bus/usb/001/006'  (string)
>   linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:0c.2/usb1/1-4/1-4.1'  (string)
>   usb_device.bus_number = 1  (0x1)  (int)
>   usb_device.linux.device_number = 6  (0x6)  (int)
>   usb_device.linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:0c.2/usb1/1-4/1-4.1'  (string)
> 
> udi = '/org/freedesktop/Hal/devices/usb_device_4fa_2490_noserial_0_if0'
>   info.udi = '/org/freedesktop/Hal/devices/usb_device_4fa_2490_noserial_0_if0'
>  (string)
>   linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:0c.2/usb1/1-4/1-4.1/1-4.1:1.0'
> (string)
>   usb.bus_number = 1  (0x1)  (int)
>   usb.linux.device_number = 6  (0x6)  (int)
>   usb.linux.sysfs_path =
> '/sys/devices/pci0000:00/0000:00:0c.2/usb1/1-4/1-4.1/1-4.1:1.0'
> (string)
> (no linux.device_file for this entry)

it's a little bit late now, but i would expect the latter entry to have
a usb.linux.device_number = 5 ... or the former ... but i doubt that
they could have the same device_numer when lsusb tells us that they are
different ... 

however, the missing linux.device_file entry and the _if0 prefix in the
udi maybe make me presume that hal thinks that the latter is a subdevice
(hence same device_number and if0 ... interface0 ... ?!?) of the
former ... which doesnt really make sense to me ;)

> So HAL adds a unique identifier, but it's unclear how it's generated.

well, i think it just enumerates when it doesnt find any usb serial
number ... 

i think this has to be investigated further ... anyway, i have another
home-brewn 2490 adapter here - i will try to figure out things
tomorrow ... 

good job anyway !!! - and sorry for my late reply - i was very busy the
last days ... ;)

regards,
marcus.



------------------------------------------------------------------------------

_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to