- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,i use the fx3 to set a data link between PC and FPGA. On the USB control center,0x01 0x03 0x81 0x83 bulk endpoint serve as data transmission in auto dma mode from GPIF-II to usb(fig-1),endpoint 0 work as command transmission channel。I use function CyU3PUsbSendEP0Data(dataLen,ep0Buf) (fig-2)to send back data ,use the controlendpoint class implementation Read(PUCHAR buf, LONG &len) (fig-3)on PC ,fx3 shows that fx3 ep0 has send the data successfully, but PC get a failure as shown fig-5. Has any invalid operation?HELP me,thx!
fig-1 (USB CONTROL CENTER )
fig-2(FX3 SDK EP0 send data code)
fig-3 (PC reading ep0 data code)
fig-4 (fx3 uart print the statue of fx3 ep0 sending)
fig-5 ( print the status of PC ep0 data reading)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please find the attached firmware which is tested or the CONTROL IN and OUT transfers
The communication is done using the VENDOR commands
Req Type: VENDOR
Target: Device
Req code: 0x77 - For CONTROL IN --- Direction: IN
Req code: 0x76 - CONTROL OUT --- Direction: OUT
Please find the attached test results and let me know if any query on this.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please let me know if you are able to get the data with the original Control Center Application.
Also, please share the USB traces using Wireshark to check the USB communication with the custom/modified Host application.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
fx3 can get the data from PC ,PC CYAPI implementation was shown as fig-1.Fx3 received the data successfully as shown fig-2.I have not tested over the Wireshark Tool
fig-1
fx3 can get the data from PC
fig-2 (fx3 uart print the data from PC)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I understand that you are using a custom USB host application and not the USB control Center to read the data from FX3. Is that correct?
Please let me know if the data is received by USB Control Center application (of the SDK) or is the problem reproducible with default USB control Center application?
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I'm using CYAPI to develop my own fx3 controller.
USB Control Center can send data to ep0 successfully (shown as fig-1)
fig-1(USB Control Center send the 32 bytes data to ep0 )
fig-2(fx3 uart print the ep0 data from pc )
fig-3(USB Control Center get the 32 bytes data from ep0 failed )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
It seems there is some confusion here. In the thread description, I see that VENDOR request is sent to FX3 to receive the data on USB Host but from the control center you are sending standard request.
Can you please share your firmware for us to check or reproduce the problem at our end? This will help us to debug the issue faster.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Please find the attached firmware which is tested or the CONTROL IN and OUT transfers
The communication is done using the VENDOR commands
Req Type: VENDOR
Target: Device
Req code: 0x77 - For CONTROL IN --- Direction: IN
Req code: 0x76 - CONTROL OUT --- Direction: OUT
Please find the attached test results and let me know if any query on this.
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content