Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyCRC.CRC16 import CRC16
- from binascii import hexlify,unhexlify
- I1, I2 = '0', '3'
- BODY = 'RMT=5678'
- ETB = '\x17'
- payload = I1+I2+BODY+ETB
- print hex(CRC16().calculate(payload))
- Output : 0x9e5f(hex) 40543(int)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement