AnsweredAssumed Answered

Generic HID on STM32L053

Question asked by p_n.aravinda on Oct 16, 2015
Latest reply on Oct 19, 2015 by p_n.aravinda

We are using STM32L053 in our project. We evaluated the USB data transfer using CDC(Virtual COM port) and USB composite device. However, both of them require specific ST drivers for the PC to recognize the USB device. We are looking at options to avoid this. In the example applications provided for L053, there is a HID example which we tested. This one configures the device as a “mouse” and does not need any specific drivers. However, we do not need the mouse functionality. Is it possible that we modify the HID example to configure the device as a generic HID device so that data can be sent/received without needing any specific drivers? If this is possible, are there freely available PC applications that can receive(log)/send data from/to HID devices?

In our application, we have a requirement to read the data stored in EEPROM and transfer that to the PC. Hence, a maximum of few kilobytes of data will be transferred. Also, they are not sent all at once, they are sent in packets and this size can be well within 64 bytes. We also do not need a very high data transfer rate. In addition, we would also like to send some data from the PC to the device (bidirectional). We intend to send the data to the PC in a readable ASCII format and would like to log that in excel.(We have tested this using Hercules application with USB CDC. We want to know if there is something similar for HID)

In fact, in one of the forums What USB class should I implement? indicates that it is possible to use HID to log the ASCII data in Excel. How can the USB HID descriptors have to be modified so that we can use HID for generic USB send/receive functionality?

Outcomes