def main(): #res = dissectResponse(INFO_RESP) print dumpHex(apdu.createGetInfoAPDU(defs.ADPUClass.MEASURERED_DATA, infoReqValues)) res = dissectResponse(DATA_RESP) print hex(checkCrc(DATA_REQ)), hex(checkCrc(DATA_RESP)) res = dissectResponse(CONF_RESP) print res
def check(frame): return checkCrc(frame)