ESP32S3 USB RX issue

Anton Ost
Posts: 7
Joined: Wed Jan 05, 2022 8:38 am

ESP32S3 USB RX issue

Postby Anton Ost » Wed Jan 05, 2022 8:44 am

Hello. I am working with ESP32S3 USB virtual com port and trying to increase size of RX transfer buffer size. Right now its only 64 byte and speed of transfer is very low. I set TX buffer to 4096 and its much much more faster.
I tryed to change CDC FIFO size of TX channel, Largest size (in bytes) of transfers to/from default endpoints and .rx_unread_buf_sz
But in each tranfer it is steel only 64 bytes.

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32S3 USB RX issue

Postby ESP_Sprite » Wed Jan 05, 2022 8:53 am

The USB full-speed endpoint max packet size can only be at most 64 bytes (according to the USB spec), maybe that is what you're seeing?

Anton Ost
Posts: 7
Joined: Wed Jan 05, 2022 8:38 am

Re: ESP32S3 USB RX issue

Postby Anton Ost » Wed Jan 05, 2022 8:59 am

But i made 4096 bytes of tx buffer size and its works fine.

Anton Ost
Posts: 7
Joined: Wed Jan 05, 2022 8:38 am

Re: ESP32S3 USB RX issue

Postby Anton Ost » Wed Jan 05, 2022 9:03 am

I made some tets code. And got 70 seconds for receiving 1 MB of data and 2.5 second of transferring 1 MB of data.

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32S3 USB RX issue

Postby ESP_Sprite » Thu Jan 06, 2022 2:30 am

Can you post your code?

Who is online

Users browsing this forum: zilizii and 195 guests