This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HID with OMAP-L137

Other Parts Discussed in Thread: OMAP-L137

Hi,

I want to make a mouse-like device out of the OMAP-L137. I've compiled and successfully run the HID keyboard example provided with the BIOSUSB drivers. I've looked at the source but I don't understand much about it since I'm new to the USB developer world. So I have some very basic questions:

 

1. How do I modify the keyboard example? For example: instead of printing the demo message when I press "SHIFT+SCROLL LOCK" it should be printed when I press "CTRL+D"... Or how could I make the driver periodically send a "A" key to the host?

2. How can I use/access the keyboard driver/data on the host?

3. How can I turn the keyboard driver example into a mouse driver example?

4. Where can I find some tutorial or wiki like documentation on using the Jungo USB device stack?

FYI: I have a Spectrum Digital OMAP-L137 EVM Rev.E but I only use the DSP side.

 

Thank you very much for your help.

Andreas

 

  • Andreas,

    You would have to read the USB HID Class spec to understand how to implement HID class applications such as Keyboar/Mouse.  The Keyboard application that is packaged by default is a very minimal implementation of a typical keyboard class device and is provided as a means of demonstrating the HID capabality of the OMAP-L137 BIOSUSB stack.

    You typically would have to write a new Mouse app if that is what your product need is.  Pl. refer to the HID class spec in usb.org site.

    Pl. refer to the user guide to understand on how to configure/use the packaged applications in the BIOSUSB stack.  It also details out the directory structure and the related components within the stack.

    Though the stack does have the capabality to support custom class development, there are no examples available to demonstrate such a capabality as of today.  You would have to go with the packaged documentation when developing such a custom application.  Another option and the one that is recommended is to engage with Jungo the stack providor for any custom/of the shelf development.

    regards

    swami

  • Hi swami,

    Thank you very much for you answer. You say: write a new Mouse app. So you mean writing the mouse host app/driver using Microsoft's driver development kit? Because as far as I understand from the few things I've read about USB is that as long as the device driver respects the HID class spec I can use the Microsoft's development kit to access the device data inside from an app -- did I understand this correctly?

    And on the device side I would have to use the Jungo (HID?) device stack and adapt it such that my device respects well the HID class spec. Am I right?

    So basically I would have to go on studying how to write a HID class respecting driver for the device using the Jungo device stack and writing the host app/driver using the MS kit?

    I'm sorry for these basic questions but I'm quite new to the USB and driver world. There's a last question: would/could I still use HID if my device is not a true mouse but something that has multiple pointers (e.g. imagine a multitouch screen?)

    Best regards,

    Andreas