From: Ludovic R. <lud...@gm...> - 2013-04-17 15:08:38
|
2013/4/17 folkert <fo...@va...>: > Hi, Hello, > I'm working on porting ClewareControl (for usb devices by > www.cleware.de) to MacOS X. > This clewarecontrol includes a commandline utility to configure/set/read > those devices and development libraries for C++, Python and Perl. > http://www.vanheusden.com/clewarecontrol/ > I don't have acces to a mac myself unfortuantely so I have to ask others > to test for me. > > I ported clewarecontrol to hidapi and all runs fine on linux. > On macos x, though, it doesn't show the serial number. This is rather > essential as it is needed to distinguish what device to control when you > have multiple connected. > The hidtest program included in hidapi doesn't show the serial either: > >>>>>> Device Found >>>>>> type: 0d50 0008 >>>>>> path: USB_0d50_0008_0x100110a50 >>>>>> serial_number: >>>>>> Manufacturer: Cleware GmbH >>>>>> Product: USB-Ampel >>>>>> Release: 1d >>>>>> Interface: -1 > > The serial number ought to be 900705 (decimal) or DBE61 (hex). > lsusb -vvv looks like: > > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x0d50 Cleware GmbH > idProduct 0x0008 > bcdDevice 0.19 > iManufacturer 1 Cleware GmbH > iProduct 2 USB-Ampel > iSerial 3 00023D9 <--- note: this is the device I have at home, not the DBE61 one on the mac version > bNumConfigurations 1 > Configuration Descriptor: > bLength 9 > bDescriptorType 2 > wTotalLength 34 > bNumInterfaces 1 > bConfigurationValue 1 > iConfiguration 0 > bmAttributes 0x80 > (Bus Powered) > MaxPower 440mA > Interface Descriptor: > bLength 9 > bDescriptorType 4 > bInterfaceNumber 0 > bAlternateSetting 0 > bNumEndpoints 1 > bInterfaceClass 3 Human Interface Device > bInterfaceSubClass 0 No Subclass > bInterfaceProtocol 0 None > iInterface 0 > HID Device Descriptor: > bLength 9 > bDescriptorType 33 > bcdHID 1.00 > bCountryCode 0 Not supported > bNumDescriptors 1 > bDescriptorType 34 Report > wDescriptorLength 48 > Report Descriptors: > ** UNAVAILABLE ** > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x81 EP 1 IN > bmAttributes 3 > Transfer Type Interrupt > Synch Type None > Usage Type Data > wMaxPacketSize 0x0008 1x 8 bytes > bInterval 50 > Device Status: 0x0000 > (Bus Powered) > > Using libusb it does get the serial number but then retrieving > measurements doesn't work as it is an HID device. I do not have many HID devices with a serial number. On my Mac I have: $ ./hidtest Device Found type: 0000 0000 path: serial_number: Manufacturer: Product: Apple Mikey HID Driver Device Found type: 05ac 8242 path: USB_05ac_8242_0x10010d4b0 serial_number: Manufacturer: Apple Computer, Inc. Product: Apple IR Device Found type: 05ac 023a path: Bluetooth_05ac_023a_0x10010bb60 serial_number: 90-84-0d-e5-7e-45 Manufacturer: Apple Product: Clavier de Ludovic Rousseau Device Found type: 05ac 030d path: Bluetooth_05ac_030d_0x10010c500 serial_number: d4-9a-20-85-68-bd Manufacturer: Apple Product: Souris de Ludovic Rousseau As you can see the mouse and keyboard have a serial number. They are bluetooth, not USB. I will try later using another HID device but I do have it here. Maybe Alan Ott has an explanation for the problem. You can also get the USB tree, including the serial numbers, with the "System Information" application in /Applications/Utilities/ Bye -- Dr. Ludovic Rousseau |