USB CDC packet sending rate problem based on STM32F103
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-10 12:45 AM
I used STM Cube to generate the USB CDC as a virtual serial port code, and then the test found that only a maximum of one thousand data packets can be sent to the PC every second. Is this fixed? Or is there any way to increase the data packet sending rate? Thank you~
My Cube configuration and the Keil project see Annex.#cdc #usb #stm32f103- Labels:
-
STM32F1 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-10 1:24 AM
In my memory, I think that the transmission interval of the USB1.1 packet was 1ms at the shortest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-10 4:39 AM
No, Your USB is working in USB1.1. Not USB2.0. 'Full Speed' means USB1.1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-10 5:21 AM
Thanks for your reply. Is CDC based on USB1.1? I think it is run in USB 2.0 full-speed interface, and I also configure it in full speed mode in Cube.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-11 5:12 AM
Thank you for your reminder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-05-27 9:49 PM
Sorry, i am come back. Recently, I tested my code again. I used stm32f103 to send data to the PC via USB CDC at a frequency of 4000Hz. And then I found that only 1000 packets can be received per second on Windows7, but it can normally receive 4000 packets per second on Ubuntu via CuteCOM. Do you have any advice? Thank you.
I use python to test, and the result is:
