-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
ESP32XX
Device Description
Hi all
I'm not even sure if this is the right place to report my issue
I am using ESP32Dev module and ESP32S3Dev module with Arduino 2.3.6
when debugging I have always used serial monitor which has always served well
recently, for no apparent reason the serial monitor on my boards (i have several nodes) stopped working and I have been ppulling my hair out trying to find a solution then i came across this issue at https://esp32.com/viewtopic.php?t=31910
some of the users here advocate editing boards.txt and changing
CoreESP32.serial.disableDTR=false
CoreESP32.serial.disableRTS=false
to
CoreESP32.serial.disableDTR=true
CoreESP32.serial.disableRTS=true
i changed these lines in my boards.txt for the relevant modules and now the issue has become totally hit and miss
on some boards the serial monitor works, on others it doesn't
I am not a serial expert but to me getting this almost random outcome points to something a bit more serious than changing a couple of lines in boards.txt
if there is anyone here who knows a solution for this problem rather than a quick fix which might work could they please share it or is there somewhere else I should be registering this problem
thanks in advance to anyone who can help
Dave
Hardware Configuration
ESP32 & ESP32S3 using esp_now connecting nodes by wifi
Version
latest stable Release (if not listed below)
Type
Task
IDE Name
Arduin0 2.3.6
Operating System
Windows 11
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
if(Serial.available()) { in loop is never seen as true even when characters are typed in serial monitor
Sketch
void loop() {
if(Serial.available()) {
char c = Serial.read();
if(c != 13) {
kbdInput += c; // add c to string
}
else inptrdy = true;
Serial << "serial ok c: " << c << " kbdInput: " << kbdInput <<
" inputrdy: " << ((inptrdy)?"true":"false") << endl;
}
if(inptrdy) {
Serial << "inptrdy true kbdInput: " << kbdInput << endl;
if(kbdInput == "c") {
Serial << "Keyboard commands:" << endl <<
"tables: print nodes tables" << endl <<
"restart: restart this node" << endl <<
"proxy: set this node to use a proxy" << endl <<
"proxy table: print proxy table" << endl <<
"------------------------------------------" << endl << endl;
}
}
}
// return character set to Carriage Return
Debug Message
if(Serial.available()) {
is never seen as true, hence there is never an output
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.