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
(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)

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

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

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

Reply via email to