Qualcomm CSRmesh v2.1 Application 移植指南简介(五)

本文介绍了蓝牙Mesh网络中的三种关键应用处理程序:广告处理程序、连接处理程序和核心网格处理器。广告处理程序负责通过蓝牙Mesh堆栈发送可连接的广告以连接到Android或iOS设备。连接处理程序管理连接事件并更新应用程序所需的连接参数。核心网格处理器负责配置承载设置并在关联过程中与核心网格堆栈交互。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2.4 Application handlers

2.4.1 Advertisement handler
The advertisement handler is responsible for sending the connectable advertisements through mesh core stack to connect as a bridge onto an android or an iOS device. The connectable advertisements once triggered would be sent continually at the advert interval set until a connection is established or a function is called to stop sending the connectable advertisements. These advertisements are sent through the CSRmesh core stack and are scheduled to be sent with the mesh non-connectable advertisements. The below advertisement handler APIs could be called from the application to start and stop the connectable advertisements

广告处理程序负责通过网状核心堆栈发送可连接的广告,以作为连接到Android或iOS设备上的桥梁。 一旦被触发,可连接的广告将以设定的广告间隔持续发送,直到建立连接或调用功能以停止发送可连接的广告。 这些广告通过CSRmesh核心堆栈发送,并计划与网格不可连接的广告一起发送。 可以从应用程序调用以下广告处理程序API来启动和停止可连接的广告


2.4.2 Connection handlerk 连接把手

The connection handler is responsible for initialization of the Connection Manager as well as handling the Connection Manager events. The connection handler also handles the application events on connection and disconnection and also informs the scheduler of the connection status with the connection parameter information. The connection handler is also responsible for updating the required connection parameters required for the application when a new connection is established. The application should define the required connection parameters in the app_conn_param.h file, see Table 2-10

连接处理程序负责连接管理器的初始化以及处理连接管理器事件。 连接处理程序还处理连接和断开连接的应用程序事件,并通知连接状态和连接参数信息给调度程序。 连接处理程序还负责在建立新连接时更新应用程序所需的连接参数。 应用程序应在app_conn_param.h文件中定义所需的连接参数,请参阅表2-10


2.4.3 Core mesh handler 核心网格处理器
The core mesh handler is responsible for interaction with the core mesh stack during the association processes as well as handling the core mesh events from the stack. The handler is also responsible for configuring and updating the bearer setting in the core CSRmesh stack. The core mesh handler provides APIs to initiate the association process and update the bearer settings as well as provides APIs to get the association state of the application as well the current
bearer settings of the application. The handler on invoking the
InitiateAssociation() function starts sending the mesh UUID advertisements periodically for the controller devices to associate with the node application.

The core mesh handler has to be initialized from the application by calling the MeshHandlerInit() function. The APIs provided by the core mesh handler are shown in Table 2-11.

核心网格处理器负责在关联过程中与核心网格堆栈交互以及处理来自堆栈的核心网格事件。 处理程序还负责配置和更新核心CSRmesh堆栈中的承载设置。 核心网格处理程序提供API来启动关联过程并更新承载设置,并提供API以获取应用程序的关联状态以及当前应用程序的承载设置。 调用InitiateAssociation()函数的处理程序开始定期发送网格UUID通告,以便控制器设备与节点应用程序相关联。核心网格处理程序必须通过调用MeshHandlerInit()函数从应用程序初始化。 核心网格处理器提供的API如表2-11所示。



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值