def METHOD_NAME(index, bd_addr_type=None, bd_addr=None):
    logging.debug(f"{METHOD_NAME.__name__}")
    data = address_to_ba(bd_addr_type, bd_addr)
    data += struct.pack('B', index)
    iutctl = get_iut()
    iutctl.btp_socket.send(*HAS['set_active_index'], data=data)
    has_command_rsp_succ()