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

The Connection Manager events are almost one-on-one mapping of the events received from the firmware in the previous releases of CSRmesh. One noticeable difference in the Connection Manager integration is that the connected devices are differentiated based on the device id unlike the earlier implementations where the application used to differentiate the connected devices based on the connection id.

连接管理器事件几乎是在先前版本的CSRmesh中从固件收到的事件的一对一映射。 连接管理器集成中的一个显着差异是,连接的设备根据设备标识进行区分,这与应用程序用于基于连接标识区分连接设备的早期实现不同。

2.3 Initialize Client and Server services
The CSRmesh applications mandatorily implement GAP, GATT and Mesh Control Service services in the server role. The applications also implement OTA and GAIA services in the server role for over the air update procedure on the CSR101x and the CSR102x platforms respectively. The GAIA Client Service is also initialized when the applications want to support the over the air update procedure over CSRmesh LOT relay.
Currently with the introduction of the Connection Manager all the µEnergy applications can share these server services which are stored in a common location. Hence the CSRmesh applications are now configured to use these services through the Connection Manager. To enable these server services, we need to enable the Connection Manager server role and initialize the server services, see
Table 2-8
CSRmesh应用程序强制执行服务器角色中的GAP,GATT和网格控制服务服务。 这些应用程序还在服务器角色中实施OTA和GAIA服务,分别用于CSR101x和CSR102x平台上的无线更新过程。 当应用程序想要通过CSRmesh LOT中继支持无线更新程序时,GAIA客户服务也会被初始化。

目前,随着Connection Manager的引入,所有μEnergy应用程序都可以共享这些存储在公共位置的服务器服务。 因此,CSRmesh应用程序现在配置为通过连接管理器使用这些服务。 要启用这些服务器服务,我们需要启用Connection Manager服务器角色并初始化服务器服务,请参阅表2-8

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

To specify the number of services that are included in the application to the Connection Manager, we need to set the number of services supported in the application with the MAX_SERVER_SERVICES macro defined in the user_config.h file.

要指定应用程序中包含的连接管理器的服务数量,我们需要使用user_config.h文件中定义的MAX_SERVER_SERVICES宏来设置应用程序中支持的服务数量。