Talking to the Audio device serial HID port

Status
Not open for further replies.

highly

Active member
When using the USB Audio device, a HID object with VID 16C0 and PID 04D2 is created in place of a standard serial port. Is there any direction on how to go about communicating with this HID port in Windows or Android? Is there a standard library available in Android for this? I have an audio application with additional functionality accessible to the user over the 'serial' HID interface that works as expected in the Arduino Serial Monitor, but I'd like to extend that functionality to a user-standard app and I'm a little lost where to begin.
On the android side I've compiled the Physicaloid library with VID/PID pairs matching the Teensy audio HID, but it won't connect using the CDC driver. It connects as expected when the Teensy sketch is built as 'serial' instead of as 'audio'.

Any help, direction, or further reading would be appreciated!
 
If you are using it to send data then it does add an additional character.
The additional character is \r or 0x0D, of course, so if you are just expecting \n line terminations you'll get too many characters. Just in case some day in the future someone comes looking :)
 
Status
Not open for further replies.
Back
Top