Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I am new to serial programing and I am trying to create a component that communicates with a scale. The scale is plugged to the pc using RS232 port and I have to use the checkout protocol Dialog 06 to communicate with the scale.
The protocol uses checksums for verification at start up and that is where i have problems. I tried to create these checksums using CRC16 and bit rotation like mentioned in the manual of the scale. But when I send these checksums to the sale, the scale always tell me that these checksums are incorrect.

Does anyone know some good books or code samples for usage of this protocol? Especially the authentication process at beginning.
Posted
Updated 4-Sep-19 23:11pm
Comments
Sergey Alexandrovich Kryukov 19-Nov-11 19:33pm    
What, do you have to authenticate to the scale? :-)
I do believe there is not enough information. We do not have your scale programming manual, don't even know the model of the scale.
--SA
Albert Holguin 20-Nov-11 20:42pm    
The authentication process is going to be specific to that vendor (or system). Even the CRC16 calculation has to be specified with a polynomial. Here's a calculator[^] that does it for you (so you can check your code) but again, the polynomials are system dependent.
neo308 24-Nov-11 16:15pm    
Yes that solved my problem. The polynomials used in CRC16 is vendor dependent. Thanks for your hint.

1 solution

Contact the scale's hardware manufacturer for their SDK.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900