Closed kodsurf closed 2 years ago
https://github.com/RobertK66/obc_1769_core/commit/7c087acd96c415e94a92e56667582c03c48987e7
Check summ is now ok... There was no problem with checksum. Its just stupid me. But I solve it
But there is something even more stupid that I have discovered accidently.
I stupidly left some int r =4 ; for some reasons I dont remember and forgot to delete it.
The thing is .... when I tried to cleanup the code after checksum problem cleared up - I decided to delete all rubbish from code ....
BUT WHEN I DELETE STUPID int r=4;
I get ... Hard fault . And not instantly, after arround 10-20 sec of parser working ...
LAST_STARTED_MODULE = 3
.... what a ....
Not sure what your status is here ;-) Checksum calculation is/was ok !? Another hardfault, which is somehow not related Or maybe with the usage of String output here ....
Sorry no problem there ....
It was just me stupid.
Resolved
No reason to apologize. I was just asking. Thats what Issues are for (initiate communication to learn something about the issue).
Either I do something wrong, or
Those checksum cases does not do what they are expected to do.
I had to manually turn off checsum check in order to proccessing function to be executed : https://github.com/RobertK66/obc_1769_core/commit/5c1a7d711af5fe2c5be69769a102eca3c48a1f8a
P.S : This is how I calculate checksum for autogenerated NMEA string : https://electronics.stackexchange.com/questions/214278/generating-hexadecimal-checksum-for-a-nmea-pmtk-message
If I take example NMEA message : $GPGGA,115739.00,4158.8441367,N,09147.4416929,W,4,13,0.9,255.747,M,-32.00,M,01,0000*6E
(with valid checksum from google ) - Original dev branch NMEA parser still gives an error.