Skip to content

Adjust checksum during unicore command response #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Feb 26, 2024

The NMEA parse is incorrectly throwing out valid responses from the UM980 because the checksum calculation is not including the $ (needed for unicore command responses).

Example valid response from UM980: $command,BESTNAVB 1,response: OK*54

SEMP: Log NMEA command, 0x0023 (35) bytes, bad checksum, received 0x54, computed: 0x70

By XORing the $ into the 0x70 computed checksum, we correctly allow the response to pass the check.

The NMEA parse is incorrectly throwing out valid responses from the UM980 because the checksum is missing the $.

SEMP: Log NMEA command, 0x0023 (35) bytes, bad checksum, received 0x54, computed: 0x70
Buffer: $command,BESTNAVB 1,response: OK*54

By XORing the $ into the 0x70 computed checksum, we correctly allow the response to pass the check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant