qzed / pbpctrl

Control Google Pixel Buds Pro from the Linux command line.
Apache License 2.0
58 stars 2 forks source link

Does not work with latest firmware update (5.9) #7

Closed sebastianha closed 8 months ago

sebastianha commented 8 months ago

Google just released a new firmware update 5.9 for the buds and unfortunately pbpctrl does no longer work for me. Every command just hangs and does not return.

Can you reproduce this? I really like your tool and would love being able to use it with the latest firmware.

Btw: there were also new features/toggles introduced with the new firmware like "transparent mode on when speaking". It would be cool if pbpctrl also would support them.

qzed commented 8 months ago

I can reproduce the issue. I hadn't updated the firmware yet so I didn't notice before. I can't tell exactly what's going wrong yet mostly because I haven't had the time to look into it in detail yet, but I have some ideas. If you want, you can run the program with RUST_LOG=debug set in the environment. That should show some more output.

On Sat, Oct 14, 2023, 12:07 Sebastian Hammerl @.***> wrote:

Google just released a new firmware update 5.9 for the buds and unfortunately pbpctrl does no longer work for me. Every command just hangs and does not return.

Can you reproduce this? I really like your tool and would love being able to use it with the latest firmware.

Btw: there were also new features/toggles introduced with the new firmware like "transparent mode on when speaking". It would be cool if pbpctrl also would support them.

— Reply to this email directly, view it on GitHub https://github.com/qzed/pbpctrl/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADG7W7U5GRPGXLFQZU2K7SDX7JP6NANCNFSM6AAAAAA6AEZA6Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sebastianha commented 8 months ago
:~> export RUST_LOG=debug 
:~> pbpctrl show battery
2023-10-14T15:15:28.583610Z DEBUG pbpctrl: no device specified, searching for compatible one
2023-10-14T15:15:28.586160Z DEBUG pbpctrl::bt: found compatible device address=24:29:34:XX:XX:XX
2023-10-14T15:15:28.586186Z DEBUG pbpctrl::bt: registering maestro profile
2023-10-14T15:15:28.587611Z DEBUG pbpctrl::bt: connecting to maestro profile
2023-10-14T15:15:28.896162Z DEBUG pbpctrl::bt: received new profile connection request address=24:29:34:XX:XX:XX
2023-10-14T15:15:28.896190Z DEBUG pbpctrl::bt: accepting profile connection request address=24:29:34:XX:XX:XX
2023-10-14T15:15:28.896917Z DEBUG pbpctrl::bt: maestro profile connected address=24:29:34:XX:XX:XX
2023-10-14T15:15:28.928926Z DEBUG maestro::pwrpc::client: received response for non-pending rpc: channel_id=0x15, service_id=0x7ede71ea, method_id=0x7199fa44, call_id=0xffffffff

...hangs here

qzed commented 8 months ago

Same issue that I have. I've pushed a commit to fix this but I'm not sure if that breaks earlier firmware versions.

There are some unrelated build errors on nightly however. Unfortunately I don't have all that much time right now and a very spotty internet connection. I'll see if I can fix those later.

For the new features, I'll have to dig into the app again and see how they are implemented. That will take some more time, so I'm not sure when I can get around to do that.

qzed commented 8 months ago

Fixed the build issues and tagged a new release. Implementing the other features will probably be something for next weekend, or some time after that.

qzed commented 8 months ago

Okay, managed to do it faster than I thought. Version 0.1.5 has support for the new settings.

sebastianha commented 8 months ago

Cool, thank you very much!