I have LS20031 GPS module (I believe with MT3339 chip) connected to Arduino. Using SoftwareSerial reading data when available(). 57600 is the baudrate for GPS. However, I rarely get checksum at all. Here is sample output.


GPS module is blinking red which means it has enough satellites. Also I can see 3 satellites are found in the messages and fix. This module is brand new and less likely it can be buggy.

I also tried TinyGPS library, particularly examples. There is a strange thing. If I just run the program, it will give me no data and checksum errors slowly increasing.

enter image description here

If I leave the program for a while, it will occasionally produce data (sentence).

enter image description here

I have tried to change RX pin as well as Arduino itself, to exclude error there.


Here is some data, when I take the module inside of house, so it will be out of satellite coverage:

enter image description here

How to find the where is the problem? What additional information I can provide?

  • \$\begingroup\$ Can you explain the fact that successive messages seem to be run together without line breaks? It appears you may be losing the end of each line. \$\endgroup\$
    – gbarry
    Commented Nov 1, 2012 at 22:47
  • \$\begingroup\$ @gbarry, not really. But I can give more information in that way. Please check my update. It looks like when the data stream is less intensive, less data is lost. Is there buffer size for serial data which can be configured? \$\endgroup\$
    – Pablo
    Commented Nov 1, 2012 at 22:58
  • \$\begingroup\$ I tried to configure GPS baudrate to 9600 and no errors at all! Now I am more sure this has something to do with serial buffers... \$\endgroup\$
    – Pablo
    Commented Nov 1, 2012 at 23:27
  • \$\begingroup\$ There's not buffering, but as you're using a software UART you might be missing bits. Bad wiring might also lead to missing bits. \$\endgroup\$ Commented Nov 2, 2012 at 7:30

1 Answer 1


Probably you are not handling the incoming bytes quickly enough and you are experiencing serial buffer overflow. Can you write a basic sketch that makes no attempt to do any other processing other than echoing the received bytes to the hardware Serial port? Do you get different behavior if you use the hardware Serial port to receive the data rather than SoftSerial?

  • \$\begingroup\$ my sketch loop is only echoing received data from gps. I will try hardware serial as well. It looks like I can't go further than 9600 with gps, even when PC serial baudrate is set to 115200. \$\endgroup\$
    – Pablo
    Commented Nov 2, 2012 at 8:44
  • \$\begingroup\$ The GPS probably operates at a predefined baud rate, right? whether you are buffering in your sketch or not, the SoftSerial library is either buffering through an interrupt or needs to be serviced often enough that bits are reliably sampled \$\endgroup\$
    – vicatcu
    Commented Nov 2, 2012 at 16:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.