Page 1 of 1

ESP32S3 USB RX issue

Posted: Wed Jan 05, 2022 8:44 am
by Anton Ost
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.

Re: ESP32S3 USB RX issue

Posted: Wed Jan 05, 2022 8:53 am
by ESP_Sprite
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?

Re: ESP32S3 USB RX issue

Posted: Wed Jan 05, 2022 8:59 am
by Anton Ost
But i made 4096 bytes of tx buffer size and its works fine.

Re: ESP32S3 USB RX issue

Posted: Wed Jan 05, 2022 9:03 am
by Anton Ost
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.

Re: ESP32S3 USB RX issue

Posted: Thu Jan 06, 2022 2:30 am
by ESP_Sprite
Can you post your code?