Hello everyone,
I’m having an issue with my A9G module when it comes to receiving GPS locations. Currently, I’m trying to ensure that the locations are displayed correctly in the serial output. The locations I’m receiving are in the following format:
$GNRMC,090455.097,V,3928.0366,N,00622.6689,W,0.074,283.15,261024,,,N*40.
As I’ve read, the "V" indicates "no valid data," and it should display an "A" instead.
Here’s my code, which is quite basic:
#include <SoftwareSerial.h>
SoftwareSerial a9g(4, 3);
void setup() {
Serial.begin(115200);
a9g.begin(9600);
Serial.println("Iniciando GPS...");
a9g.println("AT");
a9g.println("AT+GPS=1");
a9g.println("AT+GPSRD=10");
}
void loop() {
if (a9g.available()) {
Serial.write(a9g.read());
}
}
If anyone could help me out, I would greatly appreciate it!
Thank you!
