KillerBOSS2019 / SoundcoreDesktop

a way to communicate with Anker Soundcore Life headphones
GNU General Public License v3.0
100 stars 17 forks source link

How did you decode the response? #9

Closed gmallios closed 1 year ago

gmallios commented 2 years ago

I am experimenting with the liberty air 2 pros using my own code https://github.com/gmallios/soundcore-rs. I am sending the same bytes as you are and receiving a 97 byte long response. I figured out the anc mode but I can't seem to figure out earbud battery and case battery( I have sample code and response in readme). Any help? Nice project btw.

gmallios commented 2 years ago

Also i am using UUIDs to connect instead of ports. I found them by reversing the app and it saves a lot of time trying 31 ports. Feel free to use them.

KillerBOSS2019 commented 2 years ago

If u could send me the file maybe I can dig it with Wireshark

gmallios commented 2 years ago

https://paste.c-net.org/WillsLorelai

gmallios commented 2 years ago

It sends multiple commands over SPP. I have decompiled the app and found those commands for all devices but when I send one of them I sometimes get very late response or no response. I can share the code if you need.

gmallios commented 2 years ago

Found the function which parses the response after sending 08ee00000001010a0002 and managed to get battery info and charging status. image