def hdl_wid_57(desc): stack = get_stack() l2cap = stack.l2cap channel = l2cap._chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, '00' * (channel.peer_mps * 4)) return True
def hdl_wid_55(desc): """ :param desc: Upper Tester command IUT to send LE data packet to the PTS with larger or equal to the TSPX_tester_mps and smaller or equal to the TSPX_tester_mtu values. :return: """ btp.l2cap_send_data(0, "FF", 80) return True
def hdl_wid_258(desc): stack = get_stack() l2cap = stack.l2cap channel = l2cap.chan_lookup_id(0) if not channel: return False for _ in range(2): btp.l2cap_send_data(0, '00' * channel.peer_mtu) return True
def hdl_wid_100(desc): l2cap = get_stack().l2cap for channel in l2cap.channels: try: while True: btp.l2cap_send_data(channel.id, '00') except BTPError: pass except socket.timeout: pass return True
def hdl_wid_57(desc): stack = get_stack() l2cap = stack.l2cap channel = l2cap.chan_lookup_id(0) if not channel: return False for i in range(4): btp.l2cap_send_data(0, '00') time.sleep(2) return True
def hdl_wid_43(desc): """ Implements: TSC_MMI_upper_tester_send_le_data_packet_large :param desc: Upper Tester command IUT to send multiple LE frame data packet to the PTS. :return: """ stack = get_stack() btp.l2cap_send_data(0, "FF", 40) return True
def hdl_wid_262(_: WIDParams): stack = get_stack() l2cap = stack.l2cap channel = l2cap.chan_lookup_id(0) if not channel: return False for _ in range(5): btp.l2cap_send_data(0, '00' * channel.peer_mtu) time.sleep(2) return True
def hdl_wid_57(_: WIDParams): stack = get_stack() l2cap = stack.l2cap l2cap.wait_for_connection(0) channel = l2cap.chan_lookup_id(0) if not channel: return False for i in range(4): btp.l2cap_send_data(0, '00') time.sleep(2) return True
def hdl_wid_38(desc): """ Implements: TSC_MMI_upper_tester_send_LE_data_packet1 :param desc: Upper Tester command IUT to send a nonsegmented LE data packet to the PTS with any values. :return: """ stack = get_stack() channel = stack.l2cap.chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, 'FF') return True
def hdl_wid_38(_: WIDParams): """ Implements: TSC_MMI_upper_tester_send_LE_data_packet1 description: Upper Tester command IUT to send a nonsegmented LE data packet to the PTS with any values. """ stack = get_stack() stack.l2cap.wait_for_connection(0) channel = stack.l2cap.chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, 'FF') return True
def hdl_wid_55(_: WIDParams): """ description: Upper Tester command IUT to send LE data packet to the PTS with larger or equal to the TSPX_tester_mps and smaller or equal to the TSPX_tester_mtu values. """ stack = get_stack() l2cap = stack.l2cap channel = l2cap.chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, '00' * channel.peer_mps) return True
def hdl_wid_43(desc): """ Implements: TSC_MMI_upper_tester_send_le_data_packet_large :param desc: Upper Tester command IUT to send multiple LE frame data packet to the PTS. :return: """ stack = get_stack() l2cap = stack.l2cap channel = l2cap.chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, 'FF' * channel.peer_mps) return True
def hdl_wid_43(_: WIDParams): """ Implements: TSC_MMI_upper_tester_send_le_data_packet_large description: Upper Tester command IUT to send multiple LE frame data packet to the PTS. """ stack = get_stack() l2cap = stack.l2cap l2cap.wait_for_connection(0) channel = l2cap.chan_lookup_id(0) if not channel: return False btp.l2cap_send_data(0, 'FF' * channel.peer_mps) return True
def hdl_wid_57(desc): btp.l2cap_send_data(0, "FF", 80) return True