USB HID help?

Discussion, support, and resources for our noise making modules and kits.

Moderators: Kent, scottwilson

Post Reply
Jcsveth
Common Wiggler
Posts: 198
Joined: Mon Aug 12, 2013 7:44 pm

USB HID help?

Post by Jcsveth » Fri Sep 30, 2016 9:21 am

Are there any examples for reading and writing an HID packet over USB? I have a couple of devices (Snyderphonic Manta and the VMeter) which I would like to interface to.

User avatar
scottwilson
Wiggling with Experience
Posts: 435
Joined: Mon Sep 16, 2013 12:54 pm

Post by scottwilson » Fri Sep 30, 2016 11:11 am

Not HID specifically, but the basic USB building blocks are there.

If you take a look at the 1.1.0 branch, you can see that I've moved all of the SAM USB drivers into the project... It includes some HID libraries, but I haven't been using them.

https://github.com/nw2s/b/tree/b-1.1.0- ... rs/usbhost

But if you look at the usb devices we've created so far, you'll see the type of work you need to do to get some USB code running...

https://github.com/nw2s/b/blob/b-1.1.0- ... /UsbMidi.h

https://github.com/nw2s/b/blob/b-1.1.0- ... UsbPS3.cpp

https://github.com/nw2s/b/blob/b-1.1.0- ... s/Grid.cpp

HID is kinda a pain in the ass compared to things like the monome which uses a USB-TTY chip. I'm not sure why folks insist on using HID USB clients...

Let me know if that's what you're looking for...

s

Post Reply

Return to “nw2s”