Skip to main content
BNhat
Visitor II
October 8, 2019
Question

Custom HID on STM32F1 with 64 bytes count

  • October 8, 2019
  • 0 replies
  • 402 views

Hello,

I am working on Custom HID and I tried a week but no result

my problem:

I created Report Descriptor like follow

 /* USER CODE BEGIN 0 */
		0x06,0x00,0xFF, //Usage Page 0xff00
		0x09, 0x01, //USAGE (Pointer)
		0xA1,0x01, //Collection (application)
		0x15,0x00, //Logical Minimum
		0x26,0xFF,0x00, //Logical Minimum
		0x75,0x08, //report size : 8-bit field size
		0x95, CUSTOM_HID_EPIN_SIZE, //Report count
		0x09, 0x01,
		0x81,0x02, //Input (data, array, Abs)
		//Output Report
		0x95,CUSTOM_HID_EPOUT_SIZE, //Report Count
		0x09, 0x01,
		0x91,0x02, //Output (data, array, Abs)
		0x95,0x01,
		0x09, 0x01,
		0xb1, 0x02,
 /* USER CODE END 0 */
 0xC0 /* END_COLLECTION	 */

and do exactly as this tutorial video of ST : https://www.youtube.com/watch?v=3JGRt3BFYrM

But the device only receive 12 bytes, if the data is more than 12 byte, received data to be wrong and can not receive correctly

I noted that, in 14th frame and 15th frame is some strange data and alway same value

Please help me !!

This topic has been closed for replies.