arduino fio v3, GPS NMEA reading error

Hello I have a GP20U7 GPS that tranmists in NMEA. I am currently reading in that character by character. But for some reason it seems to give me two somewhat reasonable NMEA formatted strings and then just goes silly, any help?

I have all my code attached below.

also this is what the character output looks like in my serial monitor.


$GPRMC,233720.00,V,,,,,,,251016,,,N7B
$GPVTG,,,,–‰‰‰ÉJi‚j
$GP$4$G$G6$G$GP$G
$G$GG$G$G$$G$GP$G0$G$A
$G$G,$G0$T$G7$1$G,$R$G,$GÒ,$G
$6$G5$1$G,$1$G7$7$G,$G$G,$G$G,$GA$1$G3$,$G,$,$G*$G$G,

SensorCode.ino (1.72 KB)

I would also like to add that I am not indoors, so I shouldn't have a connection error..... Hopefully.

JaySik wrote (in part):

But for some reason it seems to give me two somewhat reasonable NMEA formatted strings and then just goes silly, any help?

I only see one reasonable NMEA formatted string. I should not see percent signs or whatever those are.

JaySik wrote (in part):

I am outside

Outside what? outside the USA?

Some people here will look at attachments, many (including me) will not.

To post code and/or error messages:

  1. Use CTRL-T in the Arduino IDE to autoformat your complete code.
  2. Paste the complete autoformatted code between code tags (the </> button)
    so that we can easily see and deal with your code.
  3. Paste the complete error message between code tags (the </> button)
    so that we can easily see and deal with your messages.
  4. If you already posted without code tags, you may add the code tags by
    editing your post. Do not change your existing posts in any other way.
    You may make additional posts as needed.

Before posting again, you should read the three locked topics at the top of the Programming Questions forum, and any links to which these posts point.

If your project involves wiring, please provide a schematic and/or a wiring diagram and/or a clear photograph of the wiring.

Good Luck!

If it's the same code you posted on stackoverflow, you can't delay 100ms between each character. That's long enough for 100 chars to arrive, overflowing the input buffer. The first 64 are good, but the rest are random samples.

You should read the troubleshooting page for my library, NeoGPS, especially the part about printing too much. There's also a SD logging example program that is very reliable.

Cheers,
/dev

/dev:
If it's the same code you posted on stackoverflow, you can't delay 100ms between each character. That's long enough for 100 chars to arrive, overflowing the input buffer. The first 64 are good, but the rest are random samples.

/dev

Haha yes it is the same i posted on stackoverflow. Thank you for the reply, i didnt realize i was delaying 100ms between every character read, until you mentioned it. Thank you