Skip to main content
Jesu
Associate II
November 10, 2018
Question

STM32F4 USB Host HID Bar Code Reader.. struggle in Set_Idle.

  • November 10, 2018
  • 1 reply
  • 834 views

I am trying to develop a USB Host HID application where using the controller STM32F4, and the USB stack library available on the ST website, we are trying to send data/command to an USB HID device. Get Device Descriptor,Get configuration descriptor both command i got the data and status. I am strggle on in this fuction.

 case HID_REQ_SET_IDLE: /* set Idle */

  classReqStatus = USBH_Set_Idle (pdev, pphost, 0, 0);

  if (classReqStatus == USBH_OK) 

HID_Machine.ctl_state = HID_REQ_GET_REPORT_DESC;

  else if(classReqStatus == USBH_NOT_SUPPORTED) 

HID_Machine.ctl_state = HID_REQ_GET_REPORT_DESC; 

break;

USBH_Set_Idle function Always return the USBH_BUSY.

Give me some suggestion..

This topic has been closed for replies.

1 reply

Pavel A.
Super User
November 10, 2018

Take this, ST. Jesus struggles from your USB library. What an unholy mess it is.

Suggestion: If the HID device does not support SET_IDLE - do not send this request.

-- pa