cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jesu
Associate II

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..

1 REPLY 1
Pavel A.
Evangelist III

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