Hardware Reference
In-Depth Information
On the NP (iOS central device), the Apple Notification Center Service UUID is
7905F431-B5CE-4E99-A40F-4B1E122D00D0 , with the following associated characteris‐
tics/UUIDs:
Notification Source
UUID 9FBF120D-6301-42D9-8C58-25E699A21DBD (notifiable)
Control Point
UUID 69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9 (writeable with response)
Data Source
UUID 22EAC6E9-24D6-4BB5-BE44-B36ACE7C7BFB (notifiable)
The Notification Source is a mandatory characteristic, while the others are optional.
Normally, the accessory (the NC) will subscribe to the Service Changed characteristic
of the GATT service to receive notifications of changes in the ANCS automatically from
the Notification Source. Upon receiving notification of a new GATT notifications from
ANCS, the NC can request more information. To find out more, the NC sends (writes)
a message to the Control Point, including the notification ID of interest and a list of
associated attributes the NC wishes to receive. Those are then provided in response
from the Data Source.
The NC (peripheral) firmware must perform the following steps:
1. Start advertising (typically, once per second), including the ANCS UUID in the
advertising packet to alert any NP in range.
2. When the NP (iOS device) connects, pair (if not already bonded) or enable en‐
cryption with the NC device.
3. Enumerate the iOS ANCS services.
4. Set the client for the notification source.
5. On notification, write a message to ANCS Control Point if more information is
desired.
6. Receive response from the Data Source (containing notification ID and data).
Pairing of the NC (given local name BOB in this example) with the iOS device is
straightforward. After the NC (remote peripheral) starts advertising, you must open
Settings→Bluetooth on the NP (central) iPhone to trigger a scan for BLE devices and
then manually pair the device (as shown in Figure 9-7 ). No pin is required.
Search WWH ::




Custom Search