/openthread-latest/tests/toranj/ncp/ |
D | test-003-join.py | 45 node1 = wpan.Node() variable 57 node1.form('PAN-aB71n') 58 verify(node1.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED) 59 verify(node1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER) 62 node2.join_node(node1, node_type=wpan.JOIN_TYPE_ROUTER) 64 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME)) 65 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID)) 66 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID)) 67 verify(node2.get(wpan.WPAN_KEY) == node1.get(wpan.WPAN_KEY)) 72 node2.join_node(node1, node_type=wpan.JOIN_TYPE_END_DEVICE) [all …]
|
D | test-009-insecure-traffic-join.py | 42 node1 = wpan.Node() variable 53 node1.form("insec-join-test") 62 node1.permit_join(duration_sec='100', port=str(insecure_port)) 65 node2.join_node(node1, should_set_key=False) 68 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME)) 69 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID)) 70 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID)) 72 ll1 = node1.get(wpan.WPAN_IP6_LINK_LOCAL_ADDRESS)[1:-1] 79 recver = node1.prepare_rx(sender) 92 sender2 = node1.prepare_tx((ll1, insecure_port), (ll2, rx_port), "Hi back! (insecure)", NUM_MSGS) [all …]
|
D | test-006-traffic-router-end-device.py | 43 node1 = wpan.Node() variable 56 node1.form('test-PAN') 57 node2.join_node(node1, node_type=wpan.JOIN_TYPE_END_DEVICE) 60 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME)) 61 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID)) 62 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID)) 68 ll1 = node1.get(wpan.WPAN_IP6_LINK_LOCAL_ADDRESS)[1:-1] 72 ml1 = node1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 83 sender = node1.prepare_tx(src, dst, msg_length, NUM_MSGS) 93 s1 = node1.prepare_tx((src, PORT), (dst, PORT), 'Hi there!', NUM_MSGS) [all …]
|
D | test-007-traffic-router-sleepy.py | 43 node1 = wpan.Node() variable 56 node1.form('test-PAN') 57 node2.join_node(node1, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 60 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME)) 61 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID)) 62 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID)) 68 ll1 = node1.get(wpan.WPAN_IP6_LINK_LOCAL_ADDRESS)[1:-1] 72 ml1 = node1.get(wpan.WPAN_IP6_MESH_LOCAL_ADDRESS)[1:-1] 88 sender = node1.prepare_tx(src, dst, msg_length, NUM_MSGS) 98 s1 = node1.prepare_tx((src, PORT), (dst, PORT), 'Hi there!', NUM_MSGS) [all …]
|
D | test-005-discover-scan.py | 45 node1 = wpan.Node() variable 61 node1.form("net1", channel='11', panid='0x0001') 75 for node in [node1, node2, node3, node4, node5]: 80 scan_result = wpan.parse_scan_result(node1.discover_scan()) 91 for node in [node1, node2, node3, node4]: 106 node1.commissioner_start() 107 node1.commissioner_add_joiner(scanner_hw_addr, '123456') 114 for node in [node1, node2]: 122 verify(node1.is_in_scan_result(scan_result))
|
D | test-041-lowpan-fragmentation.py | 46 node1 = wpan.Node() variable 59 node1.form('horizon') # "zero dawn" 60 node2.join_node(node1, node_type=wpan.JOIN_TYPE_END_DEVICE) 66 ll1 = node1.get(wpan.WPAN_IP6_LINK_LOCAL_ADDRESS)[1:-1] 74 sender = node1.prepare_tx((ll1, PORT), (ll2, PORT), msg_length)
|
D | test-033-mesh-local-prefix-change.py | 49 node1 = wpan.Node() variable 70 node1.form( 94 verify(node2.get(wpan.WPAN_IP6_MESH_LOCAL_PREFIX) == node1.get(wpan.WPAN_IP6_MESH_LOCAL_PREFIX))
|
/openthread-latest/tests/nexus/ |
D | test_border_agent.cpp | 43 Node &node1 = nexus.CreateNode(); in TestBorderAgent() local 61 SuccessOrQuit(node1.Get<Mac::Mac>().SetPanChannel(node0.Get<Mac::Mac>().GetPanChannel())); in TestBorderAgent() 62 node1.Get<Mac::Mac>().SetPanId(node0.Get<Mac::Mac>().GetPanId()); in TestBorderAgent() 63 node1.Get<ThreadNetif>().Up(); in TestBorderAgent() 79 SuccessOrQuit(node1.Get<Tmf::SecureAgent>().SetPsk(pskc.m8, Pskc::kSize)); in TestBorderAgent() 81 SuccessOrQuit(node1.Get<Tmf::SecureAgent>().Open()); in TestBorderAgent() 82 SuccessOrQuit(node1.Get<Tmf::SecureAgent>().Connect(sockAddr)); in TestBorderAgent() 86 VerifyOrQuit(node1.Get<Tmf::SecureAgent>().IsConnected()); in TestBorderAgent() 93 node1.Get<Tmf::SecureAgent>().Close(); in TestBorderAgent() 97 VerifyOrQuit(!node1.Get<Tmf::SecureAgent>().IsConnected()); in TestBorderAgent() [all …]
|
D | test_dtls.cpp | 236 Node &node1 = nexus.CreateNode(); in TestDtlsSingleSession() local 250 SuccessOrQuit(node1.Get<Mle::MleRouter>().SetRouterEligible(false)); in TestDtlsSingleSession() 251 node1.Join(node0); in TestDtlsSingleSession() 253 VerifyOrQuit(node1.Get<Mle::Mle>().IsChild()); in TestDtlsSingleSession() 262 DtlsTransportAndSingleSession dtls1(node1); in TestDtlsSingleSession() 287 dtls1.SetReceiveCallback(HandleReceive, &node1); in TestDtlsSingleSession() 288 dtls1.SetConnectCallback(HandleConnectEvent, &node1); in TestDtlsSingleSession() 302 VerifyOrQuit(sDtlsEvent[node1.GetId()] == Dtls::Session::kDisconnectedError); in TestDtlsSingleSession() 311 dtls1.SetReceiveCallback(HandleReceive, &node1); in TestDtlsSingleSession() 312 dtls1.SetConnectCallback(HandleConnectEvent, &node1); in TestDtlsSingleSession() [all …]
|
/openthread-latest/tests/toranj/cli/ |
D | test-003-join.py | 46 node1 = cli.Node() variable 52 node1.allowlist_node(node2) 53 node2.allowlist_node(node1) 55 node1.form('join-net') 56 verify(node1.get_state() == 'leader') 58 node2.join(node1) 63 node2.join(node1, cli.JOIN_TYPE_END_DEVICE) 69 node2.join(node1, cli.JOIN_TYPE_SLEEPY_END_DEVICE) 78 node1.cli('macfilter rss add * -99') 81 node2.join(node1, cli.JOIN_TYPE_END_DEVICE) [all …]
|
D | test-005-traffic-router-to-child.py | 48 node1 = cli.Node() variable 55 node1.form('net') 56 node2.join(node1, cli.JOIN_TYPE_END_DEVICE) 57 node3.join(node1, cli.JOIN_TYPE_SLEEPY_END_DEVICE) 59 verify(node1.get_state() == 'leader') 63 ll1 = node1.get_linklocal_ip_addr() 67 ml1 = node1.get_mleid_ip_addr() 75 node1.ping(ll2, size=size, count=count) 77 node1.ping(ml2, size=size, count=count) 87 node1.ping(ll3, size=size, count=count) [all …]
|
D | test-032-leader-take-over.py | 51 node1 = cli.Node() variable 59 node1.form('lto') 60 node2.join(node1) 61 node3.join(node1) 66 verify(node1.get_state() == 'leader') 74 node1.set_router_selection_jitter(1) 76 n1_weight = int(node1.get_leader_weight()) 105 for node in [node1, node2, node3, child2]: 107 verify(node1.get_state() == 'router')
|
D | test-004-scan.py | 62 node1 = cli.Node() variable 69 nodes = [node1, node2, node3, node4, node5] 74 node1.form('net1', panid=0x1111, channel=12) 86 verify_scan_result_conatins_nodes(scanner.cli('scan 12'), [node1]) 96 verify_scan_result_conatins_nodes(scanner.cli('scan 12'), [node1])
|
/openthread-latest/tools/otci/ |
D | README.md | 20 node1 = otci.connect_otbr_ssh("192.168.1.101") 25 # Start node1 to become Leader 26 node1.dataset_init_buffer() 27 node1.dataset_set_buffer(network_name='test', network_key='00112233445566778899aabbccddeeff', panid… 28 node1.dataset_commit_buffer('active') 30 node1.ifconfig_up() 31 node1.thread_start() 32 node1.wait(5) 33 assert node1.get_state() == "leader" 35 # Start Commissioner on node1 [all …]
|
/openthread-latest/tests/toranj/ |
D | README_CLI.md | 54 >>> node1 = cli.Node() 55 >>> node1 104 # `node2` is added to the allowlist of `node1` and allowlisting is enabled on `node1` 105 node1.allowlist_node(node2) 110 Script below shows how to create a 3-node network topology with `node1` and `node2` being routers, … 114 >>> node1 = cli.Node() 118 >>> node1.form('test') 119 >>> node1.get_state() 122 >>> node1.allowlist_node(node2) 123 >>> node1.allowlist_node(node3) [all …]
|
D | README_NCP.md | 44 >>> node1 = wpan.Node() 45 >>> node1 163 # `node1` joining `node2`'s network as a router 164 node1.join_node(node2, node_type=JOIN_TYPE_ROUTER) 170 # `node2` is added to the allowlist of `node1` and allowlisting is enabled on `node1` 171 node1.allowlist_node(node2) 176 Script below shows how to create a 3-node network topology with `node1` and `node2` being routers, … 180 >>> node1 = wpan.Node() 186 >>> node1.form("test-PAN") 189 >>> node1.allowlist_node(node2) [all …]
|
/openthread-latest/tools/otci/tests/ |
D | test_otci.py | 96 node1 = connector(executable, 1, simulator=sim) 97 self._test_otci_single_node(node1) 99 node1.factory_reset() 105 self._test_otci_example(node1, node2) 107 node1.factory_reset() 110 self._test_otci_multi_nodes(node1, node2, node3, node4) 510 def _test_otci_example(self, node1, node2): argument 511 node1.dataset_init_buffer() 512 node1.dataset_set_buffer(network_name='test', 516 node1.dataset_commit_buffer('active') [all …]
|
/openthread-latest/tests/scripts/thread-cert/ |
D | thread_cert.py | 641 def wait_route_established(self, node1: int, node2: int, timeout=10): 646 if self.nodes[node1].ping(node2_addr): 653 raise Exception("Route between node %d and %d is not established" % (node1, node2))
|