PebbleOS v4.47.0-1161-g94e3d98da
Loading...
Searching...
No Matches
Pebble Pairing Service (PPS)

GATT service through which the phone app checks the connection and triggers pairing. More...

Macros

#define PBL_BT_PPS_UUID_16BIT   0xFED9U
 Bluetooth SIG registered 16-bit UUID of the service.
 
#define PBL_BT_PPS_CONNECTION_STATUS_UUID_32BIT   1U
 32-bit UUID of the Connectivity Status characteristic, see PBL_BT_PPS_UUID128_INIT().
 
#define PBL_BT_PPS_TRIGGER_PAIRING_UUID_32BIT   2U
 32-bit UUID of the Trigger Pairing characteristic, see PBL_BT_PPS_UUID128_INIT().
 
#define PBL_BT_PPS_UUID128_INIT(u)
 Expand a 32-bit characteristic UUID with the base UUID of the service, XXXXXXXX-328E-0FBB-C642-1AA6699BDADA.
 
#define PBL_BT_PPS_CONNECTIVITY_STATUS_SIZE   4U
 Size of the Connectivity Status value: the flags below, two reserved bytes, a zero.
 

Flags of the Connectivity Status value, in its first byte

With respect to the device reading it.

#define PBL_BT_PPS_STATUS_CONNECTED   PBL_BIT(0)
 The reading device is connected (always set).
 
#define PBL_BT_PPS_STATUS_BONDED   PBL_BIT(1)
 The reading device is bonded.
 
#define PBL_BT_PPS_STATUS_ENCRYPTED   PBL_BIT(2)
 The link is encrypted.
 
#define PBL_BT_PPS_STATUS_HAS_BONDED_GATEWAY   PBL_BIT(3)
 The watch has a bonding.
 
#define PBL_BT_PPS_STATUS_NO_SECURITY_REQUEST_SUPPORTED   PBL_BIT(4)
 The watch honours PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST (always set).
 

Flags of the byte written to the Trigger Pairing characteristic

The other bits are ignored.

#define PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST   PBL_BIT(1)
 Do not send a security request.
 
#define PBL_BT_PPS_TRIGGER_FORCE_SECURITY_REQUEST   PBL_BIT(2)
 Send a security request even if the link is encrypted.
 

Detailed Description

GATT service through which the phone app checks the connection and triggers pairing.

The service (PBL_BT_PPS_UUID_16BIT) has a Connectivity Status characteristic (read, notify) and a Trigger Pairing characteristic (read, write). Reading the latter, or writing it without PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST, makes the watch ask for security if the link is not encrypted. The central is notified of the status when its link gets encrypted, subscribed or not.

Macro Definition Documentation

◆ PBL_BT_PPS_CONNECTION_STATUS_UUID_32BIT

#define PBL_BT_PPS_CONNECTION_STATUS_UUID_32BIT   1U

32-bit UUID of the Connectivity Status characteristic, see PBL_BT_PPS_UUID128_INIT().

◆ PBL_BT_PPS_CONNECTIVITY_STATUS_SIZE

#define PBL_BT_PPS_CONNECTIVITY_STATUS_SIZE   4U

Size of the Connectivity Status value: the flags below, two reserved bytes, a zero.

◆ PBL_BT_PPS_STATUS_BONDED

#define PBL_BT_PPS_STATUS_BONDED   PBL_BIT(1)

The reading device is bonded.

◆ PBL_BT_PPS_STATUS_CONNECTED

#define PBL_BT_PPS_STATUS_CONNECTED   PBL_BIT(0)

The reading device is connected (always set).

◆ PBL_BT_PPS_STATUS_ENCRYPTED

#define PBL_BT_PPS_STATUS_ENCRYPTED   PBL_BIT(2)

The link is encrypted.

◆ PBL_BT_PPS_STATUS_HAS_BONDED_GATEWAY

#define PBL_BT_PPS_STATUS_HAS_BONDED_GATEWAY   PBL_BIT(3)

The watch has a bonding.

◆ PBL_BT_PPS_STATUS_NO_SECURITY_REQUEST_SUPPORTED

#define PBL_BT_PPS_STATUS_NO_SECURITY_REQUEST_SUPPORTED   PBL_BIT(4)

The watch honours PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST (always set).

◆ PBL_BT_PPS_TRIGGER_FORCE_SECURITY_REQUEST

#define PBL_BT_PPS_TRIGGER_FORCE_SECURITY_REQUEST   PBL_BIT(2)

Send a security request even if the link is encrypted.

◆ PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST

#define PBL_BT_PPS_TRIGGER_NO_SECURITY_REQUEST   PBL_BIT(1)

Do not send a security request.

◆ PBL_BT_PPS_TRIGGER_PAIRING_UUID_32BIT

#define PBL_BT_PPS_TRIGGER_PAIRING_UUID_32BIT   2U

32-bit UUID of the Trigger Pairing characteristic, see PBL_BT_PPS_UUID128_INIT().

◆ PBL_BT_PPS_UUID128_INIT

#define PBL_BT_PPS_UUID128_INIT (   u)
Value:
BLE_UUID128_INIT(0xDA, 0xDA, 0x9B, 0x69, 0xA6, 0x1A, 0x42, 0xC6, 0xBB, 0x0F, 0x8E, 0x32, \
(u) & 0xff, ((u) >> 8) & 0xff, ((u) >> 16) & 0xff, ((u) >> 24) & 0xff)

Expand a 32-bit characteristic UUID with the base UUID of the service, XXXXXXXX-328E-0FBB-C642-1AA6699BDADA.

Expands to the initializer of a ble_uuid128_t.

Parameters
uThe 32-bit UUID value.

◆ PBL_BT_PPS_UUID_16BIT

#define PBL_BT_PPS_UUID_16BIT   0xFED9U

Bluetooth SIG registered 16-bit UUID of the service.