def hdl_wid_91(_: WIDParams): stack = get_stack() btp.gap_set_conn() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_91(desc): stack = get_stack() btp.gap_set_conn() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_49(_: WIDParams): stack = get_stack() btp.gap_set_limdiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_5(desc): stack = get_stack() btp.gap_set_nonconn() btp.gap_set_nondiscov() btp.gap_adv_ind_on(ad=stack.gap.ad, sd=stack.gap.sd) return True
def hdl_wid_154(desc): stack = get_stack() stack.gap.ad[AdType.advertising_interval] = "0030" btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_75(desc): stack = get_stack() btp.gap_set_gendiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_29(desc): stack = get_stack() stack.gap.ad[AdType.slave_conn_interval_range] = 'ffffffff' btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_56(desc): stack = get_stack() stack.gap.ad[AdType.uuid16_svc_solicit] = stack.gap.svc_data btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_27(desc): stack = get_stack() stack.gap.ad[AdType.tx_power] = '00' btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_26(desc): stack = get_stack() stack.gap.ad[AdType.manufacturer_data] = stack.gap.manufacturer_data btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_156(desc): stack = get_stack() stack.gap.ad[AdType.le_role] = '02' btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_51(_: WIDParams): stack = get_stack() btp.gap_set_nonconn() btp.gap_set_gendiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_153(desc): stack = get_stack() stack.gap.ad[AdType.random_target_addr] = bdaddr_reverse(btp.pts_addr_get()) btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_149(desc): stack = get_stack() if stack.gap.appearance: stack.gap.ad[AdType.gap_appearance] = stack.gap.appearance btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_25(desc): stack = get_stack() if stack.gap.flags: stack.gap.ad[AdType.flags] = stack.gap.flags btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_152(_: WIDParams): stack = get_stack() stack.gap.ad[AdType.public_target_addr] = bdaddr_reverse( btp.pts_addr_get()) btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_35(desc): stack = get_stack() if stack.gap.svcs: stack.gap.ad[AdType.uuid16_some] = stack.gap.svcs btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_57(desc): stack = get_stack() if stack.gap.svc_data: stack.gap.ad[AdType.uuid16_svc_data] = stack.gap.svc_data btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_49(desc): stack = get_stack() btp.gap_set_nonconn() btp.gap_set_limdiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_173(desc): stack = get_stack() # Prepare space for URI stack.gap.ad.clear() stack.gap.ad[AdType.uri] = stack.gap.uri btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_15(desc): """ Implements: TSC_MMI_tester_enable_connection :param desc: Action: Place the IUT in connectable mode. :return: """ btp.gap_set_conn() btp.gap_set_gendiscov() btp.gap_adv_ind_on() return True
def hdl_wid_15(_: WIDParams): """ Implements: TSC_MMI_tester_enable_connection description: Action: Place the IUT in connectable mode. """ stack = btp.get_stack() btp.gap_set_conn() btp.gap_set_gendiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_52(desc): btp.gap_adv_off() stack = get_stack() btp.gap_set_gendiscov() btp.gap_set_conn() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_173(desc): stack = get_stack() # Prepare space for URI stack.gap.sd.clear() stack.gap.sd[AdType.uri] = UriScheme.https + \ hexlify('github.com/intel/auto-pts') btp.gap_adv_ind_on(sd=stack.gap.sd) return True
def hdl_wid_155(desc): stack = get_stack() device_addr = '{:02d}'.format(stack.gap.iut_bd_addr.data["type"]) + \ bdaddr_reverse(stack.gap.iut_bd_addr.data["address"]) stack.gap.ad[AdType.le_bt_device_addr] = device_addr btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_47(desc): stack = get_stack() btp.gap_set_nonconn() # Name cannot be used for AD Data in BlueZ because BlueZ alwasy use Name # for SD Data. So, override the AD data here. stack.gap.ad = {AdType.manufacturer_data: 'FFFFABCD'} btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_56(desc): """ Implements: TSC_MMI_tester_enable_connection :param desc: Action: Place the IUT in connectable mode. :return: """ stack = btp.get_stack() btp.gap_set_conn() btp.gap_set_gendiscov() btp.gap_adv_ind_on(ad=stack.gap.ad) return True
def hdl_wid_72(desc): stack = get_stack() ad = [] btp.gap_set_nondiscov() if stack.gap.name: ad.append((AdType.name_short, hexlify(stack.gap.name))) btp.gap_adv_ind_on(ad=ad) return True
def test_SMP_Server_SC_Passkey_Entry(self, iut, valid): btp.gap_set_io_cap(iut, IOCap.keyboard_display) btp.gap_set_conn(iut) btp.gap_set_gendiscov(iut) btp.gap_adv_ind_on(iut) future = btp.gap_passkey_entry_req_ev(iut) try: wait_futures([future], timeout=EV_TIMEOUT) btp.gap_passkey_entry_rsp(iut, self.config.tester_addr, self.config.tester_passkey) except (TimeoutError, BTPErrorInvalidStatus) as e: if valid: raise e
def hdl_wid_91(desc): stack = get_stack() ad = [] sd = [] btp.gap_set_conn() if stack.gap.name: ad.append((AdType.name_short, hexlify(stack.gap.name))) if stack.gap.manufacturer_data: sd.append((AdType.manufacturer_data, stack.gap.manufacturer_data)) btp.gap_adv_ind_on(ad=ad, sd=sd) return True