Ans - Spec - V10 3
Ans - Spec - V10 3
PUID WG [email protected]
Abstract:
Revision History
Revision Date (yyyy-mm-dd) Comments
D09r01 2010-11-14 The first draft
D09r02 2011-03-08 Texts and figures are updated.
D09r03 2011-05-27 Deleted Supported Alert Subcategory
D09r04 2011-06-01 Removed last traces of old architecture
D09r05 2011-06-12 Several edits in F2F. Most notably refine and future proof
categories
D09r06 2011-06-24 Update the characteristic usage.
D09r07 2011-07-05 Updated to answer comments
D09r08 2011-07-20 Delete “Both” command for Alert Notification Control Point. Add
the explanation to Notify immediately command.
D09r10 2011-07-28 Clean version before final WG review
D09r11 2011-08-01 Lots of editorial/document readability edits. Moved behavior
from characteristics to service.
D09r12 2011-08-10 Final cleanup of drawing in appendix. Fixed UUID of service
D09r13 2011-08-18 Responded to Barb and GPA reviewers
D09r14 2011-08-18 Fixed figure 4-1 and section 1.3 as requested by Len.
D09r15 2011-08-20 Responded to some additional comments from Terry
D09r16 2011-08-24 Responded to comments from Tim during vote.
V09r00 2011-08-29 Adopted prototype specification
D10r01 2011-09-02 First Draft D10, one typo fixed
V10r00 2011-09-15 Adopted by the Bluetooth SIG Board of Directors
Contributors
Name Company
Shunsuke Koyama Seiko Epson
Daisuke Matsuoh Citizen
Satomi Michitsuta Casio
Steve Davies Nokia
Frank Berntsen Nordic Semiconductor
BLUETOOTH SERVICE SPECIFICATION Page 3 of 22
Alert Notification Service
Document Terminology
The Bluetooth SIG has adopted Section 13.1 of the IEEE Standards Style Manual,
which dictates use of the words ``shall’’, ``should’’, ``may’’, and ``can’’ in the
development of documentation, as follows:
The word shall is used to indicate mandatory requirements strictly to be followed in
order to conform to the standard and from which no deviation is permitted (shall equals
is required to).
The use of the word must is deprecated and shall not be used when stating mandatory
requirements; must is used only to describe unavoidable situations.
The use of the word will is deprecated and shall not be used when stating mandatory
requirements; will is only used in statements of fact.
The word should is used to indicate that among several possibilities one is
recommended as particularly suitable, without mentioning or excluding others; or that a
certain course of action is preferred but not necessarily required; or that (in the negative
form) a certain course of action is deprecated but not prohibited (should equals is
recommended that).
The word may is used to indicate a course of action permissible within the limits of the
standard (may equals is permitted).
The word can is used for statements of possibility and capability, whether material,
physical, or causal (can equals is able to).
BLUETOOTH SERVICE SPECIFICATION Page 5 of 22
Alert Notification Service
Table of Contents
1 Introduction .................................................................................................................................... 6
1.1 Conformance ............................................................................................................................. 6
1.2 Service Dependency ................................................................................................................. 6
1.3 Bluetooth Specification Release Compatibility .......................................................................... 6
1.4 GATT Sub-Procedure Requirements ........................................................................................ 6
1.5 Transport Dependencies ........................................................................................................... 6
1.6 Error Codes ............................................................................................................................... 7
1.7 Concepts .................................................................................................................................... 7
1.7.1 Category ID ......................................................................................................................... 7
1.7.2 New Alert ............................................................................................................................. 7
1.7.3 Unread Alert ........................................................................................................................ 8
2 Service Declaration ........................................................................................................................ 9
3 Service Characteristics ............................................................................................................... 10
3.1 Supported New Alert Category ................................................................................................ 11
3.1.1 Characteristic Behavior ..................................................................................................... 11
3.2 New Alert ................................................................................................................................. 11
3.2.1 Characteristic Behavior ..................................................................................................... 11
3.2.2 Characteristic Descriptors ................................................................................................. 11
3.3 Supported Unread Alert Category ........................................................................................... 12
3.3.1 Characteristic Behavior ..................................................................................................... 12
3.4 Unread Alert Status ................................................................................................................. 12
3.4.1 Characteristic Behavior ..................................................................................................... 12
3.4.2 Characteristic Descriptors ................................................................................................. 12
3.5 Alert Notification Control Point ................................................................................................. 12
3.5.1 Characteristic Behavior ..................................................................................................... 12
3.5.2 Error Handling ................................................................................................................... 13
4 Service Behaviors ........................................................................................................................ 14
4.1.1 Alert Notification Control Point Command Behavior ......................................................... 14
4.1.2 New Alert Notification Behavior ........................................................................................ 14
4.1.3 Unread Alert Status Notification Behavior ........................................................................ 15
5 Acronyms and Abbreviations ..................................................................................................... 17
6 References .................................................................................................................................... 18
Appendix A Example Implementation ................................................................................................ 19
Appendix B Controlling Notifications with the Client Characteristic Configuration and Control
Point Commands .......................................................................................................................... 21
BLUETOOTH SERVICE SPECIFICATION Page 6 of 22
Alert Notification Service
1 Introduction
The Alert Notification service exposes alert information in a device. This information
includes the following:
Type of alert occurring in a device
Additional text information such as caller ID or sender ID
Count of new alerts
Count of unread alert items.
1.1 Conformance
If a server claims conformance to this service, all capabilities indicated as mandatory for
this service shall be supported in the specified manner (process-mandatory). This also
applies for all optional and conditional capabilities for which support is indicated. All
mandatory capabilities, and optional and conditional capabilities for which support is
indicated, are subject to verification as part of the Bluetooth qualification program.
1.7 Concepts
1.7.1 Category ID
In the Alert Notification service, the concept of Category ID is used to identify the type of
alert information.
2 Service Declaration
The Alert Notification service shall be instantiated as a «Primary Service». The service
UUID shall be set to «Alert Notification Service».
The UUID value assigned to «Alert Notification Service» is defined in [2].
There shall be one instance of the Alert Notification Service on a device.
BLUETOOTH SERVICE SPECIFICATION Page 10 of 22
Alert Notification Service
3 Service Characteristics
The Alert Notification service shall expose the following characteristics:
Reliable Write
Write without
Signed Write
Auxiliaries
Broadcast
Response
Writable
Indicate
Notify
Write
Read
There shall be one instance of the New Alert characteristic in an Alert Notification
service.
There shall be one instance of the Supported Unread Alert Category characteristic in an
Alert Notification service.
There shall be one instance of the Unread Alert Status characteristic in an Alert
Notification service.
There shall be one instance of the Alert Notification Control Point characteristic in an
Alert Notification service.
4 Service Behaviors
4.1.1 Alert Notification Control Point Command Behavior
In the following text it is assumed that notifications are enabled by setting the Client
Characteristic Configuration notification bit to 1 for the given alert characteristic.
Commands to notify a given characteristic immediately have no effect if the
corresponding Client Characteristic Configuration has the notification bit set to 0.
The server device shall accept the following commands (See also [2]):
Command Server action
The Number of New Alert field shall be set to the number of new alerts in the server.
The Text String Information field may be set to text that is related to the last alert in the
category being reported (see [2]).
If the text is longer than the maximum length defined by the characteristic definition [2],
the text for the notification shall be truncated.
If multiple alert events occur in the same category, only one notification should be sent.
The Unread Alert information shall be formatted in two octets for one category as
follows:
6 References
[1] Bluetooth Core Specification v4.0
[2] Characteristic and Descriptor descriptions are accessible via the Bluetooth SIG Assigned Numbers.
BLUETOOTH SERVICE SPECIFICATION Page 19 of 22
Alert Notification Service
Table 6.1 is the attribute database for Alert Notification service shown in Figure 6.1.
UUID Permission Value (Default)
<<Primary Service>> Read <<Alert Notification Service>>
<<Characteristic>> Read Properties = 0x02 (Read)
Handle = Handle of Supported New Alert Category
UUID = <<Support New Alert Category>>
<<Supported New Alert Read 0x2c (SMS, Email, Call)
Category>>
<<Characteristic>> Read Properties = 0x02 (Read)
Handle = Handle of Supported Unread Alert Category
UUID = << Supported Unread Alert Category >>
<<Supported Unread Alert Read 0x2c (SMS, Email, Call)
Category>>
<<Characteristic>> Read Properties = 0x10 (Notify)
Handle = Handle of New Alert
UUID = <<New Alert >>
<<New Alert>> Notify See 3.2, [2]
<<Client Characteristic Read, 0x0000 (as default value)
Configuration>> Write
<<Characteristic>> Read Properties = 0x10 (Notify)
Handle = Unread Alert Status
UUID = <<Unread Alert Status>>
<<Unread Alert Status>> Notify See 3.3, [2]
<<Client Characteristic Read, 0x0000 (as default value)
Configuration>> Write
<<Characteristic>> Read Properties = 0x08 (Write)
Handle = Alert Notification Control Point
UUID = <<Alert Notification Control Point>>
<<Alert Notification Control Write See 3.5, [2]
Point>>
Table 6.1: Example attribute database for Alert Notification Service
BLUETOOTH SERVICE SPECIFICATION Page 21 of 22
Alert Notification Service
Figure 6.2: Conceptual illustration of how notifications are controlled in the server.
The server also has a switch for each category like “Simple Alert,” “Email Alert,” and
“Incoming Alert,” if the server is capable of these categories. The clients can set those
switches by writing the Enable New Alert Notification command to the Alert Notification
Control Point if the client wants to receive notifications of them.
If the client writes the Notify Immediately command with the value of ‘0xff’ to the Alert
Notification Control Point, notifications of categories that have been enabled by sending
the Enable specific categories command are sent to the client (when the CCC is set to
0x0001 “Notify”).
BLUETOOTH SERVICE SPECIFICATION Page 22 of 22
Alert Notification Service
Even if the client writes the Notify Immediately command to the Alert Notification Control
Point for some specific categories, the server shall not send the notifications when the
value of the CCC is 0x0000.
If the target category that is set by the client via the Alert Notification Control Point is not
configured “Enable”, the server shall not send the notification for the category even if
the CCC is set to 0x0001 “Notify”.