Got a new U-blox Neo 6M 2 days back. It came with the Antenna. Tested it outside yesterday, it worked fine. Tested it today, and it's not fixing onto any satellites. Tried everything I could.
The cold start after I got it new was about 30 secs or so, But today, I left it outside for about an hour and still no fix.
This is the code I'm using:
HardwareSerial &gpsSerial = Serial1;
void setup() {
Serial.begin(115200);
gpsSerial.begin(9600);
}
void loop() {
if(gpsSerial.available()) {
Serial.write(gpsSerial.read());
}
}
I switched to a different program to store the data in variables, but ended up bringing it back down to this when it stopped working.
I'm also pretty sure my connections(Arduino Mega with Hardware Serial) are not wrong, cuz I am still getting the NMEA sentences.
The Output looks something like this :
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,,,,,,,,N*30
$GPGGA,,,,,,0,00,99.99,,,,,,*48
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGSV,1,1,00*79
$GPGLL,,,,,,V,N*64
$GPRMC,,V,,,,,,,,,,N*53
Regards,