[request] Bluetooth Battery Status

asked 2015-05-26 09:22:34 +0200

nick75 gravatar image

updated 2017-11-10 14:29:44 +0200

Is it possible to implement Bluetooth Battery Service (BAS) on the Jolla phone? This feature shows the battery level for connected Bluetooth devices (if supported by that device), e.g. headsets. It seems that Jolla itself can report its own battery status via Bluetooth to carkits. This feature is already present in iOS and Android 1, Android 2.

If this feature is already present and working, I appologize, and rephrase the question to which compatible Bluetooth headsets are out there?

Edit: battery status is part of the Bluetooth HFP profile. So instead of implementing BAS, which apperently is part of Bluetooth LE, couldn't this be used to show battery status of connected devices?

Edit 2015-05-27, the iOS Bluetooth Headset Battery Level Indication is proprietary according to the Apple Bluetooth design guidelines (page 28).

Headset battery indication is implemented by two Apple-specific Bluetooth HFP AT commands,

So, is there some how a way to utilize these AT commands (initiated by the Bluetooth device) in Sailfish?

Edit 2017-11-10, Android 8.1 will have Bluetooth battery level support right out of the box.

edit retag flag offensive close delete


I would also like this, my work Iphone shows the battery status of my headset whilst my jolla doesn't! Is it a hard thing to program?

timearp ( 2015-05-26 14:08:52 +0200 )edit

BAS is based on Bluetooth LE so that would need to be implemented first.

Battery reporting from the phone to a carkit (or even a headset) happens over traditional BT HFP profile which contains battery and signal indication as part of the specification (along with a lot more).

Note that implementing anything specified by Bluetooth SIG requires official qualification which takes more work, time, and money than just going ahead and writing the code.

hmallat ( 2015-05-26 14:45:29 +0200 )edit

@hmallat, Ok, if BAS is part of BLE, I understand it takes quite an effort to make this come true. But if battery status is already part of the HFP profile, the information "should" be there on the bus already? If an Android-app can catch this information and display it, wouldn't a Sailfish app/patch be able to intercept this data as well?

nick75 ( 2015-05-26 15:00:50 +0200 )edit

@nick75 to clarify, HFP specifies battery reporting from AG (audio gateway, i.e. phone) to HS (headset) only, not the other way around.

hmallat ( 2015-05-26 15:05:28 +0200 )edit

Do you know of any device that actually implements the BAS profile? I am yet to see a single one...

In fact the most common protocol out there used by headsets to report its battery to the phone is a iPhone proprietary protocol.

javispedro ( 2015-05-26 16:07:20 +0200 )edit