Skip to main content
Associate
May 13, 2024
Solved

F429ZI USB HID keyboard Input

  • May 13, 2024
  • 5 replies
  • 3496 views

Hi,

I am facing a problem in implementing USB HID host input for keyboard.

I can get only 12-13 characters in my buffer after which the keyboard doesn't respond to any input as can be seen in snap attached.

source for keyboard handling is also attached 

 

Capture.JPG

This topic has been closed for replies.
Best answer by FBL

Hi @Bishwanath 

It seems working without issues on my end. 

FBL_0-1721828286292.png

 

5 replies

KDJEM.1
ST Technical Moderator
May 21, 2024

Hello @Manas_Gupta ,

Are you using NUCLEO-F429ZI board?

Could you please take a look at HID_Standalone example, may help you. This is a typical application on how to use the STM32F429ZI USB OTG Host peripheral to interact with an USB HID Device such as a Mouse or a Keyboard.

I hope this help you.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
ST Technical Moderator
June 6, 2024

Hi @Manas_Gupta 

It seems the maximum packet size that the endpoint is capable of sending or receiving is not sufficient to handle your buffer size. Check your USBH_MAX_EP_PACKET_SIZE and USBH_MAX_DATA_BUFFER

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Explorer
July 23, 2024

Hi Team,

Apologies for the delayed response. I have been delegated the project from @Manas_Gupta ,I did try the solutions you suggested regarding USBH_MAX_EP_PACKET_SIZE and USBH_MAX_DATA_BUFFER, but unfortunately, they did not resolve the issue. The keyboard still cannot register more than 12 keys at a time.

 

FBLBest answer
ST Technical Moderator
July 24, 2024

Hi @Bishwanath 

It seems working without issues on my end. 

FBL_0-1721828286292.png

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Explorer
July 25, 2024

 

Hello @FBL ,

Thank you for your ongoing support. I tested this with a new project and it's functioning correctly. There may be other factors affecting my main project that I'll investigate.

Best regards,
Bishwanath Kumar