This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am trying to configure USB module for large data transfer from control card to Host PC and vice versa. I am gone through the TRM document to understand the USB module. After that I try to look into USB device bulk example which is given C2000 software package. I wanted to know
1. How it will work
2. What are exact steps I have to follow to work it on my pc
3. What are steps required on PC side
4. What are steps required on control card side
Please provide me related information or flow chart such that it can be workable
Regards,
Debashish
Hi Debashish,
We're getting your post assigned to the correct expert.
Best,
Kevin
Debashish,
There are two examples included in C2000Ware for usb bulk - usb_ex4_dev_bulk and usb_ex9_dev_bulk_throughput.
The usb_ex4_dev_builk example demonstrates USB in device mode which transfer bulk datar to and from the host. You can compile and load the binary on the device using CCS . On the PC side, there is an utility provided "usb_bulk_example.exe" located at <c2000ware>\utilities\tools\f2837xd\usb_bulk_example\Release folder. When you run the program through CCS, you can run this executable on the command prompt. It receives data entered through the host (command prompt) and it is echoed back with the case of all characters swapped.
Similary for the usb_ex9_dev_bulk_throughput example , there is an utility provided <c2000ware>\utilities\tools\f2837xd\usb_bulk_example_throughput\Release folder. This example provides the throughput numbers of bulk data transfer .
Hope this clariifes your question.
Best Regards
Siddharth
Hi Siddarth,
Thank you so much for your reply,
But the examples (usb_ex4_dev_bulk and usb_ex9_dev_bulk_throughput) are built for TMS320F28377D Target Board, but I am using TMS320F28379D. So if I modify that example based on our Target Board with all functions API same as written in example code.
1. Should it be workable as original ?, If it is workable, at that time actual usb_bulk_example.exe file can be used or we have to built another .exe file again for new project?
2. what are the things should be kept in mind while modifying the existing project?
Please provide your valuable suggestion.
Regards,
Debashish
Hi,
Which board are you using?
If it is a TMS320F28379D control card, then both the examples should work fine without any changes. You should also be able to use the same host side application (usb_bulk_example.exe) for running these examples.
Best Regards
Siddharth
Hi,
Thank you for your reply,
I am using TMS320F28379D control Card and the existing examples are working fine. Now I am trying to make a project, where the communication will be either one direction (Host to Device or vice versa) and when I will connect the USB cable from device to PC, It should be visible or detected as a COM port.
For that, please provide solutions or any reference contents to proceed step by step,
Best Regards,
Debashish
Debashish,
There is an example "usb_ex1_dev_serial" which you can refer for device mode. This example emulates into a virtual serial port when connected to the PC (host) .
Best Regards
Siddharth
Hi,
Thank you for your reply,
As you said, the example "usb_ex1_dev_serial" is working for device mode and on the PC side a COM port is visible when we connect the control card and PC with USB cable. But in that example SCI-A is used for serial communication. But I don't want to use SCI.
1. Without SCI the, can USB be configured and visible as COM port on PC?
2. If USB only can configured, what are the things I should do to procced further?
3. Please can you clarify why we are using another module SCI for this example?
Thanks & Best Regards,
Debashish
Debashish,
The Virtual COM Port will be visible in the device manager of the PC.
The COM port can be opened using any of the terminal applications.
To demonstrate two-way communication, when a character is typed on the terminal window, it is echoed back over the SCI-A.
Best Regards
Siddharth