From: Peter S. <pe...@st...> - 2013-04-17 17:50:56
|
folkert wrote: > I ported clewarecontrol to hidapi and all runs fine on linux. > On macos x, though, it doesn't show the serial number. .. > The hidtest program included in hidapi doesn't show the serial either: So if you take a quick look at the code it's clear that serial is handled just like the Manufacturer and Product strings. Since serial number make it through the kernel API for Ludovic (even if only for some devices) the problem is pretty clearly with Apple. :\ Maybe you can find some advice on the apple USB mailing list? > Using libusb it does get the serial number but then retrieving > measurements doesn't work as it is an HID device. Sure, this makes good sense. > The output of dtruss (macos version of strace) can be found at: > http://vanheusden.com/clewarecontrol/dtruss.txt.gz This doesn't show very much. > Anyone any idea? I suggest looking closer at the IOHIDDeviceGetProperty() call on OS X, and/or if there might be another API which could be used instead. One last resort might be some kind of bastard combination of libusb and native API.. //Peter |