Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Extended Battery support, like charging? #182

Open
LeeNX opened this issue Jun 15, 2023 · 3 comments
Open

[Feature Request] Extended Battery support, like charging? #182

LeeNX opened this issue Jun 15, 2023 · 3 comments

Comments

@LeeNX
Copy link
Contributor

LeeNX commented Jun 15, 2023

Possible add GATT Battery Status (0x2A1A) and Battery Level State (0x2A1B)

On the Bluetooth SIG page, https://www.bluetooth.com/specifications/specs/battery-service/ there is a release for Battery Service 1.1

Which includes some items that might be worth adding, if we want the host to know if the gamepad is charging or other battery health/service properties. It's more a UX thing, but I can see the gamepad been charged, while in use.

@lemmingDev
Copy link
Owner

I am trying to add this at the moment
Hopefully will be done in a day or two

#266 (comment)

@LeeNX
Copy link
Contributor Author

LeeNX commented Feb 14, 2025

This FR is mostly for UX, like I have seen on things like RetroPi, where the On-Screen-Display for battery level, which we do, but also if the device is been charged, with battery and lightning bolt displayed.

If we get a bunch of other features with the same update, that is just awesome, but I am not sure that anybody is really using the battery health or battery serial numbers stuff.

@lemmingDev
Copy link
Owner

Well, releases from 7.3 now have the ability to set 0x2A1A info, and have it available in the OS

0x2A1B seems to just be the level we already have, so I ignored that one
I tested adding other battery characteristics, which work, though I think this one is enough to give/set all the info we need

Check new example for info

Okay to close?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants