四个基本服务:
#define GAP_SERVICE_UUID 0x1800 // Generic Access Profile -------- 必需
#define GATT_SERVICE_UUID 0x1801 // Generic Attribute Profile -------- 必需
#define DEVINFO_SERV_UUID 0x180A // Device Information -------- 必需
#define SIMPLEPROFILE_SERV_UUID 0xFFF0 -------- 可选用户服务
1、Generic Access(PRIMARY SERVICE)
Device Name
UUID:0x2A00
Properties:Read
Value:DidaSmartIot
Appearance(设置不同的图标,可以在手机APP上显示出来)
UUID:0x2A01
Properties: Read
Value:[0] Unknow
Peripheral Perferred Connection Paramters
UUID:0x2A04
Properties:Read
Value:Connection Interval:100ms - 200ms
Slave Latency:0
Supervision Timeout Multiplier:1000 // Supervision timeout value (units of 10ms, 1000=10s) if automatic parameter update request is enabled
2、 Generic Attribute(PRIMARY SERVICE)
This service is empty
3、Device Information (PRIMARY SERVICE)
System ID
UUID:0x2A23
Properties:Read
Value:E3-74-CD-00-00-89-71-24
Model Number String
UUID:0x2A24
Properties:Read
Value:Model Number
Serial Number String
UUID:0x2A25
Properties:Read
Value:Serial Number
Firmware Revision String
UUID:0x2A26
Properties:Read
Value:Firmware Revision
Hardware Revision String
UUID:0x2A27
Properties:Read
Value:Hardware Revision
Software Revision String
UUID:0x2A28
Properties:Read
Value:Software Revision
Manufacturer Name String
UUID:0x2A29
Properties:Read
Value:Manufacture Name
IEEE 11073-20601 Regulatory Certification Data List
UUID:0x2A2A
Properties:Read
Value:FE-00-65-78-70-65-72-69-6D-65-6E-74-61-6C
PnP ID
UUID:0x2A50
Properties:Read
Value:Bluetooth SIG Company: Texas Instructments Inc.<0x000D>
Product Id:0
Product Version:272
4、Unknown Service
UUID:0000fee7-0000-1000-8000-00805f9b34fb
Unknown Characteristic
UUID:0000fff1-0000-1000-8000-00805f9b34fb
Properties:Read,Write
Value:1
Descriptors:(Characteristic User Description)
UUID:0x2901
Value:Characteristic 1
Unknown Characteristic
UUID:0000fff4-0000-1000-8000-00805f9b34fb
Properties:Notify
Descriptors
Client Characteristic Configuration
UUID:0x2902
Value:Notification and indication disabled
Characteristic User Desciption
UUID:0x2901
Value:Characteristic
PDU 协议数据单元
MTU 最大传输单元