Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
transmission speed in USB virtual serial port through USBDevice library
What is the transmission speed or baud rate in a virtual serial port connection through USB 2.0 . I basically need to transfer data from mbuino platform to PC. The microcontroller has support for USB, and currently I am transmitting data by creating a virtual serial port using USB CDC (using the library USBDevice provided by the mbed.org). On using minicom (in linux) or putty (in windows), I am able to receive data irrespective of the settings of baud rate in the application.
This gets me a little confused, as to who sets the data transfer rate and what is the significance of the settings in the application. What transfer speeds can I expect in this case, and is there any way to control and measure them?
Moreover, for streaming data and intermittently issue commands, is USB CDC a good solution??
1 Answer
7 years, 8 months ago.
1. In this context, baudrate setting is meaningless; I hope you have connected via USB cable to PC; It is just a "virtual" COM. Settings are valid only if you use any hardware like usb to serial adapter.
2. Transfer speed goes upto the maximum rate guaranteed by Data Transfer Type under USB 2.0 (hope here you meant High speed)
3. For large amount of data, "Bulk Data transfer" with USB CDC is better.
Note: I know the post is 1 yr old; but i felt this answer may be helpful for others who visit this page.