def hdl_wid_221(desc): """ Implements: IUT_READY_FOR_UPDATE_IN_PROGRESS_SECURE_NETWORK_BEACON :param desc: The Lower Tester will advertise a new Secure Network beacon with the IV Update Flag set to 1, IV Index incremented by 1 (new IV Index m = n + 1). Click OK when IUT is ready :return: """ stack = get_stack() if not stack.mesh.is_iv_test_mode_enabled.data: btp.mesh_iv_update_test_mode(True) return True
def hdl_wid_202(desc): """ Implements: IUT_GENERATE_UPDATE_IN_PROGRESS_SECURE_NETWORK_BEACON :param desc: Order IUT to enter the 'IV Update in Progress' state and set the 'IV Update in progress' flag in the secure network beacon. Click OK when ready. :return: """ stack = get_stack() btp.mesh_iv_update_test_mode(True) btp.mesh_iv_update_toggle() return True
def hdl_wid_216(desc): """ Implements: IUT_GENERATE_SECURE_NETWORK_BEACON_LESS96 :param desc: Please make sure IUT has performed an IV Update procedure less than 96 hours ago. PTS will verify IUT does not perform another update. Order IUT to generate non-connectable Secure Network beacons (Mesh Beacon with Beacon type = 0x01). :return: """ btp.mesh_iv_update_test_mode(False) return True
def hdl_wid_205(desc): """ Implements: IUT_SEND_SEGMENTATION_MESH_MESSAGE_IN_PROGRESS_STATE :param desc: Order IUT to prepare large size of composition data that can be sent as fragmented packets to the PTS. During IV Update in Progress state PTS will hold acknowledgment response and beacon IV update in progress flag on. Click OK when it is ready. :return: """ btp.mesh_iv_update_test_mode(True) btp.mesh_iv_update_toggle() return True
def hdl_wid_217(desc): """ Implements: IUT_GENERATE_SECURE_NETWORK_BEACON_MORE96_INDEX_42 :param desc: Please make sure IUT has been in Normal Operation state for more than 96 hours. PTS will verify IUT can ignore Secure Network beacons with an IV Index greater than last known IV Index plus 42. Order IUT to generate Secure Network beacons. :return: """ stack = get_stack() if not stack.mesh.is_iv_test_mode_enabled.data: btp.mesh_iv_update_test_mode(True) return True