Integrity check / Checksum ? #46
Replies: 1 comment
-
For 1: For 2: The protocol allows to create a CRC checksum for the symbol. For now I enter the value 0 into this field, means there's no checksum check in the plc. Otherwise the plc does check the CRC and you will get a read / write error if the value doesn't match. The CRC is calculated from the complete symbol path, with some specific value as delimiter. The latest version also adds the value for the datatype into the calculation, but that was not always the case as far as I can remember. But I guess that all TLS supporting controllers use the same calculation. For the CRC calculation the same generator polynom as in the Profisafe protocol is used. |
Beta Was this translation helpful? Give feedback.
-
Hi Thomas and community, two questions:
UInt32 reqIntegCheck = (UInt32)request.SequenceNumber + request.IntegrityId;
if (response.IntegrityId != reqIntegCheck)
Is the reason simply just to make sure the response is the correct response to the request? Or is there another reason we do this?
Any info or advice is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions