Example #1
0
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
Example #2
0
 def check(frame):
     return checkCrc(frame)