1

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.

7
  • What is this device? If you don't have any documentation for it, how do you expect others to know what you're talking about? Commented Jun 15, 2012 at 18:30
  • This device is bicycle computer with usb-station. I am interesting in general approaches and don't expect, what you could provide me with code snippets. Commented Jun 15, 2012 at 18:33
  • For starters, you could provide some more details about what you did and how you've accomplished it. Commented Jun 15, 2012 at 18:37
  • 2
    You cannot be sure that the device supports extracting this data, you will need API documentation to verify that. Without it, it would be very painful to reverse-engineer the device in order to extract the required values, if this is possible at all. Commented Jun 15, 2012 at 18:50
  • 1
    With an existing driver, you can reverse engineer it by watching the data it sends and receives via the USB bus when you perform different operations. Based on that you can then write your own driver. This is usually a lot of work, though. Commented Jun 15, 2012 at 22:25

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.