Hi everyone,
I am trying to solve a bug I am facing for several days now, it is related to LIBUARTE communication with a GPS module
Communication is init at 115200 BAUD and with a timeout of 100us.
The GPS module sends data every second. This data is composed by several frames, all starting with '$' and ending with " *xx " (xx can be any number)
Here is an example of correct data:
But here is the data I actually receive from GNSS module:
"NEWFRAME" is to indicate the beginning of a new packet of data in the UART handler.
Here are my two problems:
1- UART handler is not called at the end of the gps module packets, but somewhere in the middle of them
2- Sometimes, even inside one uart handler packet, I can see that NMEA frames are truncated (missing several bytes)
I already tried to increase uart timeout between 100 to 10000 whithout any improvement (I am getting the exact same output)
my UART instance is defined this way:
Any idea where this issue could come from?
Best regards