Hi,
Our demo is based on Arduino UNO R3. And the serial uses the hardware serial. If you want to use the software serial, maybe you can try to add listen() in setup like below:
HI,
I am using an ESP32 to communicate via the 2011 which has 3 UARTs to use. This code uses UART 2 to communicate with the 2011.Don’t know if this will help
//HardwareSerial Serial2(2); // use uart2;
void setup() {
Serial.begin(115200); //Start normal terminal serial session
delay(1000);
while (!Serial) {
}
Serial.println(“Welcome BG96”);
Serial2.begin(115200, SERIAL_8N1, 16, 17); //Start 2nd serial connection to BG96 connected to pins 16,17 of ESP32
}
void loop() {
if (Serial2.available()) {
Serial.write(Serial2.read());
}
if (Serial.available()) {
Serial2.write(Serial.read());
}
}