Hello,
In my project, I am using Serial1 of ESP32 for RS485 and Serial2 for GSM module serial. After obtaining data from Serial1, I use the Serial1.end() to clear the buffer. After this the GSM modules fails to responds[unable to get any response for AT commands sent]. On investing the uartBegin() in esp32-hal-uart.c , there is section after which commenting then both the serial works normally.
I wish to know what exactly is that section doing and why is Serial2 getting affected due to if that section is not commented.
Any help will be appreciated.
ESP32 Hardware serial issue.
Re: ESP32 Hardware serial issue.
Just curious why your using Serial1.end() ?
https://www.arduino.cc/reference/en/lan ... erial/end/Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call Serial.begin().
Who is online
Users browsing this forum: No registered users and 91 guests