Log serial data from GPS RTK SMA on Arduino

Hi there,

I am having trouble reading serial data from a GPS RTK SMA board onto a LattePanda v1 Arduino.

I have connected the GPS RTK SMA board to my LattePanda via USB, and am able to configure and view messages in u-center via USB. The GPS unit is working nicely and accurately in u-center. In u-center, I have configured the NAV-HPPOSLLH message to be sent over UART1, enabled the message, and set UART1 to 115200 baud rate. I have also saved the configuration to BBR and flash.

However, when I disconnect the USB I am unable to read any serial data from the UART1 pins (shown in attached image) on the GPS unit and serial pins on Arduino. The GPS unit power LED is on and PPS LED is flashing once per second.

--------------------------------------------------- Hardware setup -------------------------------------------------

5V power supply ↔ LattePanda with onboard Arduino

Power supply GND ↔ GPS RTK SMA UART1 GND pin

Power supply 5V ↔ GPS RTK SMA UART1 5V pin

LattePanda Arduino D0 (RX) pin ↔ GPS RTK SMA UART1 TX/MISO pin

LattePanda Arduino D1 (TX) pin ↔ GPS RTK SMA UART1 RX/MOSI pin

The Arduino code I am using is:

int data;

void setup() {
  Serial.begin(115200);
  while(!Serial); // wait for serial monitor to open
  Serial.print("<Arduino is ready>");
}

void loop() {
  // send data only when you receive data:
  if (Serial.available()) {
    // read the incoming byte:
    data = Serial.read();

    // say what you got:
    Serial.print("I received: ");
    Serial.println(data, DEC);
  }
}

When I open the Arduino serial monitor, it reads “”, but no data is printed. All I want is to log the lat/long data from the GPS to the Arduino. Please let me know how I can fix this issue?

Thanks

I’m afraid I don’t know anything about the LattePanda v1 Arduino, maybe try posting on their support boards?