L76B-M33 NMEA sentences mixing

I am running an L76B chip connected to an RP2350 using micropython. Most if it is working fine by now, however, the ZDA and GSV lines are often “mixing”. The ZDA line appears to be inserted into the GGA line making it a corrupt sentence, see below for what commands I use for configuration and the resulting NMEA sentences:

Send Command: $PMTK251,115200*1F
Send Command: $PMTK225,0*2B
Send Command: $PMTK285,4,100*38
Send Command: $PMTK220,1000*1F
Send Command: $PMTK353,1,0,1,0,0*2B
received at 16305704: b'$PMTK011,MTKGPS*08\r\n'
received at 16307209: b'$PMTK010,003*2C\r\n'
received at 16320711: b'$PMTK001,225,3*35\r\n'
received at 16324321: b'$PMTK001,285,3*3F\r\n'
received at 16329041: b'$PMTK001,220,3,1000*1D\r\n'
received at 16821774: b'$PMTK011,MTKGPS*08\r\n'
received at 16823260: b'$PMTK010,001*2E\r\n'
received at 17619192: b'$PMTK011,MTKGPS*08\r\n'
received at 17620682: b'$PMTK010,002*2D\r\n'
received at 477269555: b'$GNGGA,000714.875,,,,,0,0,,,M,,M,,*5E\r\n'
received at 477270520: b'$GNZDA,000715.875,06,01,1980,,*46\r\n'
received at 477271508: b'$GNZDA,000716.875,06,01,1980,,*45\r\n'
received at 478266113: b'$GNGGA,000716.875,,,,,0,0,,,M,,M,,*5C\r\n'
received at 479269628: b'$GNZDA,000717.875,06,01,1980,,*44\r\n'
received at 480266154: b'$GPGSV,1,1,00*79\r\n'
received at 481272880: b'$GAGSV,1,1,00*68\r\n'
received at 481273707: b'$GNZDA,000718.875,06,01,1980,,*4B\r\n'
received at 481274776: b'$GNGGA,000718.875,,,,,0,0,,,M,,M,,$GNZDA,000719.875,06,01,1980,,*4A\r\n'
received at 481276001: b'$GNZDA,000720.875,06,01,1980,,*40\r\n'
received at 481276993: b'$GNGGA,000720.875,,,,,0,0,,,M,,M,,*59\r\n'
received at 482266251: b'$GNZDA,000721.875,06,01,1980,,*41\r\n'
......
received at 493270206: b'$GNGGA,000730.875,,,,,0,0,,,M,,M,,$GNZDA,000731.875,06,01,1980,,*40\r\n'

How can this be prevented?

Hi @tomzooi

In the mixed nmea log, you can see that GGA not have check code and line break character. I think this issue maybe related the data transformation. Could you use UART tool to directly connect L76B mouidle to monitor the output. Then to check the module output whether have the same issue.

Best regards

Thank you for your answer @Jasper .

I connected a UART converter and used minicom commandline to connect to it. The output is also mixed here.

$GPGSV,3,1,106,55,220,25,04,47,066,21,11,4PGSV,3,2,12,07,,,03,11,113,20*72,26,11,038,,16191,,29,04,348,,08,08,85,148,226,42,305,,03,3,19,16,09,023,,$GNZDA,181306.000,13,05,2026,,*44
$GNGGA,181306.000,5243.6051,N,00602.1230,E,1,9,1.19,49.0,M,46.8,M,,*7E
$GPGSV,3,1,11,09,83,076,33,06,55,220,23,04,47,066,20,11,46,29,3,2,11,07,39,1,,03,11,113,20,$GPGSV,3,3,11,1,191,,29,04,348,*42
$GAGSV,2,15,13,63,211,21,5,061,*6C
$GAG,232,,15,20,16225,08,068,*67
$GNZDA,181307.000,13,05,2026,,*45
$0,5243.6048,N,00602.1225,E,1,8,1.27,48.9,M,46.V,3,1,11,09,83,0,24,04,47,066,22,11,46,291,17,11,07,39,165,2,11,113,19,26,1SV,3,3,11,16,10,,29,04,348,*42
$GAGSV,2,1,08,63,211,21,26,42,305,,03,35,06,2,08,07,35,23216,09,023,,25,08,068,*67

