
7.
Custom Serial Chat Service Specification
7.1
Service Declaration
The Custom Serial Chat profile consists of a custom serial chat service. Both the mobile app and the host (HOST
MCU + ATBTLC1000-MR/ZR) need to expose this service. The custom serial chat service is instantiated as a primary
service.
The UUID value assigned to custom serial chat service is:
fd5abba0-3935-11e5-85a6-0002a5d5c51b
.
7.2
Service Characteristic
The following characteristics are exposed in the Custom Serial Chat service. Only one instance of each characteristic
is permitted within this service.
Table 7-1. Custom Serial Chat Service Characteristics
Characteristic Name
Requiremen
t
Mandatory
Properties
Security Permission
Endpoint
M
Notify
Depend on BLE_PAIR_ENABLE
macro
Client characteristic configuration
descriptor
M
Read, Write
None
Note:
1.
The security permission depends on the
BLE_PAIR_ENABLE
macro, defined inside the
ble_manager.h
.
2.
If
BLE_PAIR_ENABLE
is set true, then the security permission of the Endpoint characteristic is readable with
authentication and writable with authentication.
3.
If
BLE_PAIR_ENABLE
is set false, then the security permission of Endpoint characteristic is none.
7.3
Endpoint
The Endpoint characteristic is used to transmit the chat data provided by the user on the terminal (device side) and
on the mobile chat screen (mobile side).
The UUID value assigned to Endpoint characteristic is
fd5abba1-3935-11e5-85a6-0002a5d5c51b
.
7.3.1
Characteristic Behavior
When the client characteristic configuration descriptor is configured for the notification by a remote device, the user
can send chat text message to the remote device.
Note:
The chat text is sent as a notification from the sender (mobile app or ATBTLC1000-MR/ZR based device).
Hence, the client characteristic configuration descriptor is always configured for notifications (in the Custom Serial
Chat service instance on the mobile application and host).
7.4
Characteristic Descriptors
7.4.1
Client Characteristic Configuration Descriptor
The client characteristic configuration descriptor is included in the Endpoint characteristic.
ATBTLC1000
Custom Serial Chat Service Specification
©
2019 Microchip Technology Inc.
User Guide
DS50002640B-page 75