-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PGN_200 and PGN_202 have fixed "CRC" checksum of 71 #546
Comments
The hardcoded checksum value of 126 Steer: https://github.com/AgOpenGPS-Official/Boards/blob/a73d617000ac951aa77909b61ba317d0ccdbe1df/ArduinoModules/UDP/Autosteer_UDP_v5/Autosteer_UDP_v5.ino#L107 |
Yeah those are from the Arduino firmware so I'm not sure if AgOpenGps is checking checksum when receiving packets from the boards. AIO Teensy code has similar problems when I looked through its code. It has hard coded checksums on those same packets(Excluding PGN_123 as there is no machine code) and it doesn't do any checksum checking on received packets either. PGN_121 and PGN_126: https://github.com/AgOpenGPS-Official/Boards/blob/a73d617000ac951aa77909b61ba317d0ccdbe1df/TeensyModules/AIO%20v4%20RVC%20Firmware/AIO_v4_Firmware/Autosteer.ino#L77-L78 But at least on PANDA sentences checksums are checked on AgOpenGPS side as I have tested. I don't know how critical these checksums really are at least on the wired connections but I thought to better to report them. |
If some one needs a checksum calculator function for the firmware you can use this.
Although it could be better if we used a real CRC calculation for the checksum for a better error detection. |
Correct we don't check for checksums for our hardware, not on hardware. Not on software, it's just not fully implemented yet. If we do, we need to make sure everyone need to update their hardware so it will be a major thing. It's not planned for now. There are some other major things which needs more attention now. Hopefully this will explain it for now. |
Yeah, that's true. But it's possible to fix those hard coded check-sums on the sending side to start slowly converting the software/firmware towards error checking and add error checking on the receiving side later after most of the people have updated their software/firmware to send calculated checksums. |
On my new hardware (still in development) I am doing this hybrid thing to make a “non breaking” transition possible. |
PGN_200 and PGN_202 packets don't calculate the checksum and it's fixed to a constant value 71.
The text was updated successfully, but these errors were encountered: