Thanks to a member of AVRFreaks, “mojojojo“, who pointed me in the right direction in the CDC specification, the MyUSB library now comes with a working CDC demonstration application. The demo is a simple one, emulating a serial port on the host and transmitting strings as the joystick is moved on the USBKEY board.
I’m now working on extending the CDC demo code to include a USB-Serial converter. That won’t take too much time - I will need to buffer both the physical serial port and the virtual serial ports, and write routines to exchange bytes between them. Hopefully I’ll have the completed USB-Serial code done by tomorrow, so remember to keep checking back!
Currently, the MyUSB library contains the following demonstration applications:
Device:
Basic two button Mouse
Basic five button Keyboard
Basic two button Joystick
Magnetic Stipe Card Reader (based on Keyboard example)
CDC Example
CDC USB-Serial Converter (unfinished)
Host:
Basic mouse host
Basic keyboard host
Combination:
Test application demonstrating the non-USB library portions, as well as a USB device capable of acting as a device or host
Recent Comments