GNSS Receiver Breakout - MAX-M10S not working

Hi Robin (@Robin_Rosiers ),

I think you are getting your code examples mixed up?

Basics/Example12_UseUart will work on the MAX-M10S. Afterwards, the MAX-M10S UART1 baud rate will be set to 38400 baud and it will only output UBX messages. That example disables NMEA output on UART1.

The code you posted seems to be based on Example5_CustomSerial. That won’t work on the MAX-M10S. As Clive says, it has no UART2. From that example: “UART2 is only available on modules like the ZED-F9P/R/T/K etc… It is not available on the MAX-M10.”

Regarding the ESP32 serial port, please check you have the correct board and port selected. Are you using the Arduino IDE? Are you using the Espressif arduino-esp32 board package? Which version? Which “board” have you selected? I’m seeing some references to the “NodeMCU” TX2 and RX2 being pins 17 and 16. But “Serial2” will only work correctly if you have the correct board, port and pins selected. You may have to define the pins manually:

// In globals
HardwareSerial mySerial(1); // Use ESP32 UART1
int8_t myTxPin = 17; // GPIO pin for UART TX
int8_t myRxPin = 16; // GPIO pin for UART RX

// In setup
mySerial.begin(9600, SERIAL_8N1, myRxPin, myTxPin);
while (myGNSS.begin(mySerial) == false) //Connect to the u-blox module using mySerial
{
  Serial.println(F("u-blox GNSS not detected"));
}

I hope this helps,
Paul