-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
tools/test_serial.py: Add test for serial throughput. #15909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15909 +/- ##
=======================================
Coverage 98.54% 98.54%
=======================================
Files 169 169
Lines 21890 21890
=======================================
Hits 21572 21572
Misses 318 318 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code size report:
|
I've checked a few boards & ports with that test. Most work fine. SOme minor observations:
|
I've just tested on a esp32-S3 CDC with my shared/tinyusb migration PR: #15108 @robert-hh I've seen the same 0.09MBit/s DATA IN rates on renesas board, not sure why they're so low. I also get lock-ups with the black pill board. I suspect it might be due to the 25mhz crystal causing instability - that is said to be the reason the built in DFU struggles to connect to usb more often than not. On other stm32 boards though, I get much better speeds. WB55 for instance:
However for this I needed to increase the delay before the initial drain as the soft reboot took a little longer to complete.
rp2 (tinyusb)
|
Ah... some of the slow data rates are caused by UART! |
Oh, yes, that's bitten me a few times. You need to disable UART if you want to test USB throughput. You could also use this tool to test UART reliability, if you connect up a USB-UART convertor. |
This is a test script used to test USB CDC (or USB UART) serial reliability and throughput. Run against any MicroPython board with: $ python test_serial.py <device> Signed-off-by: Damien George <damien@micropython.org>
4e748c8
to
37e86d6
Compare
Summary
This is a test script used to test USB CDC (or USB UART) serial reliability and throughput.
Testing
Run against any MicroPython board with: