Вопрос

I have a USB device (bicycle computer) and want to read from it values (odometer value, average speed, etc.) through the USB port. After some steps I managed to detect the computer and read some parameters (like vendorId, sessionId, deviceName etc.), but I don't know how I can read bicycle values.

There is no documentation for this device. I am looking for a solution on an IOKit framework.

Это было полезно?

Решение

You can install usbview. This is a nice and it lets you read all the descriptors http://www.kroah.com/linux/usb/

Another thread ( USB programming) also give link of http://www.signal11.us/oss/hidapi/

There are sample provided which allows read and write with the device using HID API. Hopw will help u know doing operation on device

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top