天天看點

NORDIC Thingy:52 藍牙 BLE 服務 SoC 程式調用流程分析之一, Thingy Configuration Service

Nordic Thingy 52 BLE Services

* Thingy configuration service 

* Environment service 

* User interface service 

* Motion service 

* Sound service 

* Battery service 

* DFU service

* Thingy configuration service *

The Thingy configuration service is responsible for handling all general configuration parameters that are not related to a particular module.

"Thingy configuration service"處理所有的通用參數配置,不關聯特定的子產品.

** 說明: UUID: 0103 功能沒有啟用;

NORDIC Thingy:52 藍牙 BLE 服務 SoC 程式調用流程分析之一, Thingy Configuration Service

服務 UUID 定義

檔案: ble_tcs.h

#define BLE_UUID_TCS_SERVICE 0x0100                      /**< The UUID of the Thingy Configuration Service. */
           

檔案: ble_tcs.c

#define BLE_UUID_TCS_DEVICE_NAME_CHAR   0x0101                      /**< The UUID of the device name Characteristic. */
#define BLE_UUID_TCS_ADV_PARAMS_CHAR    0x0102                      /**< The UUID of the advertising parameters Characteristic. */
#define BLE_UUID_TCS_APPEARANCE_CHAR    0x0103                      /**< The UUID of the appearance Characteristic. */
#define BLE_UUID_TCS_CONN_PARAM_CHAR    0x0104                      /**< The UUID of the connection parameters Characteristic. */
#define BLE_UUID_TCS_BEACON_PARAM_CHAR  0x0105                      /**< The UUID of the beacon Characteristic. */
#define BLE_UUID_TCS_CLOUD_PARAM_CHAR   0x0106                      /**< The UUID of the cloud token Characteristic. */
#define BLE_UUID_TCS_FW_VERSION_CHAR    0x0107                      /**< The UUID of the FW version Characteristic. */
#define BLE_UUID_TCS_MTU_CHAR           0x0108                      /**< The UUID of the MTU Characteristic. */

#define TCS_BASE_UUID                  {{0x42, 0x00, 0x74, 0xA9, 0xFF, 0x52, 0x10, 0x9B, 0x33, 0x49, 0x35, 0x9B, 0x00, 0x00, 0x68, 0xEF}} /**< Used vendor specific UUID. */
           

程式功能調用流程

NORDIC Thingy:52 藍牙 BLE 服務 SoC 程式調用流程分析之一, Thingy Configuration Service
NORDIC Thingy:52 藍牙 BLE 服務 SoC 程式調用流程分析之一, Thingy Configuration Service

繼續閱讀