2025-12-28 5:11 AM - last edited on 2025-12-28 6:19 AM by mƎALLEm
Hi All,
I'm building an instrument that needs to stream data to a PC at ~4Mbps. People were claiming nearly twice this with USB CDC so I chose the nucleo-h533 board and started with the Ux_Device_CDC_ACM example. I disconnected the USART code and added a loop that calls ux_device_class_cdc_acm_write and then I measure the rate at which I receive data on the PC. I can't get past ~1.8Mbps.
I have tried the following:
In all cases, the baud rate remains about the same at 1.8Mbps. Is there anything I can do to improve this?
Best,
Marc
Solved! Go to Solution.
2025-12-30 4:40 PM
I get 16kB max reads and 7Mbps on my laptop.
It turns out I can get up to 8Mbps from my desktop depending on which USB plugs I use so it is a PC h/w issue.
Thanks so much for your help.
-Marc
2025-12-30 5:02 PM
Thanks for reporting back with results.
That's interesting that one device seems to limit the max readout or buffer size to 4 kB.
Makes me wonder if the bug reported in that other thread could be due to the hardware and not something within Windows. Now I want to create an STM32 project with a USB CDC ACM host and see (a) the max throughput and (b) if packets are ever dropped.