Setting up ANPS profile

2 posts / 0 new
Last post
alkna13
Offline
Last seen:4 years 10 months ago
加入:2016-03-10 09:02
Setting up ANPS profile

I am trying to set up the DA14581 to transmit data from some sensors. I want to use an ANPS profile so i can alert the client when new data is available. How (mostly where) do I add services and characteristics to do this.. I have the project set up from the template like inhttp://support.dialog-semiconductor.com/connectivity/product/da14580?qt-...and included the anps.h in user_profiles_config.h but I do not know where to edit the profile.

Keywords:
Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
Staff
加入:2015-06-08 11:34
Hi alkna13,

Hi alkna13,

By adding characteristics to the profile you will violate the spec of the ANP profile, what you must do is to create and enable the profile properly in order to alert your device that the values of the categories you enabled are changed. Please check the RW-BLE-PRF-ANP-IS.pdf for the usage of the ANPS profile. Also by just adding the profiles isn't enough in order to set up the profile, you will also have to provide an application layer that will handle your profile, for example to add the battery profile besides the bass.c/.h and the bass_task.c/.h you will have to add the app_bass.c/h and the app_bass_task.c/.h. The ANPS profile also just alerts the user, it doesn't send the actual data, if you want to also send data you will have to implement a custom profile.

Thanks MT_dialog