deviceInstanceRangeLowLimit=0, deviceInstanceRangeHighLimit=4194303, ) print("who_is_request") who_is_request.debug_contents() print("") test_apdu = APDU() who_is_request.encode(test_apdu) print("test_apdu") test_apdu.debug_contents() print("") print("modify test_apdu") test_apdu.pduData = test_apdu.pduData[:-1] # test_apdu.pduData = xtob('7509006869207468657265') # CharacterString("hi there") test_apdu.debug_contents() print("") # make a send transition from start to success test_server.start_state.send(test_apdu).success() # run the machine print("running") test_server.run() print("") # ============================================================================== # check for success
segmentationSupported='segmentedBoth', vendorID=15, ) print("i_am_request") i_am_request.debug_contents() print("") test_apdu = APDU() i_am_request.encode(test_apdu) print("test_apdu") test_apdu.debug_contents() print("") print("modify test_apdu") test_apdu.pduData = test_apdu.pduData[5:] test_apdu.debug_contents() print("") # make a send transition from start to success test_server.start_state.send(test_apdu).success() # run the machine print("running") test_server.run() print("") # ============================================================================== # check for success assert not test_server.running
read_property_request.apduInvokeID = 1 print("read_property_request") read_property_request.debug_contents() print("") test_apdu = APDU() read_property_request.encode(test_apdu) print("test_apdu") test_apdu.debug_contents() print("") if 0: print("modify test_apdu") test_apdu.pduData = test_apdu.pduData[:5] test_apdu.debug_contents() print("") # make a send transition from start to success start_state = test_server.start_state.doc("start_state") response_state = start_state.send(test_apdu).doc("response_state") success_state = response_state.receive(ComplexAckPDU).doc("success_state") success_state.success() # run the machine print("running") test_server.run() print("") # ==============================================================================