- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to send commands to my device using EP0. But when I try to transfer any data to EP0 in USB Contorl Center it return:
CONTROL OUT transfer
CONTROL OUT transfer failed with Error Code:997
What this mean?
How I can transfer commands for driving my device? I want to do it same as Class-Specific Requests in UVC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you written the code necessary to handle the requests that you're sending to the device through Control center???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Take "USBBulkLoopAutoEnum" example code as reference.
You can look for function "CyFxBulkLpApplnUSBSetupCB", which handles all the setup requests.
If you want to send some vendor commands then add code (in CyFxBulkLpApplnUSBSetupCB) similar to the one mentioned below.
if ( bType == CY_U3P_USB_VENDOR_RQT)
{
/* write your own to code to parse the commands*/
return CyTrue;
}
Regards,
sai krishna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. It work.