- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,i used function of CyU3PDmaChannelSetupSendBuffer to send my data of uvc to host,but host camera tools don't dispaly my uvc data,and add part of the code in the attachment as follows.
Solved! Go to Solution.
- Labels:
-
USB Superspeed Peripherals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for the details.
(1)user data upload to host by UVC interface, camera tools don't display image
>> Please configure the Rx payload field of glProbeCtrl to 16 KB. It is expected that the following field should be greater or equal to DMA buffer size
0x00,0x40,0x00,0x00, /* No. of bytes device can transmit in single payload */
2)dma channel callback function is not been triggered,dma part of configuration as follow:
>> I understand that you are using glUacStreamHandle channel in override mode. In that case, CY_U3P_DMA_CB_CONS_EVENT event is not triggered. You can refer to this KBA DMA Channel in Override Mode in FX3/CX3 - KBA22909... - Cypress Developer Community for more details.
3)Application of CDC(USB2Uart),the host has virtual port COM14, but the serial port tool cannot open the serial port.
>> As the query is different from thread description, we request you to create a new thread. This will help the other community members with similar query
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I understand that you are generating the video frame from FX3 and streaming through the UVC interface of FX3. Is my understanding right?
If yes, please let me know if CyU3PDmaChannelSetupSendBuffer /CyU3PDmaChannelWaitForCompletion returns success. If yes, can you please capture USB trace (using Wireshark) to check if the data is being sent on bus to host.
You can also refer to cyfxuvcinmem_bulk example firmware of the SDK
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right to understand,the CyU3PDmaChannelSetupSendBuffer /CyU3PDmaChannelWaitForCompletion returns success.
I used Wireshark to capture FX3 USB UVC data on host side, but found that the UVC header format of data is wrong when switch on the starting boundary of each image frame.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can you please share the Wireshark traces and the application firmware for us to check?
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,thanks.
The project of SDK and part of wireshark trace image in the attachment.
There are a couple of questions need your help:
(1)user data upload to host by UVC interface,camera tools don't display image.
(2)dma channel callback function is not been triggered,dma part of configuration as follow:
dmaCfg.cb = CyFxUacApplnDmaCallback;
dmaCfg.notification = CY_U3P_DMA_CB_CONS_EVENT;
It is application of UAC in project at attachment.
(3)Application of CDC(USB2Uart),the host has virtual port COM14, but the serial port tool cannot open the serial port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for the details.
(1)user data upload to host by UVC interface, camera tools don't display image
>> Please configure the Rx payload field of glProbeCtrl to 16 KB. It is expected that the following field should be greater or equal to DMA buffer size
0x00,0x40,0x00,0x00, /* No. of bytes device can transmit in single payload */
2)dma channel callback function is not been triggered,dma part of configuration as follow:
>> I understand that you are using glUacStreamHandle channel in override mode. In that case, CY_U3P_DMA_CB_CONS_EVENT event is not triggered. You can refer to this KBA DMA Channel in Override Mode in FX3/CX3 - KBA22909... - Cypress Developer Community for more details.
3)Application of CDC(USB2Uart),the host has virtual port COM14, but the serial port tool cannot open the serial port.
>> As the query is different from thread description, we request you to create a new thread. This will help the other community members with similar query
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,the question 1 and question 2 have been solved。
As question 3, I don't understand what you mean,and what should I do? Could you please stamp it in more detail,or how should I change the procedure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
the question 1 and question 2 have been solved。
>> Glad to hear that the issue 1 & 2 are resolved
As question 3, I don't understand what you mean,and what should I do? Could you please stamp it in more detail,or how should I change the procedure?
>> Please create a new thread on the community with the issue as the description as the issue is different than the one mentioned in this thread. This will help other community members who see issue similar to this
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
okay,i see。