RTK Referance Station esp32

When I remove the usb cable from the esp32, it stops transmitting and goes back to press any key to start serving. how do I remove the key press waits as per the instructions, I am guessing this is why its not working when the cable is disconnected?

Hi @Wocky1 ,

Which code example are you trying to run? And which hardware are you trying to run it on?

“press any key to start serving” sounds like one of our GNSS library NTRIP examples?

Best wishes,
Paul

Yes it is, ZedF9 example14 code for the How to Build a DIY GNSS Reference Station ESP32 Setup (Option 2) running on a esp32 Thing Plus.
Not sure what they mean with this instruction though-
That’s it! Remove the key press waits and your NTRIP Server will automatically connect to WiFi and to the Caster service and your NTRIP Server is complete. Easiest NTRIP Server ever.
Yes it works, but when I disconnect the usb it stops serving and goes back to press any key. If it would just power up and start serving without intervention, that would be the goal.

Hi @Wocky1 ,

Thanks!

The links in that tutorial are a little out of date. They are pointing at v2 of the SparkFun u-blox GNSS library. For the ZED-F9P, I’d recommend using v3 of the library.

Example 14 (NTRIP Server) is here.

Migration instructions are here.

Disconnecting the USB cable causes a reset via the CH340 interface chip, causing the code to restart.

To make the code start serving immediately, you can add a static first-time flag, like this:

void loop()
{
  static bool firstTime = true;

  if (firstTime || Serial.available())
  {
    beginServing();
    firstTime = false;
  }

  Serial.println(F("Press any key to start serving"));

  delay(1000);
}

I hope this helps,
Paul

Awesome stuff Paul, Thank you for your assistance, greatly appreciated.
I should be able to do my own damage from here.
Don’t worry, AI wont be taking over your job anytime soon… It wasn’t even close to this solution.

1 Like