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.

How the USB host communicate with the c2000?



Hello,

I am now trying to use the 28377 to build a usb slave. When I look into the example code usb_dev_serial which can use the usb as a virtual com port, I have some questions about how it work. 

1. As the description of this example code, if I send data to 28377 with the real com port, the virtual com port (usb) will show this data on the computer. My question is, as I know, the usb communication (both the write and read opperation) can only call by the host. Although the 28377 can receive the desired data from the real com port, how can it let the usb host (computer) to read this data?

2.If I want to send some data to 28377 with the virtual com port (usb), what should I do? Should I just send the data (assumed as 0xAA) by the virtual com port and TI's usb driver will packet  this data as a standard usb packet? Or I have to send the whole usb packet by myself?

I hope someone can help me with this?

Best regards.

Mork

  • 1. The PC is the Host and the F2837x is the USB device. So the Host is sending data to the F2837x with Data Out packets.

    2. You can simply write to the virtual comm port. I believe it is the operating system working with thh USB CDC driver which would encapsulate the data into a USB packet. All you have to do it open up a terminal and type in the terminal.

    sal