- Does SparkFun Triband GNSS RTK Breakout - UM980 upon connecting to its USB and OTG to android phone gives NMEA and be readable on apps like surpad and gps test? is there any settings that needs to be configure?
- On using as base or rover how to configure?
-
It should work if the phone’s serial/baud settings are good; see Hardware Hookup - SparkFun Triband GNSS RTK Breakout - UM980 Hookup Guide which is very similar (in that example it goes to a pc). There is also this example Arduino Examples - SparkFun Triband GNSS RTK Breakout - UM980 Hookup Guide
-
Either use average base example or the next one for a fixed base Arduino Examples - SparkFun Triband GNSS RTK Breakout - UM980 Hookup Guide . Here’s the rover one Arduino Examples - SparkFun Triband GNSS RTK Breakout - UM980 Hookup Guide
The UM980 breakout uses the CH340 USB to Serial IC which does appear on my Android phone as a serial device. I can see NMEA and RTCM. You will need to enable the various messages you want (GPGGA, RTCM1005, etc) using UPrecise or a serial terminal before using it with the GIS software of your choice.
sparky and TS-Russell big thanks for your great help. One more thing, Can I possibly load 2 or 3 sketches on Redboard? lets say 1. SetRoverMode, 2. Enable NMEA_5Hz, 3. Bluetooth.
You can’t really load multiple sketches onto an Arduino but you can blend them together. Start with one, then pick and choose what you need from the others.
I’ll try to merge the 3 sketches above. Hope I could make it work.
void loop() {
//Read in NMEA from the UM980
while (SerialGNSS.available())
Serial.write(SerialGNSS.read());
SerialBT.write(SerialGNSS.read());
}
I got problem piping NMEA via Bluetooth
I think you want something like this?
void loop() {
//Read in NMEA from the UM980
while (SerialGNSS.available())
{
uint8_t c = SerialGNSS.read();
Serial.write(c);
SerialBT.write(c);
}
Thanks PaulZC for the idea, I already figure it out to be like the loop below where nmea piped simultaneously to usb and bluetooth.
void loop() {
//Read in NMEA from the UM980
if (SerialGNSS.available()) {
byte data=SerialGNSS.read();
// Write data to both serial ports
Serial.write(data);
SerialBT.write(data);
}
}
Is it correct if I connect Tx from Radio to Rx of the board in UART2?
This might damage the board.