2013-05-27 06:25 AM
Hello,
It's the first time that I use the USB protocol. I want to connect my PC to the STM32 microcontroller via the USB HID.I've seen example of HID from STM. I need to transmit and to receive data. Right now I can transmit and receive only 2 bytes. How I can do it with 64 bytes? I want to find a basic example (for STM32F4Discovery) that explains this communication in details.I understand that this problem isn't very difficult. Unfortunately, I have no idea how I can solve it. Thank you. #usb-hid2013-06-04 07:12 AM
hi, specify what type of data you want to use (interrupt or bulk)? If you want to transfer 64 bytes it is wise to use bulk transmission. In the examples of the ST used for HiD devices interrupt transmission.