Lines Matching refs:wpan
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')
108 child_table = wpan.parse_list(parent2.get(wpan.WPAN_THREAD_CHILD_TABLE))
119 wpan.WPAN_CHILD_SUPERVISION_CHECK_TIMEOUT,
122 parent1.set(wpan.WPAN_CHILD_SUPERVISION_INTERVAL, str(PARENT_SUPERVISION_INTERVAL))
134 child_num_state_changes = len(wpan.parse_list(child.get("stat:ncp")))
138 verify(len(wpan.parse_list(child.get("stat:ncp"))) > child_num_state_changes)
142 wpan.verify_within(check_child_is_reattached, CHILD_SUPERVISION_CHECK_TIMEOUT / speedup + 5)
145 child_table = wpan.parse_list(parent1.get(wpan.WPAN_THREAD_CHILD_TABLE))
154 child_table = wpan.parse_list(parent2.get(wpan.WPAN_THREAD_CHILD_TABLE))
158 wpan.verify_within(check_child_is_removed_from_parent2_table, 1)
163 wpan.Node.finalize_all_nodes()