|
From: <mar...@we...> - 2023-11-08 11:05:23
|
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 |