Serial communication breaking at around 300 characters, regression on 2.0.10 #8522
Closed
1 task done
Labels
Area: Peripherals API
Relates to peripheral's APIs.
Chip: ESP32-C3
Issue is related to support of ESP32-C3 Chip
Priority: High 🗻
Issues with high priority which needs to be solved first.
Status: Needs investigation
We need to do some research before taking next steps on this issue
Type: Bug 🐛
All bugs
Type: Regression
Result of unforeseen consequences of a previous change
Milestone
Board
Adafruit QT Py ESP32-C3
Device Description
Adafruit QT Py ESP32-C3 - https://www.adafruit.com/product/5405
Hardware Configuration
Nothing extra, just board.
Version
v2.0.11
IDE Name
Arduino IDE
Operating System
ubuntu 22.04
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
921600
Description
When communicating with device over Serial with more than 256 bytes the data is truncated (most commonly round 300-350 bytes but it is not static number) despite setting buffers to 1024 bytes (setRxBufferSize, setTxBufferSize).
It was working fine in the past but stopped working after upgrade of Arduino IDE.
I've been able to narrow this down to ESP 2.0.10 version:
Steps to reproduce:
Using serial monitor is sufficient to replicate this behavior.
Test string used (nothing special - just plain text):
There are some similar reports (https://github.com/espressif/arduino-esp32/issues?q=is%3Aissue+is%3Aopen+setRxBufferSize+) but for versions older than 2.0.10 and other hardware.
I suspect there was new regression introduced in 2.0.10.
Video showing the unexpected behavior (pasted 512 YYY... and it was not received fully):
https://github.com/espressif/arduino-esp32/assets/5213149/e5b66c90-dff8-4acd-ac21-9830809e25c0
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: