Ilya Bakulin
2008-04-09 17:51:09 UTC
After some delay caused my by laptop's death I've installed all synce stuff on my work PC.
So, here's output of lshal for 2 nodes created by plugging WM device in:
========================================
udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial'
freebsd.driver = 'ucom' (string)
freebsd.unit = 0 (0x0) (int)
info.bus = 'usb_device' (string)
info.callouts.add = {'hal-synce-legacy'} (string list)
info.capabilities = {'sync'} (string list)
info.category = 'pda' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Synce'} (string list)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'USB Serial for Wizard' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial' (string)
info.vendor = 'HTC' (string)
pda.platform = 'pocketpc' (string)
pda.pocketpc.cpu_type = 2577 (0xa11) (uint64)
pda.pocketpc.current_partner_id = 0 (0x0) (uint64)
pda.pocketpc.guid = '{A0C03477-0D62-B931-133D-70FCDFA45704}' (string)
pda.pocketpc.ip_address = '192.168.131.129' (string)
pda.pocketpc.model = 'PM300' (string)
pda.pocketpc.name = 'Pocket_PC' (string)
pda.pocketpc.os_major = 5 (0x5) (uint64)
pda.pocketpc.os_minor = 2 (0x2) (uint64)
pda.pocketpc.password = 'unlocked' (string)
pda.pocketpc.platform = 'PocketPC' (string)
pda.pocketpc.version = 1258226181 (0x4aff0205) (uint64)
sync.engine = 'opensync' (string)
sync.plugin = 'synce' (string)
usb.interface.description = 'Windows Mobile Data Provider' (string)
usb.product = 'Windows Mobile Device' (string)
usb_device.bus_number = 2 (0x2) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 0 (0x0) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.max_power = 100 (0x64) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.port_number = 3 (0x3) (int)
usb_device.product = 'USB Serial for Wizard' (string)
usb_device.product_id = 2641 (0xa51) (int)
usb_device.speed_bcd = 4608 (0x1200) (int)
usb_device.vendor = 'HTC' (string)
usb_device.vendor_id = 2996 (0xbb4) (int)
usb_device.version_bcd = 512 (0x200) (int)
udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial_if0'
info.bus = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial_if0' (string)
usb.bus_number = 2 (0x2) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = false (bool)
usb.max_power = 100 (0x64) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.port_number = 3 (0x3) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 2641 (0xa51) (int)
usb.speed_bcd = 4608 (0x1200) (int)
usb.vendor = 'HTC' (string)
usb.vendor_id = 2996 (0xbb4) (int)
usb.version_bcd = 512 (0x200) (int)
========================================
As you all see, there is no HAL_PROP_SERIAL_DEVICE. It's expected behavior, because ucom-based devices unfortunately don't show themselves as serial ports... I'll investigate this problem later, perhaps hack hal-freebsd backend a little.
I've attached patch for hal-synce-legacy to make it work both on Linux and FreeBSD. Please test it on Linux system.
BTW, all applications where installed in non-standard prefix and are proven to work without any problems. However, I didn't install sync stuff (sync-engine, etc) on work machine yet.
So, here's output of lshal for 2 nodes created by plugging WM device in:
========================================
udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial'
freebsd.driver = 'ucom' (string)
freebsd.unit = 0 (0x0) (int)
info.bus = 'usb_device' (string)
info.callouts.add = {'hal-synce-legacy'} (string list)
info.capabilities = {'sync'} (string list)
info.category = 'pda' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Synce'} (string list)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'USB Serial for Wizard' (string)
info.subsystem = 'usb_device' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial' (string)
info.vendor = 'HTC' (string)
pda.platform = 'pocketpc' (string)
pda.pocketpc.cpu_type = 2577 (0xa11) (uint64)
pda.pocketpc.current_partner_id = 0 (0x0) (uint64)
pda.pocketpc.guid = '{A0C03477-0D62-B931-133D-70FCDFA45704}' (string)
pda.pocketpc.ip_address = '192.168.131.129' (string)
pda.pocketpc.model = 'PM300' (string)
pda.pocketpc.name = 'Pocket_PC' (string)
pda.pocketpc.os_major = 5 (0x5) (uint64)
pda.pocketpc.os_minor = 2 (0x2) (uint64)
pda.pocketpc.password = 'unlocked' (string)
pda.pocketpc.platform = 'PocketPC' (string)
pda.pocketpc.version = 1258226181 (0x4aff0205) (uint64)
sync.engine = 'opensync' (string)
sync.plugin = 'synce' (string)
usb.interface.description = 'Windows Mobile Data Provider' (string)
usb.product = 'Windows Mobile Device' (string)
usb_device.bus_number = 2 (0x2) (int)
usb_device.can_wake_up = false (bool)
usb_device.configuration_value = 1 (0x1) (int)
usb_device.device_class = 0 (0x0) (int)
usb_device.device_protocol = 0 (0x0) (int)
usb_device.device_revision_bcd = 0 (0x0) (int)
usb_device.device_subclass = 0 (0x0) (int)
usb_device.is_self_powered = false (bool)
usb_device.max_power = 100 (0x64) (int)
usb_device.num_configurations = 1 (0x1) (int)
usb_device.num_interfaces = 1 (0x1) (int)
usb_device.num_ports = 0 (0x0) (int)
usb_device.port_number = 3 (0x3) (int)
usb_device.product = 'USB Serial for Wizard' (string)
usb_device.product_id = 2641 (0xa51) (int)
usb_device.speed_bcd = 4608 (0x1200) (int)
usb_device.vendor = 'HTC' (string)
usb_device.vendor_id = 2996 (0xbb4) (int)
usb_device.version_bcd = 512 (0x200) (int)
udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial_if0'
info.bus = 'usb' (string)
info.parent = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial' (string)
info.product = 'USB Vendor Specific Interface' (string)
info.subsystem = 'usb' (string)
info.udi = '/org/freedesktop/Hal/devices/usb_device_bb4_a51_noserial_if0' (string)
usb.bus_number = 2 (0x2) (int)
usb.can_wake_up = false (bool)
usb.configuration_value = 1 (0x1) (int)
usb.device_class = 0 (0x0) (int)
usb.device_protocol = 0 (0x0) (int)
usb.device_revision_bcd = 0 (0x0) (int)
usb.device_subclass = 0 (0x0) (int)
usb.interface.class = 255 (0xff) (int)
usb.interface.number = 0 (0x0) (int)
usb.interface.protocol = 255 (0xff) (int)
usb.interface.subclass = 255 (0xff) (int)
usb.is_self_powered = false (bool)
usb.max_power = 100 (0x64) (int)
usb.num_configurations = 1 (0x1) (int)
usb.num_interfaces = 1 (0x1) (int)
usb.num_ports = 0 (0x0) (int)
usb.port_number = 3 (0x3) (int)
usb.product = 'USB Vendor Specific Interface' (string)
usb.product_id = 2641 (0xa51) (int)
usb.speed_bcd = 4608 (0x1200) (int)
usb.vendor = 'HTC' (string)
usb.vendor_id = 2996 (0xbb4) (int)
usb.version_bcd = 512 (0x200) (int)
========================================
As you all see, there is no HAL_PROP_SERIAL_DEVICE. It's expected behavior, because ucom-based devices unfortunately don't show themselves as serial ports... I'll investigate this problem later, perhaps hack hal-freebsd backend a little.
I've attached patch for hal-synce-legacy to make it work both on Linux and FreeBSD. Please test it on Linux system.
BTW, all applications where installed in non-standard prefix and are proven to work without any problems. However, I didn't install sync stuff (sync-engine, etc) on work machine yet.
--
Ilya Bakulin <***@ht-systems.ru>
Ilya Bakulin <***@ht-systems.ru>