SLAU533D September 2013 – April 2017
This demo can be easily converted to use an HID-Datapipe interface instead of CDC (see Figure 34). The advantage of the HID-Datapipe interface is that HID does not require the INF installation process on Windows PCs that CDC does. In exchange for this, it operates with a 64-KB/s bandwidth limit.
HID also does not have the same host-side coding simplicity provided by virtual COM ports. For this reason, TI provides the Java HID Demo App as an example. This demo app and its source code are included in the MSP430 USB Developers Package.
HID-Datapipe is a special version of HID and is part of the MSP430 USB API. It allows communication that is point-to-point, bidirectional, and unformatted, much like a virtual COM port. In contrast, traditional HID relies on highly-formatted reports. HID-Datapipe abstracts the application from these reports and presents an interface that is very much like the one used for CDC.
To convert the simpleUsbBackchannel example to use HID-Datapipe:
Now, build and run. Download the MSP430 USB Developers Package, and run the Java HID Demo App. The app needs to know the VID and PID reported by the F5529; for the HID version of this example, these are 0x2047 and 0x0404, respectively.
Instructions for using the Java HID Demo App are located in the Examples Guide PDF file in the MSP430 USB Developers Package.