STM32F4 USB Host HID Bar Code Reader.. struggle in Set_Idle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-11-10 2:36 AM
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..
- Labels:
-
STM32F4 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-11-10 1:53 PM
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
