adolfintel / OpenPods

The Free and Open Source app for monitoring your AirPods on Android
https://fdossena.com/?p=openPods/index.frag
GNU General Public License v3.0
957 stars 161 forks source link

Check on case charging status #4

Closed AeliusSaionji closed 5 years ago

AeliusSaionji commented 5 years ago

The airpods are always broadcasting battery status while the case is plugged in. Would be nice to be able to check on the % charge the case is at without having to connect.

adolfintel commented 5 years ago

The case doesn't send the status unless there's at least 1 airpod in it, it just says not connected

AeliusSaionji commented 5 years ago

Yes, but while the airpods are in the case and the case is charging, it will be transmitting said data.

adolfintel commented 5 years ago

From my testing, the case sends the status if it's open and there's at least one airpod in it, whether it's charging or not. As soon as you close it or take out the airpod, you don't get the status anymore. You could store it and display it while it's not broadcasting it, but it would be inaccurate. Is that what you meant?

AeliusSaionji commented 5 years ago

AeliusSaionji commented 5 years ago

The data updates. It just jumped from 65% to 75% without my touching the case. It might be on a 30s-60s interval, but it is transmitting the data. This app can read it.

adolfintel commented 5 years ago

Why the fuck don't mine do that? I'm charging the case right now but I don't see anything on an iPhone

adolfintel commented 5 years ago

What app is that?

AeliusSaionji commented 5 years ago

AirBattery.

It initially says the airpods are not connected, but if I leave it open for 30s or so, it will get an update on the charge status.

adolfintel commented 5 years ago

I'm taking a look at that application, there are some similarities with mine but it's also a lot more sophisticated (also I hope you're not allowing it to go online because it's full of trackers). I'm trying to figure out what we're doing different in the decoding of the status right now.

adolfintel commented 5 years ago

Man I'm just too dumb for reverse engineering 😂 Do you want to take a look and see if you can find where that magic case status is?

AeliusSaionji commented 5 years ago

Not my area of expertise, but an iPhone user told me you can see this on iPhone via the battery widget.

AeliusSaionji commented 5 years ago

adolfintel commented 5 years ago

Yea, it doesn't show on mine, I can only see the airpods, and the case when there's one in it, so I don't know where that variable is stored. I will try to do some more reverse engineering but I really suck at it, no guarantees.