Transfer commands with EP0.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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.

0 Likes
3 Replies
Anonymous
Not applicable

Have you written the code necessary to handle the requests that you're sending to the device through Control center???

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

Thank you. It work.

0 Likes