Searched refs:wpan (Results 1 – 25 of 95) sorted by relevance
1234
/openthread-latest/tests/toranj/ncp/ |
D | test-001-get-set.py | 29 from wpan import verify 30 import wpan 42 node = wpan.Node() 47 wpan.Node.init_all_nodes() 52 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_OFFLINE) 57 node.set(wpan.WPAN_NAME, 'test-network') 58 verify(node.get(wpan.WPAN_NAME) == '"test-network"') 60 node.set(wpan.WPAN_NAME, 'a') 61 verify(node.get(wpan.WPAN_NAME) == '"a"') 63 node.set(wpan.WPAN_PANID, '0xABBA') [all …]
|
D | test-100-mcu-power-state.py | 30 import wpan 31 from wpan import verify 43 node = wpan.Node() 48 wpan.Node.init_all_nodes() 54 verify(node.get(wpan.WPAN_NCP_MCU_POWER_STATE) == wpan.MCU_POWER_STATE_ON) 63 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_OFFLINE) 67 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_DEEP_SLEEP) 71 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_COMMISSIONED) 75 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED) 79 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATING) [all …]
|
D | test-003-join.py | 29 from wpan import verify 30 import wpan 43 wpan.Node.set_time_speedup_factor(speedup) 45 node1 = wpan.Node() 46 node2 = wpan.Node() 51 wpan.Node.init_all_nodes() 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) 63 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED) [all …]
|
D | test-701-multi-radio-probe.py | 30 import wpan 31 from wpan import verify 51 wpan.Node.set_time_speedup_factor(speedup) 53 r1 = wpan.Node(wpan.NODE_15_4_TREL) 54 r2 = wpan.Node(wpan.NODE_15_4_TREL) 55 c2 = wpan.Node(wpan.NODE_15_4) 60 wpan.Node.init_all_nodes() 74 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 75 c2.join_node(r2, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 84 r1_ext_address = r1.get(wpan.WPAN_EXT_ADDRESS)[1:-1] [all …]
|
D | test-702-multi-radio-discovery-by-rx.py | 30 import wpan 31 from wpan import verify 51 wpan.Node.set_time_speedup_factor(speedup) 53 r1 = wpan.Node(wpan.NODE_15_4_TREL) 54 r2 = wpan.Node(wpan.NODE_15_4_TREL) 55 c2 = wpan.Node(wpan.NODE_15_4) 60 wpan.Node.init_all_nodes() 74 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) 75 c2.join_node(r2, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 84 r1_ext_address = r1.get(wpan.WPAN_EXT_ADDRESS)[1:-1] [all …]
|
D | test-002-form.py | 29 from wpan import verify 30 import wpan 43 wpan.Node.set_time_speedup_factor(speedup) 45 node = wpan.Node() 50 wpan.Node.init_all_nodes() 60 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_OFFLINE) 61 verify(node.get(wpan.WPAN_NAME) == DEFAULT_NAME) 62 verify(node.get(wpan.WPAN_PANID) == DEFAULT_PANID) 63 verify(node.get(wpan.WPAN_XPANID) == DEFAULT_XPANID) 68 verify(node.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED) [all …]
|
D | test-700-multi-radio-join.py | 30 import wpan 31 from wpan import verify 54 wpan.Node.set_time_speedup_factor(speedup) 56 parent = wpan.Node(wpan.NODE_15_4_TREL) 57 c1 = wpan.Node(wpan.NODE_15_4) 58 c2 = wpan.Node(wpan.NODE_TREL) 59 c3 = wpan.Node(wpan.NODE_15_4_TREL) 64 wpan.Node.init_all_nodes() 73 parent_radios = wpan.parse_list(parent.get(wpan.WPAN_OT_SUPPORTED_RADIO_LINKS)) 75 len(parent_radios) == 2 and (wpan.RADIO_LINK_IEEE_802_15_4 in parent_radios) and [all …]
|
D | test-021-address-cache-table.py | 29 import wpan 30 from wpan import verify 51 wpan.Node.set_time_speedup_factor(speedup) 53 r1 = wpan.Node() 54 r2 = wpan.Node() 55 r3 = wpan.Node() 56 c1 = wpan.Node() 57 c2 = wpan.Node() 58 c3 = wpan.Node() 63 wpan.Node.init_all_nodes() [all …]
|
D | test-027-child-mode-change.py | 29 import wpan 30 from wpan import verify 49 child_table = wpan.parse_child_table_result(parent.get(wpan.WPAN_THREAD_CHILD_TABLE)) 52 ext_addr = child.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 57 …raise wpan.VerifyError('Failed to find a child entry for extended address {} in table'.format(ext_… 60 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16)) 61 mode = int(child.get(wpan.WPAN_THREAD_DEVICE_MODE), 0) 62 verify(entry.is_rx_on_when_idle() == (mode & wpan.THREAD_MODE_FLAG_RX_ON_WHEN_IDLE != 0)) 63 verify(entry.is_ftd() == (mode & wpan.THREAD_MODE_FLAG_FULL_THREAD_DEV != 0)) 64 verify(entry.is_full_net_data() == (mode & wpan.THREAD_MODE_FLAG_FULL_NETWORK_DATA != 0)) [all …]
|
D | test-703-multi-radio-mesh-header-msg.py | 30 import wpan 31 from wpan import verify 53 wpan.Node.set_time_speedup_factor(speedup) 55 r1 = wpan.Node(wpan.NODE_TREL) 56 r2 = wpan.Node(wpan.NODE_15_4_TREL) 57 r3 = wpan.Node(wpan.NODE_15_4) 58 c2 = wpan.Node(wpan.NODE_15_4) 59 c3 = wpan.Node(wpan.NODE_15_4) 64 wpan.Node.init_all_nodes() 84 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) [all …]
|
D | test-042-meshcop-joiner-discerner.py | 29 import wpan 30 from wpan import verify 44 wpan.Node.set_time_speedup_factor(speedup) 46 commr = wpan.Node() 47 joiner1 = wpan.Node() 48 joiner2 = wpan.Node() 49 joiner3 = wpan.Node() 54 wpan.Node.init_all_nodes() 76 EUI64_3 = joiner3.get(wpan.WPAN_HW_ADDRESS)[1:-1] # Remove the "[]" 82 verify(int(joiner1.get(wpan.WPAN_THREAD_JOINER_DISCERNER_BIT_LENGTH), 0) == 0) [all …]
|
D | test-038-clear-address-cache-for-sed.py | 29 import wpan 30 from wpan import verify 47 wpan.Node.set_time_speedup_factor(speedup) 49 r1 = wpan.Node() 50 r2 = wpan.Node() 51 r3 = wpan.Node() 52 c = wpan.Node() 53 c3 = wpan.Node() 58 wpan.Node.init_all_nodes() 80 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) [all …]
|
D | test-020-router-table.py | 29 import wpan 30 from wpan import verify 47 wpan.Node.set_time_speedup_factor(speedup) 49 r1 = wpan.Node() 50 r2 = wpan.Node() 51 r3 = wpan.Node() 52 r4 = wpan.Node() 53 c4 = wpan.Node() 58 wpan.Node.init_all_nodes() 76 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) [all …]
|
D | test-600-channel-manager-properties.py | 30 import wpan 31 from wpan import verify 44 node = wpan.Node() 49 wpan.Node.init_all_nodes() 61 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_NEW_CHANNEL), 0) == 0) 62 verify(node.get(wpan.WPAN_CHANNEL_MANAGER_AUTO_SELECT_ENABLED) == 'false') 63 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK), 0) == 0) 64 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_FAVORED_CHANNEL_MASK), 0) == 0) 68 node.set(wpan.WPAN_CHANNEL_MANAGER_DELAY, '180') 69 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_DELAY), 0) == 180) [all …]
|
D | test-028-router-leader-reset-recovery.py | 29 import wpan 30 from wpan import verify 48 neighbor_table = wpan.parse_neighbor_table_result(node.get(wpan.WPAN_THREAD_NEIGHBOR_TABLE)) 50 ext_addr = neighbor.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 55 …raise wpan.VerifyError('Failed to find a neighbor entry for extended address {} in table'.format(e… 62 wpan.Node.set_time_speedup_factor(speedup) 64 r1 = wpan.Node() 65 r2 = wpan.Node() 66 c2 = wpan.Node() 72 wpan.Node.init_all_nodes() [all …]
|
D | test-601-channel-manager-channel-change.py | 30 import wpan 31 from wpan import verify 48 while not all([(new_channel == int(node.get(wpan.WPAN_CHANNEL), 0)) for node in nodes]): 60 wpan.Node.set_time_speedup_factor(speedup) 62 r1 = wpan.Node() 63 r2 = wpan.Node() 64 r3 = wpan.Node() 65 sc1 = wpan.Node() 66 ec1 = wpan.Node() 67 sc2 = wpan.Node() [all …]
|
D | test-024-partition-merge.py | 30 import wpan 31 from wpan import verify 77 prefixes = wpan.parse_on_mesh_prefix_result(node.get(wpan.WPAN_THREAD_ON_MESH_PREFIXES)) 91 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 98 wpan.Node.set_time_speedup_factor(speedup) 100 r1 = wpan.Node() 101 r2 = wpan.Node() 102 c1 = wpan.Node() 103 c2 = wpan.Node() 108 wpan.Node.init_all_nodes() [all …]
|
D | test-602-channel-manager-channel-select.py | 30 import wpan 31 from wpan import verify 48 while not all([(new_channel == int(node.get(wpan.WPAN_CHANNEL), 0)) for node in nodes]): 60 wpan.Node.set_time_speedup_factor(10000) 62 node = wpan.Node() 67 wpan.Node.init_all_nodes() 82 node.set(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK, str(all_channels_mask)) 83 verify(int(node.get(wpan.WPAN_CHANNEL_MANAGER_SUPPORTED_CHANNEL_MASK), 0) == all_channels_mask) 96 verify(int(node.get(wpan.WPAN_CHANNEL_MONITOR_SAMPLE_COUNT), 0) > EXPECTED_SAMEPLE_COUNT) 99 wpan.verify_within(check_sample_count, WAIT_TIME) [all …]
|
D | test-040-network-data-stable-full.py | 29 import wpan 30 from wpan import verify 80 prefixes = wpan.parse_on_mesh_prefix_result(node.get(wpan.WPAN_THREAD_ON_MESH_PREFIXES)) 94 raise wpan.VerifyError("Did not find prefix {} on node {}".format(prefix, node)) 103 prefixes = wpan.parse_on_mesh_prefix_result(node.get(wpan.WPAN_THREAD_ON_MESH_PREFIXES)) 106 …raise wpan.VerifyError("Did find prefix {} with rloc {} on node {}".format(prefix, hex(rloc16), no… 113 wpan.Node.set_time_speedup_factor(speedup) 115 leader = wpan.Node() 116 c1 = wpan.Node() 117 c2 = wpan.Node() [all …]
|
D | test-039-address-cache-table-snoop.py | 30 import wpan 31 from wpan import verify 48 wpan.Node.set_time_speedup_factor(speedup) 50 r1 = wpan.Node() 51 r2 = wpan.Node() 52 r3 = wpan.Node() 54 c2 = wpan.Node() 55 c3 = wpan.Node() 60 wpan.Node.init_all_nodes() 84 r2.join_node(r1, wpan.JOIN_TYPE_ROUTER) [all …]
|
D | test-019-inform-previous-parent.py | 29 import wpan 30 from wpan import verify 68 wpan.Node.set_time_speedup_factor(speedup) 70 parent1 = wpan.Node() 71 parent2 = wpan.Node() 72 child = wpan.Node() 77 wpan.Node.init_all_nodes() 96 parent2.join_node(parent1, wpan.JOIN_TYPE_ROUTER) 97 child.join_node(parent2, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 98 child.set(wpan.WPAN_POLL_INTERVAL, '300') [all …]
|
D | test-032-child-attach-with-multiple-ip-addresses.py | 30 import wpan 31 from wpan import verify 60 all_addrs = wpan.parse_list(node.get(wpan.WPAN_IP6_ALL_ADDRESSES)) 68 wpan.Node.set_time_speedup_factor(speedup) 70 leader = wpan.Node() 71 parent = wpan.Node() 72 child = wpan.Node() 77 wpan.Node.init_all_nodes() 86 parent.join_node(leader, wpan.JOIN_TYPE_ROUTER) 91 child.join_node(parent, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) [all …]
|
D | test-704-multi-radio-scan.py | 29 from wpan import verify 30 import wpan 44 wpan.Node.set_time_speedup_factor(speedup) 46 n1 = wpan.Node(wpan.NODE_15_4) 47 n2 = wpan.Node(wpan.NODE_TREL) 48 n3 = wpan.Node(wpan.NODE_15_4_TREL) 49 s1 = wpan.Node(wpan.NODE_15_4) 50 s2 = wpan.Node(wpan.NODE_TREL) 51 s3 = wpan.Node(wpan.NODE_15_4_TREL) 56 wpan.Node.init_all_nodes() [all …]
|
D | test-705-multi-radio-discover-scan.py | 29 from wpan import verify 30 import wpan 44 wpan.Node.set_time_speedup_factor(speedup) 46 n1 = wpan.Node(wpan.NODE_15_4) 47 n2 = wpan.Node(wpan.NODE_TREL) 48 n3 = wpan.Node(wpan.NODE_15_4_TREL) 49 s1 = wpan.Node(wpan.NODE_15_4) 50 s2 = wpan.Node(wpan.NODE_TREL) 51 s3 = wpan.Node(wpan.NODE_15_4_TREL) 56 wpan.Node.init_all_nodes() [all …]
|
D | test-029-data-poll-interval.py | 30 import wpan 31 from wpan import verify 44 wpan.Node.set_time_speedup_factor(speedup) 46 parent = wpan.Node() 47 child = wpan.Node() 52 wpan.Node.init_all_nodes() 60 child.join_node(parent, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 67 child_timeout = int(child.get(wpan.WPAN_THREAD_CHILD_TIMEOUT), 0) * 1000 68 default_poll_interval = int(child.get(wpan.WPAN_POLL_INTERVAL), 0) 77 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0) [all …]
|
1234