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

Battery Service on example ble_app_hrs

Hi everybody, I'm trying to use the example ble_app_hrs with s110 on the PCA10001 Board and the ble_app_hrs_c with s120 also on an other PCA10001. I changed some led flag and disabled the LCD, so i can see with teraterm the service discovery. My problem is that i can only see the Heart Rate measurement! I don't understand why the Battery status is displayed only 2 times... Any idea?

Thank you very much for any answer!

Parents
  • Hi there,

    ble_app_hrs for PCA10001 board will send a notification of the Battery Level only if the measured battery level changes (for example, if the charge on the coin cell goes down).

    The S120 app (ble_app_hrs_c) reads the Battery Level once the service discovery is complete. The S110 app (ble_app_hrs) sends the Battery Level the very first time it measures battery level. (it does not care if the peer has already read the Battery Level).

    That explains why you see the battery level twice.

    Hope it helps.

    Cheers, Balaji

Reply
  • Hi there,

    ble_app_hrs for PCA10001 board will send a notification of the Battery Level only if the measured battery level changes (for example, if the charge on the coin cell goes down).

    The S120 app (ble_app_hrs_c) reads the Battery Level once the service discovery is complete. The S110 app (ble_app_hrs) sends the Battery Level the very first time it measures battery level. (it does not care if the peer has already read the Battery Level).

    That explains why you see the battery level twice.

    Hope it helps.

    Cheers, Balaji

Children
Related