Either this issue is exhibited at startup already and always present. Sometimes however after a couple of restarts of the module it stops exhibiting the issue. Then it will not exhibit the issue for the duration of it being on, but it can start with the problem again after one or more restarts.

I have not linked the behaviour to a specific setting, currently the initial communication is as follows:

Send Command: $PMTK251,115200*1F
Send Command: $PMTK225,0*2B
Send Command: $PMTK255,1*2D
Send Command: $PMTK285,4,100*38
Send Command: $PMTK220,1000*1F
Send Command: $PMTK353,1,0,1,0,0*2B
received at 29899655: b'$PMTK011,MTKGPS*08\r\n'
received at 29903004: b'$PMTK010,003*2C\r\n'
received at 29906134: b'$PMTK001,225,3*35\r\n'
received at 29912672: b'$PMTK001,255,3*32\r\n'
received at 30020959: b'$PMTK001,285,3*3F\r\n'
received at 30027861: b'$PMTK001,220,3,1000*1D\r\n'
received at 30034734: b'$PMTK001,353,3,1,0,1,0,0,13*07\r\n'
received at 30643077: b'$PMTK001,314,3*36\r\n'

I hope this is an “odd” setting somewhere, because there is no way I can work around this currently.

Hi @tomzooi can you share the details of the firmware version. Also, what was the baud rate used in this case? Have you tried to change to other baud rate as well?

L76 default baud rate is 9600bps. This issue potentially due to serial port buffer overflow. Can you try to change the baud rate to 115200bps and see if this can be resolved?

Command:

$PQBAUD,W,115200*43 //This is to set the NMEA port default baud rate to 115200bps

Best regards.

Thank you @mohamad.firdaus for your answer.

I am already running baudrate 115200 (The first command PMTK251 is used to establish this). The minicom is also running at 115200 baud.

Requesting the firmware gets the following response:

$PMTK705,MT3333_AXN5.1.9_MODULE_STD_F0,0001,Quectel-L76B,1.0*3F

According to the datasheet this means version AXN 5.1.9

Hi @tomzooi can you try use this command and checked the output:

//Query Command:
$PQVERNO,R3F
//Output message: Example
$PQVERNO,R,LC86LICNR01A01S,2021/04/25,09:09
62

Best regards,

I have tried this @mohamad.firdaus . I send the command after the PMTK605:

Send Command: $PMTK605*31\r\n
Send Command: $PQVERNO,R3F*4A\r\n

But dit not get a reply that looks like your example.

received at 14034853: b’$PMTK705,MT3333_AXN5.1.9_MODULE_STD_F0,0001,Quectel-L76B,1.03F\r\n’
received at 14039576: b’$PMTK011,MTKGPS
08\r\n’
received at 14045718: b’$PMTK010,003*2C\r\n’

Hi @tomzooi apologize for the command was not working. it was missing the ‘star’ character on the checksum. Here is the correct one:

//Query Command:
$PQVERNO,R*3F
//Output message:
$PQVERNO,R,LC86LICNR01A01S,2021/04/25,09:09*62

Can you help to re-try and see if this feasible?

Best regards,

Hello @mohamad.firdaus

That did work, I got the following reply:

$PQVERNO,R,L76BNR12A01S,2023/02/16,05:45*28

Hi @tomzooi,

The log still appears to be incorrect. Can you verify again whether the TX pins of the module are being connected directly? Furthermore, also try to disconnect the TX pin of the module from the main controller and then read the TX output of the module again.

If the same behavior is observed when the module is connected alone, can you dump the firmware and share it to us for verification from our end? Best regards,

Thank you @mohamad.firdaus

The TX pin of the GPS module is directly connected to the serial usb converter. The main controller cannot be easily disconnected since it is a stack (which would cause it to lose power), but I see no way it being connected to the RX pin of the raspberry pico that the RX pin is doing strange stuff to it. I will see if I can dump the firmware but that will be a while. I also have a L76K module here that I want to test first.