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' # 30 33
- BODY = 'RMT=5678' # 52 4d 54 3d 35 36 37 38
- ETB = '\x17' # 17
- crc = I1+I2+BODY+ETB
- print hex(CRC16().calculate(crc))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement