ViperDaSnake
Member
I am reading a serial string into a Red Lion DSP.
The string has a 2 character check sum at the end of the string to confirm that the string is not corrupt.
I need to understand how they go about getting the value so I can error check the string.
I also want send commands to the device but I need to send the proper check sum based on the command I send.
I contacted the manufacturer of the device (Sullair Compressors) and they do not remember how they calculated the check sum?
I've googled quite a few possible solutions but I am just as confused now as when I started. I know this will not be easy but I am willing to learn...
Below are real world captures from the device. (Sullair Compressor)
According to the manual, the last two numbers are the checksum based on all the previous numbers listed here. So in the first string, 50 is the check sum.
Does anyone know how to calculate this?
Let me know what else I could provide to help you help me.
03M50
01N0,110,3781,B,A89
03N461,111,3775,t,AE6
03M50
01N0,110,3781,B,A89
03N456,111,3775,t,AE2
Thanks
Curtis
The string has a 2 character check sum at the end of the string to confirm that the string is not corrupt.
I need to understand how they go about getting the value so I can error check the string.
I also want send commands to the device but I need to send the proper check sum based on the command I send.
I contacted the manufacturer of the device (Sullair Compressors) and they do not remember how they calculated the check sum?
I've googled quite a few possible solutions but I am just as confused now as when I started. I know this will not be easy but I am willing to learn...
Below are real world captures from the device. (Sullair Compressor)
According to the manual, the last two numbers are the checksum based on all the previous numbers listed here. So in the first string, 50 is the check sum.
Does anyone know how to calculate this?
Let me know what else I could provide to help you help me.
03M50
01N0,110,3781,B,A89
03N461,111,3775,t,AE6
03M50
01N0,110,3781,B,A89
03N456,111,3775,t,AE2
Thanks
Curtis