maniacx / Airpod-Battery-Monitor

A Gnome extension for monitoring battery level of AirPods and Beats Bluetooth headset
https://extensions.gnome.org/extension/6778/airpod-battery-monitor/
GNU General Public License v3.0
36 stars 7 forks source link

Scanning doesn't work but with test.js is Ok #21

Closed theoesb closed 3 months ago

theoesb commented 3 months ago

Hello, I try to scan my Air Pod Pro 2 but it doesn't work.

I'm on Debian 12 with Gnome 43.9

Screen of interface :

Screencast from 2024-05-21 10-10-30.webm

Result test.js :

/tmp
❯ gjs-console test.js
Gjs-Message: 10:03:28.315: JS LOG: StartDiscoveryAsync
Gjs-Message: 10:03:38.123: JS LOG: Scanning Bluetooth devices...
Gjs-Message: 10:03:38.123: JS LOG: ------------------------------------------
Gjs-Message: 10:03:38.123: JS LOG: ManufacturerData                   : 07190124200b998f110006bf75e483b168aefa80e5b52ab15c619d
Gjs-Message: 10:03:38.123: JS LOG: Rssi                               : -50
Gjs-Message: 10:03:38.123: JS LOG: Model 4 Character                  : 2420
Gjs-Message: 10:03:38.123: JS LOG: Model 1 Character                  : 4
Gjs-Message: 10:03:38.123: JS LOG: Left Battery Level                 : 90
Gjs-Message: 10:03:38.123: JS LOG: Right Battery Level                : 90
Gjs-Message: 10:03:38.123: JS LOG: Case Battery Level                 : -1
Gjs-Message: 10:03:38.123: JS LOG: Single Battery Level               : 90
Gjs-Message: 10:03:38.123: JS LOG: Left Battery Charging Status       : false
Gjs-Message: 10:03:38.123: JS LOG: Right Battery Charging Status      : false
Gjs-Message: 10:03:38.123: JS LOG: Case Battery Charging Status       : false
Gjs-Message: 10:03:38.123: JS LOG: Single Battery Charging Status     : false
Gjs-Message: 10:03:38.123: JS LOG: ------------------------------------------
Gjs-Message: 10:03:43.106: JS LOG: StopDiscoveryAsync

Thank you so much for the replies ! :smile:

maniacx commented 3 months ago

In Extension setting choose your correct type of Airpods to AirPods Pro 2nd Gen USB-C

image

Your Airpods are the one with USBC I think. As it detects with model no "2420"

theoesb commented 3 months ago

Thanks, it works perfectly !