The bug is software related as I can reproduce it on different boards. Also, sometimes when I do a hard reset, I get the correct date without changing the way I use the module.
Do you have any idea where it comes from? And how can I correct this?
I figured that you would need the firmware information so here is what I get when I power up the module:
$PQGNSS,00115
$PQVER,MODULE_LC79DANR01A05S,2020/12/07,09:25:1428
$PQVER,SUB_V0726
$PQVER,GL_20.2315
$PQVER,GL_API_11807
$PQVER,GL_ASIC_NVRAM_355
$PQVER,GL_CL_4774356E
$PQSWCONFIG,1,1,5,55AA55AA2166F0F500C20100000000002F000001000000009A99694100010100FF0100006400000000000000000000000000000000000000000000000000000048
$PQSWCONFIG,1,2,5,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039
$PQSWCONFIG,1,3,5,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038
$PQSWCONFIG,1,4,5,000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003F
$PQSWCONFIG,1,5,5,000000000000000001010101010100003E
I looked a bit more in the topic and i found that in the nmea protocol the date is subject to a rollover of a week counter. This rollover is due to the fact that the weeks are counted on a 10 bits counter wich represents about 19.6 years wich corresponds to the time shift that we observe.
Link of the article where i found the information : NMEA Revealed
Is there a way to patch the firmware of the LC79 to avoid this rollover ?
Also I might open a new ticket under the GNSS section as I did not found how to change the question label or add one
Sorry for the delay. GPS week number rollover is recently reported internal. Here are solutions.
Upgrade Firmware
The latest firmware version has the most recent GPS week number rollover compensation value. Thus, updating the firmware of a receiver can postpone the occurrence of the week number rollover. Since the week number rollover period is 19.7 years, it is recommended to update the firmware before the week number rollover occurs.
Disable GPS
When the receiver calculates a wrong date, for the multi-GNSS receiver, other GNSS (except GPS) constellations cannot participate in positioning because the time from messages of other satellites cannot synchronize with GPS time, which means only GPS works for positioning.
Only GPS has such week number rollover issue, so you can disable GPS for the multi-GNSS receiver, but the performance may be decreased.
Adjust Host-side Date
Another solution to the GPS week number rollover issue is to add a compensation algorithm to the client application running on the host processor. The algorithm takes the wrong date from the receiver and converts it to the correct date before passing it further up the application stack. Just to add 1024*7 days to the 10-bit week number to get the actual GPS week number.
Please note that it’s a temporary solution and cannot completely avoid the week rollover issue.
Once we understood that the problem came from the week count rollover we implemented the 3rd solution you proposed. I just wanted to be sure it was really the origin that to avoid further bugs in the application if the date error wasn’t constant
I am open to update the firmware of the chip, if so, could you provide me with the latest firmware
My actual firmware version is the following $PQVER,MODULE_LC79DANR01A05S,2020/12/07,09:25:1428)
I have found a GNSS flash tool V1.9 to update. Is it also the latest version ?
Thank you,
Best regards,
Augustin