USB superspeed peripherals Forum Discussions
Hello, I debug the CYUSB3014 with uvc +cdc, I want to send and receive data about 4Kb use cdc interface, I changed the cyfxuvcdscr.c and the uvc and cdc enum sucessfully, but sometimes I can't receive data from device, I created two dma channel from cdc send and receive, and handle the data in ep0 thread, but sometimes I can't receive data from device, the buffer commit got no error, can you help on this? thanks.
Attach the sourecode
Show LessHello,
I have a custom board based on CX3 with the image sensor AR0144. I have modify the firmware to make the whole system work, but there is still a problem exists. And that is the first frame often fails when a VS_COMMIT: SET_CUR request is sent by the host. For example, when I switch between the cameras or change between the different resolutions, the first frame is not addressed correctly. After that failed frame, every frame is correctly address.
I called the function CyU3PMipicsiGetErrors to check errors, and I get the logging information as following:
[Rx][11:38:44] [VS COMMIT:SET_CUR]:Start Streaming...
[Rx][11:38:44] Application Start
[Rx][11:38:44] Prod = 75 Cons = 74 Prtl_Sz = 1200 Frm_Cnt = 1 Frm_Sz = 1843200 B
[Rx][11:38:44] Error detected! Fields with non-zero values:
[Rx][11:38:44] frmErrCnt: 1
[Rx][11:38:44] crcErrCnt: 0
[Rx][11:38:44] mdlErrCnt: 0
[Rx][11:38:44] ctlErrCnt: 1
[Rx][11:38:44] eidErrCnt: 0
[Rx][11:38:44] recrErrCnt: 0
[Rx][11:38:44] unrcErrCnt: 0
[Rx][11:38:44] recSyncErrCnt: 0
[Rx][11:38:44] unrSyncErrCnt: 0
[Rx][11:38:44]
[Rx][11:38:44] Prod = 75 Cons = 74 Prtl_Sz = 1200 Frm_Cnt = 2 Frm_Sz = 1843200 B
[Rx][11:38:44] Success! No errors found.
[Rx][11:38:44]
[Rx][11:38:44] Prod = 75 Cons = 74 Prtl_Sz = 1200 Frm_Cnt = 3 Frm_Sz = 1843200 B
[Rx][11:38:44] Success! No errors found.
[Rx][11:38:44]
[Rx][11:38:44] Prod = 75 Cons = 74 Prtl_Sz = 1200 Frm_Cnt = 4 Frm_Sz = 1843200 B
[Rx][11:38:44] Success! No errors found.
I have set the resolution to 1280x720, streaming with YUY2 format, the CX3_UVC_DATA_BUF_SIZE is defined as 24560 bytes.
As you see, I get frmErrCnt and ctlErrCnt, what could be the reason for that? How to solve it?
Thank you very much
Show LessIn the C++ interface/library, the result returned from the DeviceName of CCyUSBDevice are inconsistent.
For Fx2 devices, it returns the USB location and for Fx3 devices it returns the product name of the device.
Full examples outputs:
FX2:
DeviceName "Port_#0002.Hub_#0006"
DevPath "\\?\usb#vid_0e2c&pid_0012#6&d028f0a&0&2#{b3a499b3-5bdf-45f0-aeda-0ff5d76edc3a}"
Product "USB2-0.5m"
FX3
DeviceName "ScanDrive28K8"
DevPath "\\?\usb#vid_28ba&pid_0001#5&13dc5d02&0&18#{bd295b7e-798c-41d4-9ea5-6f2de3e6e6f9}"
Product "ScanDrive28K8"
Is there a work around or fix for this bug?
I want a consistent way to get the usb location for my USB devices
Show Less
Can you provide me with the parameter settings for RAW10 format under 2592*1944 without errors?
I asked the Sensor manufacturer, but they couldn't understand the true meaning of each parameter, so they couldn't provide me with the correct values.
Can you give me some advice?
Thank you.
Show Less
I have been using the CYUSB3065-BZXI for my stereo endoscope project, where 2 cameras (OCHSA10) with the same address are used and it can be address changed by hardware or by using the register set, by making one camera in the reset state and programming the other camera and changing the address set at the end of the set. I have some doubts and want some clarification in code and need some demonstration about the software and how to use it.
Show Less