cancel
Showing results for 
Search instead for 
Did you mean: 

USB HID STM32F4Discovery 64 bytes

alexey
Associate
Posted on May 27, 2013 at 15:25

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-hid
1 REPLY 1
info2
Associate
Posted on June 04, 2013 at 16:12

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.