implementation of battery profile.

Learn MoreFAQsTutorials

2 posts / 0 new
Last post
blebot
Offline
Last seen:3 months 1 week ago
加入:2017-11-27 16:01
implementation of battery profile.

Hi Dilaog,

we're using custom board with DA14585 and using SDK 6.0.10 . we want to add the battery profile to the ble_app_peripheral example given in the SDK.

we have already seen thishttps://support.dialog-semiconductor.com/guide/faq-da1458x-software-peripheralsbut it's not working and it's also shown that it is for SDK 5.

所以,如何can we add the battery profile ?

Br,

blebot。

Device:
PM_Dialog
Offline
Last seen:11 hours 27 min ago
工作人员
加入:2018-02-08 11:03
Hi blebot,

Hi blebot,

I would strongly recommend to have a look at the prox_reporter example of the SDK which has already includes the BAS profile. In ble_app_peripheral example you should do many modifications.

  1. Add the bass.c and bass_task.h files in sdk_profiles folder (screenshot #1). Both of the file are located under sdk\ble_stack\profiles\bas\bass\src SDK folder path
  2. Add the appropriate header file s which are under sdk\ble_stack\profiles\bas\bass\api path. Please check screenshots #2 and #3.
  3. #define CFG_PRF_BASS in user_profiles_config.h
  4. #define EXCLUDE_DLG_BASS (0) in user_modules_config.h
  5. Add in user_callback_config.h the user_app_bass_cb as is in prox_reporter project.
  6. Follow the prox_reporter project and define the USE_BAT_LEVEL_ALERT , GPIO_BAT_LED_PORT, GPIO_BAT_LED_PIN, APP_BASS_POLL_INTERVAL macros.

Thanks, PM_Dialog

附件: