Exemplo n.º 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
Exemplo n.º 2
0
 def check(frame):
     return checkCrc(frame)