Hi Rob,
Is there any CRC16 implementation example? DS18B20 library has a CRC8 implemented, but only for bit checking.
I need a CRC16 computation for reading a MODBUS slave. The polynomial generator is X16+X12+X2+1 and the value for computation 0xA0001.
The C implementation for CRC16 MODBUS seems to be this one:
and an application library here:
The problem is that translating this C to jal seems very painful...
I can find each CRC value for each needed command by running a MODBUS software, but the CRC values will be different for each slave address and/or numbers of bytes to be read from one particular slave...which is inconvenient.
thank you,
Vasile