ANCS/AMS client (ancs_c)
This section describes the implemented profiles, services, user interactions, and testing methods for the ANCS and AMS Client application.
Implemented profile and services
The ANCS/AMS Client application implements both an ANCS and an AMS Client for the custom ANCS Service and AMS Service available on iOS mobile devices.
Check the documentation available on the iOS website for details about the ANCS or AMS services, their characteristics, and supported features.
The demo application acts as a GAP Peripheral that advertises a service solicitation for the custom ANCS Service, followed by a solicitation to the AMS Service. It also acts as a GATT Client once connected to a device that offers the ANCS/AMS Service. The application offers some services such as the role of GATT Server.
Once connected to a mobile device offering the ANCS/AMS Service, the application displays information about ANCS Notifications received from that device. This information is followed by the AMS track information (Artist, Album, Title, Duration in seconds). The application also displays the possible remote commands that the device state allows (such as Play, Pause, VolumeUp, VolumeDown). The notifications are received via ATT Notifications, for which the ANCS Client must register on the peer ANCS Server. The same must be done for the AMS server. It initially configures the information that it wants to be notified about. The application also retrieves and displays additional information about the received ANCS notifications. For this purpose, it writes commands to specified characteristics on the ANCS/AMS Server and receives responses via ATT Notifications from other characteristics. All information is displayed to the user using a shell available over a serial communications interface.
Accessing the ANCS Service and AMS Service requires Bluetooth LE security to be enabled.
Supported Boards
The ANCS/AMS Client application is supported on the following platform:
KW45B41Z-EVK
K32W148-EVK
FRDM-MCXW71
KW47-EVK
MCX-W72-EVK