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:
https://www.modbustools.com/modbus_crc16.html
and an application library here:
https://github.com/mandulaj/PZEM-004T-v30/blob/master/src/PZEM004Tv30.cpp

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

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvE3tUP%2BuKwiPNxNcWLpvi_4uR69fETm59z4cGFS_30zA%40mail.gmail.com.

Reply via email to