Quote:
Sorry, I had missed your previous message! That behavior looks bizarre.
The logging stops when a GPS lock is aquired, so that wouldn't be a problem under normal circumstances.
Hello, and thank you very my for replying my message.
What happens if GPS lock is never acquired? I am sure the transmitter does not have to die (SD card full) because the GPS antenna is damaged. At least, it should keep working in non-SFN mode.
Quote:
But I don't know why it doesn't aquire a GPS lock. I can't see the full screen, is the latency (buffer size) too low? I know that that can be an issue, also depending on which hardware you use. What is very weird is that the detected GPS NMEA time stamps seem to be a second behind.
I'll need to check the bitrate behavior. We should be opening the connection with the specified bitrate, but I think all the GPS receivers that I have used for testing work at 9600 baud. So that might have hidden any issues. I have put checking this on top of our todo list.
So, questions:
- Which hardware GPS receiver are you using for the NMEA? Is that also coming from the LEA-M8F GPS?
- What happens if you increase the latency setting, for example to 2 seconds?
Edit: I need to check it tomorrow (I need to plug in the hardware to properly test it) but I found something very suspicous in the code. It looks as if changing the settings in some cases might be ignored, at least until GPS has been turned off and back on again. Anyway, I need access to the hardware to plug a GPS receiver into a test system to verify if this behavior is indeed broken.
115200 is needed in my case because there is another microprocessor on the same serial line reading additional information from the GPS receiver (same LEA-M8F), such as satellite signal levels, "survey-in" status, external OCXO status, etc. There is simply not enough bandwidth at 9600 to send all this data within 1 second intervals, so at 9600 some of NMEA packets (including the ones carrying time) may be just dropped or delayed, then received too late. As you said, "What is very weird is that the detected GPS NMEA time stamps seem to be a second behind". It looks like MicroMPX decoder software is getting crazy and is losing sync in the case.
I remember I played with the latency slider, but have not got any improvement.
The only case it worked at my side is when I forcedly switched the program to use 115200 baud by entering
stty --file /dev/ttyS0 115200
In this case, all the NMEA data was sent within 1 second -> no packet loss, no delays more than 1 second -> MicroMPX decoder is happy -> No sync lost
I will be really happy if 115200 work without any tweaks

Notice I need the hardware serial port (with "real" baudrate), not the virtual USB serial port connection (with "virtual" baudrate, which does not have effect).
For the debugging purposes, the baudrate setting should be easy to discover even on such a virtual USB port, such as:
stty --file /dev/ttyUSB0
Thank you,
Denis.