From: Arjen M. <Arj...@de...> - 2023-11-08 15:35:56
|
Hello Markus, We can certainly add this to the Tcl library, but what is lacking is a description and test cases. Could you supply these too? (I am not an expert on these CRC methods, so I am utterly unable to judge the code or to help out with the specific test cases 😊). Regards, Arjen From: mar...@we... <mar...@we...> Sent: Wednesday, November 8, 2023 12:05 PM To: tcl...@li... Subject: [Tcllib-devel] would it be possible to extend crc16 in tcllib Caution: This message was sent from outside of Deltares. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to "Ser...@de...<mailto:Ser...@de...>" as an attachment. Hi, i use a rs485 converter to read serial data from a solar inverters and a electricity meter. crc16 is used to check the transmission. these methods are currently available in tcllib: # CRC16: 0xBB3D # CRC-CCITT: 0x29B1 # XMODEM: 0x31C3 # CRC-32: 0xCBF43926 however, other crc codes are used. would it be possible to extend crc16 with these codes in tcllib 1.21 and above? # KERMIT: 0x2189 # MODBUS: 0x4B37 # MCRF4XX: 0x6F91 # GENIBUS: 0xD64E # X.25: 0x906E # SDLC: 0x906E # USB: 0xB4C8 # BUYPASS: 0xFEE8 # UMTS: 0xFEE8 # GSM: 0xCE3C # MAXIM: 0x44C2 # CMS: 0xAEE7 See table Appendix A in http://reveng.sourceforge.net/crc-catalogue/all.htm i have integrated these changes into the tcllib1.21/crc/crc16.tcl file, but they are overwritten with every new update. For example, i have attached the extended file. all places where a change was made were marked with MMMMMM best regards markus ort DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |