Serial Checksum calculation

accr
Posts: 5
Joined: Mon Sep 03, 2012 10:40 am

Serial Checksum calculation

Postby accr » Thu Feb 06, 2014 9:30 am

Hi to all,

maybe this is a dumb question…
I would like to know how the checksum is calculated in RS232 serial connection used by Race Technology.

The serial stream is composed of the following bytes stream:

[header][data1] [data2] [checksum]
[0x14][0x10][0x10][????]

Thanks!

Support
Posts: 399
Joined: Mon Nov 21, 2005 4:09 pm

Support

Postby Support » Thu Feb 06, 2014 9:54 am

Hello,

It is the LSB of the sum of the messages including the header. So in this case 0x34

Kind regards,
Support (K)
______________________________
Posted by Race Technology Support

accr
Posts: 5
Joined: Mon Sep 03, 2012 10:40 am

Postby accr » Thu Feb 06, 2014 11:39 am

Thanks, but what is LSB? Least Significant Bit?

Support
Posts: 399
Joined: Mon Nov 21, 2005 4:09 pm

Support

Postby Support » Thu Feb 06, 2014 12:42 pm

Least significant byte. If you had a message

0xAA 0xBB 0XCC 0xDD

3OE is the sum of the messages, making the the checksum 0x0E.

Kind regards,
Support (K)
______________________________
Posted by Race Technology Support

accr
Posts: 5
Joined: Mon Sep 03, 2012 10:40 am

Postby accr » Fri Feb 07, 2014 8:55 am

It works like a charm. =)

Thank you very much.


Return to “General software support”

Who is online

Users browsing this forum: No registered users and 201 guests