/edtt-2.7.6/src/tests/ |
D | hci_verification.py | 25 def __check_command_complete_event(transport, idx, trace): argument 26 event = get_event(transport, idx, 100); 30 def __check_unknown_command_rsp_event(transport, idx, trace, status): argument 31 event = get_event(transport, idx, 100); 38 def hci_gev_bv_01_c(transport, idx, trace): argument 42 status = inquire(transport, idx, lap, length, NumRsp, 100); 43 success = __check_unknown_command_rsp_event(transport, idx, trace, status); 45 status = read_buffer_size(transport, idx, 100); 46 success = __check_unknown_command_rsp_event(transport, idx, trace, status) and success; 50 status = write_le_host_support(transport, idx, le, simul, 100); [all …]
|
D | gatt_verification.py | 31 def attRequest(transport, initiator, txData, trace): argument 32 status = le_data_write(transport, initiator.initiator, initiator.handles[0], 0, 0, txData, 100); 38 dataSent = has_event(transport, initiator.initiator, 200)[0]; 41 event = get_event(transport, initiator.initiator, 100); 50 def attResponse(transport, initiator, trace, timeout=100): argument 54 dataReady = le_data_ready(transport, initiator.initiator, timeout); 58 … rxPBFlags, rxBCFlags, rxDataPart = le_data_read(transport, initiator.initiator, 100)[2:]; 73 def exchangeMTU(transport, initiator, mtuSize, trace): argument 79 success = attRequest( transport, initiator, txData, trace ); 81 success, rxData = attResponse( transport, initiator, trace ); [all …]
|
D | ll_verification.py | 52 def verifyAndShowEvent(transport, idx, expectedEvent, trace): argument 54 event = get_event(transport, idx, 100); 58 def verifyAndShowMetaEvent(transport, idx, expectedEvent, trace): argument 60 event = get_event(transport, idx, 100); 64 def verifyAndFetchEvent(transport, idx, expectedEvent, trace): argument 66 event = get_event(transport, idx, 100); 70 def verifyAndFetchMetaEvent(transport, idx, expectedEvent, trace): argument 72 event = get_event(transport, idx, 100); 76 def getCommandCompleteEvent(transport, idx, trace): argument 78 return verifyAndShowEvent(transport, idx, Events.BT_HCI_EVT_CMD_COMPLETE, trace); [all …]
|
D | gap_verification.py | 26 def gap_disc_nonm_bv_01_c(transport, upperTester, lowerTester, trace): argument 30 …advertiser = Advertiser(transport, upperTester, trace, AdvertiseChannel.ALL_CHANNELS, Advertising.… 32 …scanner = Scanner(transport, lowerTester, trace, ScanType.ACTIVE, AdvertisingReport.ADV_IND, ownAd… 56 def gap_disc_nonm_bv_02_c(transport, upperTester, lowerTester, trace): argument 60 …advertiser = Advertiser(transport, upperTester, trace, AdvertiseChannel.ALL_CHANNELS, Advertising.… 62 …scanner = Scanner(transport, lowerTester, trace, ScanType.ACTIVE, AdvertisingReport.ADV_IND, ownAd… 86 def gap_disc_limm_bv_01_c(transport, upperTester, lowerTester, trace): argument 90 …advertiser = Advertiser(transport, upperTester, trace, AdvertiseChannel.ALL_CHANNELS, Advertising.… 92 …scanner = Scanner(transport, lowerTester, trace, ScanType.ACTIVE, AdvertisingReport.ADV_IND, ownAd… 115 def gap_disc_limm_bv_02_c(transport, upperTester, lowerTester, trace): argument [all …]
|
D | ll_multiple_connections.py | 15 def ll_multiple_connections(transport, trace): argument 25 …advertiser = Advertiser(transport, 0, trace, AdvertiseChannel.ALL_CHANNELS, Advertising.CONNECTABL… 29 …scanner1 = Scanner(transport, 1, trace, ScanType.PASSIVE, AdvertisingReport.ADV_IND, ownAddress, S… 31 …scanner2 = Scanner(transport, 2, trace, ScanType.PASSIVE, AdvertisingReport.ADV_IND, ownAddress, S… 38 success = success and preamble_set_public_address( transport, 1, rawPeerAddress, trace ); 39 success = success and preamble_set_public_address( transport, 2, rawPeerAddress, trace ); 47 …initiator1 = Initiator(transport, 1, 0, trace, initiatorAddress, Address( ExtendedAddressType.PUBL… 52 …initiator2 = Initiator(transport, 2, 0, trace, initiatorAddress, Address( ExtendedAddressType.PUBL… 98 def main(transport, trace): argument 100 …print(("preamble Standby Slave " + ("PASS" if preamble_standby(transport, 0, trace) else "FAIL"… [all …]
|
D | le_transceiver_test.py | 13 def LE_Transceiver_Test(transport, trace): argument 19 le_receiver_test(transport, 0, RxCh, 100); 20 le_transmitter_test(transport, 1, RxCh, 32, 0, 100); 21 transport.wait(3000); 22 RxCount = le_test_end(transport, 0, 100); 23 TxCount = le_test_end(transport, 1, 100); 32 …nsceiver Test " + ("PASSED" if success else "FAILED") + " with %i device(s)" %transport.n_devices); 52 def run_a_test(args, transport, trace, test_spec): argument 53 return not test_spec.test_private(transport, trace);
|
D | echo_test.py | 7 def _echo_test(transport, trace): argument 11 for i in range(0,transport.n_devices): 12 echo(transport, i, str.encode("A random test string"), 100); 17 trace.trace(3,"Echo test passed with %i device(s)"% transport.n_devices); 37 def run_a_test(args, transport, trace, test_spec): argument 38 return test_spec.test_private(transport, trace);
|
/edtt-2.7.6/src/components/ |
D | basic_commands.py | 411 def echo(transport, idx, message, to): argument 414 transport.send(idx, cmd); 416 packet = transport.recv(idx, len(cmd), to); 444 def inquire(transport, idx, lap, length, NumRsp, to): argument 448 transport.send(idx, cmd); 450 packet = transport.recv(idx, 5, to); 468 def disconnect(transport, idx, handle, reason, to): argument 471 transport.send(idx, cmd); 473 packet = transport.recv(idx, 5, to); 492 def read_remote_version_information(transport, idx, handle, to): argument [all …]
|
D | preambles.py | 34 def __verifyAndShowEvent(transport, idx, expectedEvent, trace): argument 36 event = get_event(transport, idx, 100); 40 def __verifyAndShowMetaEvent(transport, idx, expectedEvent, trace): argument 42 event = get_event(transport, idx, 100); 46 def __verifyAndFetchEvent(transport, idx, expectedEvent, trace): argument 48 event = get_event(transport, idx, 100)[1:]; 52 def __verifyAndFetchMetaEvent(transport, idx, expectedEvent, trace): argument 54 event = get_event(transport, idx, 100)[1:]; 58 def __getCommandCompleteEvent(transport, idx, trace): argument 60 return __verifyAndShowEvent(transport, idx, Events.BT_HCI_EVT_CMD_COMPLETE, trace); [all …]
|
D | initiator.py | 32 …def __init__(self, transport, initiator, peer, trace, initiatorAddress, peerAddress, filterPolicy=… argument 33 self.transport = transport; 82 success = has_event(self.transport, idx, timeout)[0]; 84 event = get_event(self.transport, idx, 200); 103 success = has_event(self.transport, idx, timeout)[0]; 105 event = get_event(self.transport, idx, 200); 121 success = has_event(self.transport, idx, timeout)[0]; 123 event = get_event(self.transport, idx, 200); 139 success = has_event(self.transport, idx, timeout)[0]; 141 event = get_event(self.transport, idx, 200); [all …]
|
D | resolvable.py | 36 def __init__(self, transport, idx, trace, localIRK=None): argument 37 self.transport = transport; 44 event = get_event(self.transport, self.idx, 100); 55 status = le_clear_resolving_list(self.transport, self.idx, 100); 68 …status = le_add_device_to_resolving_list(self.transport, self.idx, peerAddress.type, peerAddress.a… 78 …status = le_remove_device_from_resolving_list(self.transport, self.idx, peerAddress.type, peerAddr… 83 status = le_set_address_resolution_enable(self.transport, self.idx, enable, 100); 103 status = le_set_resolvable_private_address_timeout(self.transport, self.idx, timeout, 100);
|
D | pairing.py | 28 def __init__(self, transport, trace, initiator, IRKm, IRKs=None): argument 29 self.transport = transport; 44 status = le_data_write(self.transport, idx, self.initiator.handles[idx], 0, 0, txData, 100); 49 dataSent = has_event(self.transport, idx, 100)[0]; 52 event = get_event(self.transport, idx, 100); 67 dataReady = le_data_ready(self.transport, idx, 100); 69 rxPBFlags, rxBCFlags, rxData = le_data_read(self.transport, idx, 100)[2:]; 80 status, rand = le_rand(self.transport, idx, 100); 82 event = get_event(self.transport, idx, 100); 108 …status, encrypted = le_encrypt(self.transport, idx, toArray(key, 16), toArray(plaintext, 16), 2000… [all …]
|
D | advertiser.py | 64 …def __init__(self, transport, idx, trace, channels, advertiseType, ownAddress, peerAddress, filter… argument 66 self.transport = transport; 105 event = get_event(self.transport, self.idx, 200); 123 …self.status = le_set_advertising_parameters(self.transport, self.idx, self.minInterval, self.maxIn… 132 … self.status = le_set_advertising_data(self.transport, self.idx, dataSize, advertiseData, 200); 140 … self.status = le_set_scan_response_data(self.transport, self.idx, dataSize, responseData, 200); 146 self.status = le_set_advertising_enable(self.transport, self.idx, enable, 200); 174 if has_event(self.transport, self.idx, timeout)[0]: 175 event = get_event(self.transport, self.idx, 200);
|
D | scanner.py | 64 …def __init__(self, transport, idx, trace, scanType, reportType, ownAddress, filterPolicy=ScanningF… argument 65 self.transport = transport; 99 event = get_event(self.transport, self.idx, 200); 107 …status = le_set_scan_parameters(self.transport, self.idx, self.scanType, self.scanInterval, self.s… 112 … status = le_set_scan_enable(self.transport, self.idx, enable, ScanFilterDuplicate.DISABLE, 200); 119 flush_events(self.transport, self.idx, 200); 143 for event in get_event(self.transport, self.idx, 200, True): 177 if has_event(self.transport, self.idx, 200)[0]: 190 if has_event(self.transport, self.idx, 200)[0]: 207 if has_event(self.transport, self.idx, 200)[0]: [all …]
|
/edtt-2.7.6/src/ |
D | edttool.py | 66 def init_transport(transport, xtra_args, trace): argument 67 transport_module = try_to_import(transport, "transport", "components.edttt_"); 68 transport = transport_module.EDTTT(xtra_args, trace); 69 transport.connect(); 70 return transport; 72 def run_one_test(args, xtra_args, transport, trace, test_mod, test_spec, nameLen): argument 75 if test_spec.number_devices > transport.n_devices: 77 (test_spec.number_devices, transport.n_devices)); 79 result = test_mod.run_a_test(args, transport, trace, test_spec); 85 def run_tests(args, xtra_args, transport, trace): argument [all …]
|
/edtt-2.7.6/docs/ |
D | EDTT_transport.md | 1 # EDTT transport 3 The EDTT transport only function is to deliver data from and to the EDTT tests 6 The transport behaves like a pipe/FIFO. 8 How a given transport is implemented is fully up to the designer. It must only 11 On the PC side the transport layer is implemented in Python. On the DUT side it 17 A transport must be implemented as an importable python module and implement the 22 to parse. The transport may use this to 23 receive its own parameters. Note that the transport must be tolerant 44 The embedded side of the transport must implement the following interface: 48 Initialize the transport to the EDTT [all …]
|
D | EDTT_transport_bsim.md | 1 # EDTT transport for BabbleSim devices 4 EDTT transport for BabbleSim (`edttt_bsim.py` and associated embedded driver) 47 When the EDTT does `transport.wait(time)`, it tells the bridge to just let 65 3. The embedded device transport 67 * When the app tries to read from the EDTT transport: it will try 100 Between the EDTT bsim transport and the bridge there is a simple protocol, 102 Any action performed by the bridge is initiated by the EDTT transport side. 142 ### Notes about the transport in the EDTT side 151 When disconnecting, the transport will attempt to delete the FIFOs 159 transport side. [all …]
|
D | README.md | 6 * A transport mechanism, which is used by this RPC to transport 15 More information about the RPC transport can be found in 17 And about the transport used with BabbleSim in
|