[nRF52840] USB CDC baud rate

What is the maximum baud rate supported by nrf52840 USB CDC communication? tks!

Parents
  • Hi 

    Do you mean what the maximum baudrate you can configure is, or the maximum data throughput that you can get? 

    When using USB CDC the baudrate configuration is just a software setting, and doesn't affect the USB throughput. 

    Best regards
    Torbjørn

  • 1、No matter how much baud rate is set, will it not affect the data transmission rate?
    2、I want to use USB CDC to transmit a large amount of data. What is the maximum transmission rate?

  • Hi

    austin said:
    1、No matter how much baud rate is set, will it not affect the data transmission rate?

    No, the USB interface has its own transfer speed limitations which are not linked to the UART baudrate. 

    If you set up the nRF52 like an FTDI device, and relay the CDC data to a physical UART interface, then you would typically change the baudrate on the UART interface based on the baud rate setting sent over CDC. In this case the throughput would be affected by the baudrate you set, but when you only process the CDC data locally in the nRF device without sending it onto the UART bus then this is not the case. 

    austin said:
    2、I want to use USB CDC to transmit a large amount of data. What is the maximum transmission rate?

    We did some tests on this earlier, and found that the host OS affected the maximum transmission rate. You will find the results below:

    CDC ACM binary file transfer (Windows): 215 kB/s (1720 kbit/s)

    CDC ACM binary file transfer (Linux): 323 kB/s (2584 kbit/s)

    Best regards
    Torbjørn

  • Hi, sorry to resuscitate this old topic. The zephyr's CDC example relies purely on the CDC? In other words, does that classify as "processing data locally"? Or what is meant by that?

  • Hi Yaxit,

    Yes, the CDC example implements echo purely on CDC ACM.
    It does use UART, but only for logging.

Reply Children
No Data
Related