This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android BLE profiles

Does the android 4.3 or 4.4 has an implementation of Alert Notification Profile server?

  • Hi Sherin,

    As far as I am aware of, Android doesn't support ANP intrinsically.

    However you can create an app that open a GATT server with ANP service and run in the background as as service to monitor the phone activities. You should be able to monitor the phone activities (phone call, text, missed call) but I guess it would not be easy to monitor notification from other apps such as email or VOIP apps.

    I haven't actually implemented this myself, but I don't see any big issue with this.

  • I am testing the ble_app_alert_notification in sdk5. I guess the server binary file that you have provided does not work according to the sdk user guide. I don't see any values written at the control point.

    Also, I wanted to know whether ANP has any notification removal. The spec only talks about addition of notifications. What happens when a user checks the unread messages and calls? Is there any event to decrement the number of unread messages to zero?

  • Hi Sherin,

    I just tested the ble_app_alert_notification and the bin file included on Master Control Panel, and everything work as described in the documentation. Please be sure that you click Stop Server and Start Server after you load the bin file.

    Regarding removing the unread/new message and calls. The device is the client and it will not automatically update the number of unread/new message. You would need to count the number on the server (phone), and send an notification on the number of unread/new message to the client (the device).

    This is mentioned in the Alert Notification Service Spec: "If a client has configured notifications on the New Alert characteristic, notifications shall be sent when the count of new alerts changes in the server for an enabled category"

  • Hi I found that the server binary file that you provide with the example does not have any values on the supported new aler category and supported unread alert category. I write values 0xFF and then only the control point is written with 01-03. You have not mentioned it in the SDK documentation.

  • Hi Sherin,

    Could you be more specific ? As at step 2 in the documentation we set 0x2A47 and 0x2A48 to 0xFF to enable all the Categories to be alerted. The client can read this characteristic to know which categories are supported by the server. And this value should not be modified when in connection as stated in the ANS Spec.

Related