Skip to content

About

Wireless Battery com suporte ao mouse Fallen Pantera Pro Wireless (fork modificado de krisgfx9/Wireless-Device-Battery-Monitor)

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Wireless Battery

Versão modificada de krisgfx9/Wireless-Device-Battery-Monitor (GPL-3.0). Alterações desta versão:

  • Mouse Fallen Pantera Pro Wireless (receptor Areson 25A7:FA7C) e família FA7B: o driver Areson agora aceita esses receptores e lê a bateria como porcentagem direta (0–100), em vez da escala 0–10 do FA07/FA08. Testado em hardware real: resposta 09 04 00 00 00 02 37 … = 55%.
  • build_msvc.bat: compila com MSVC + Windows SDK sem depender do vcvarsall.
  • src/drivers/xinput.cpp: usa ABI::Windows::Foundation::IReference<INT32> no lugar do typedef __FIReference_1_INT32, que só existe no MinGW, para compilar também no MSVC.

O headset Fallen Morcego Pro Wireless (dongle 3206:0881) não é suportado pelo dongle: ele só expõe áudio USB padrão e botões de mídia, sem nenhum canal de bateria. Pelo Bluetooth, o suporte genérico do Windows pode funcionar.

Battery levels of your wireless mouse, headset, keyboard and controller, right on the Windows taskbar.

Wireless Battery on the taskbar

Just want it working? Download WirelessBattery-Setup from the latest release, run it and click through. That's it.

Experienced users can grab the portable zip, use the command-line options, or build it from source with make or build.bat.

  • Tiny: a ~350 KB app using about 2 MB of RAM. It's plain C++/Win32, with no runtime and no background service, and installs in seconds without admin rights.
  • No vendor software needed: it talks to the devices directly. G HUB, Synapse, iCUE, GG and NGenuity can stay closed (or keep running; they don't conflict).
  • Many brands: Logitech, Razer, SteelSeries, Corsair, HyperX, Glorious, Jabra, PlayStation and Xbox controllers, any Bluetooth device Windows knows a battery level for, and every headset the bundled HeadsetControl supports.
  • Many brands: Logitech, Razer, SteelSeries, Corsair, HyperX, Glorious, PlayStation and Xbox controllers, Samsung Galaxy Buds, any Bluetooth device Windows knows a battery level for, and every headset the bundled HeadsetControl supports.

Display

On the taskbar (default): 🎧 30% 🖱 93% next to the notification area, drawn with the Windows icon font.

  • Low battery: a red number means 15% or less.
  • Charging: a blue ⚡ appears next to the number.
  • Asleep: dimmed text means the device is asleep and the last known value is shown.
  • Theme: it follows light/dark mode and DPI scaling.
  • Transparent taskbar themes (e.g. Windhawk's Taskbar Styler): turn on Background behind taskbar text in the menu to keep the text readable over the wallpaper.

Tray icons: one icon per device with the number drawn in it, plus a "Low battery" notification at 15%. The app switches to this automatically when the taskbar is vertical or can't be found.

Hover for details. Click for the menu: every device (click one to hide or show it), display mode, Refresh now, Start with Windows, and Exit. Levels refresh every 60 seconds, and right away when a device is plugged in or the PC wakes up.

Supported devices

Vendor Devices How
Logitech Mice and keyboards on Unifying, Bolt, Lightspeed and Nano receivers, over USB or Bluetooth; G headsets (G533, G535, G633/G635/G733/G933/G935, G PRO/PRO X) HID++ 1.0 / 2.0 with feature discovery: unified battery, battery level, voltage, ADC
Razer Wireless mice, keyboards and dongles; BlackShark V3 / V3 Pro and BlackShark V2 Pro (2023) headsets Razer feature-report protocol; headset envelope protocols (V3 queried every 5 min)
SteelSeries Arctis 1/7/7+/9/Pro/Pro Wireless, Arctis Nova 3P/5/7/7X/7P/Pro Wireless, GameBuds; Aerox 3/5/9 Wireless, Prime Wireless, Rival 3 Wireless (Gen 2), Rival 650, Rival Pro Vendor HID reports
Corsair Void / Void Pro / Void Elite / HS70 / HS80 wireless; Bragi devices (Virtuoso, Void V2, HS80 MAX, Slipstream mice and keyboards, including the newer Slipstream receiver 1B1C:2B00, e.g. Scimitar Elite SE Wireless) Vendor HID reports, Bragi GET (read-only)
Cooler Master MM712, MM731 (2.4 GHz dongle or USB cable) Vendor HID status report (read-only)
HyperX Cloud III Wireless, Cloud III S Wireless, Cloud II Wireless (HP, Kingston, DTS), Cloud II Core Wireless, Cloud Alpha Wireless, Cloud Alpha 2 Wireless, Cloud Flight, Cloud Flight S Vendor HID reports
Glorious Model O / O- / D / D- Wireless, Model O 2 / D 2 PRO Vendor feature report
Hitscan Hyperlight X, Hyperlight N Vendor feature report (same protocol as Glorious)
Kysona / Pulsar / ATK (VXE) / Hitscan Kysona M600 / Mercury, Pulsar and ATK VXE wireless mice (e.g. VXE X3 Pro, VXE Dragonfly R1 / R1 Pro Max / R1 SE+, ATK F1 Extreme), Hitscan Hyperlight Shared vendor protocol with checksummed replies
Pulsar X2 V3 X2 V3 on the 1K dongle (3710:5402) or USB cable (3710:3402); X2 V3 eS on the 8K dongle (3710:5403) or USB cable (3710:3406) 64-byte vendor feature report, battery register 08 81 01 (read-only)
ATK / VXE NK VXE R1 NK and other NearLink mice on the NK mouse NANO dongle (373B:1216) ATK BITMOUSE output report 08 on FF05:0001 (battery and charging)
ATK headsets ATK N9 Pro, N9 Ultra (first generation) Virtual COM port protocol (the ATK desktop app must be closed)
G-Wolves Fenrir, Fenrir Pro / Max / Asym, HTX, HTS, HSK, HTR, HT-S2, Lycan, WARG, VUK and their 8K dongles Glorious or Kysona protocol, depending on the model
Keychron mice M4 and other Keychron mice on the 2.4 GHz receiver; 8K mice (M5 8K, G6 HE 8K ...) on the TurboLink 8K receiver; Nape Pro trackball on the Link-KM receiver or cable Vendor report from Keychron Launcher (Nape Pro: raw HID A7 31)
LAMZU Maya X, Maya, Maya M, Tachi, Inca, Paro, Thorn, Atlantis Mini / OG Champion, Orcus (cable, 1K and 4K/8K dongles) Vendor feature report from LAMZU Aurora
Endgame Gear OP1w 4k (v1 / v2), XM2w 4k (v1 / v2) on the 4K dongle Vendor feature report A1, battery command B4 (read-only)
WLMouse YING Magnesium (YING 8K receiver 36A7:A874); Beast X 8K, Beast X Mini / Mini Pro, Beast X Pro, Beast MAX, Sword X 8K (receiver or cable; not the Beast X 4K) Vendor feature report, status command 0x83 (YING: same protocol as Glorious)
HECATE G5M PRO and other HECATE mice on the same receiver, and USB cable 35BB:D3FA / D3FC / D3FD Kysona protocol
Redragon Compx-based wireless mice: M916 Pro 1K (tested), M913 Impact Elite (tri-mode), G49 (receiver or cable); dual-mode M913 Impact Elite 16000 DPI (Areson receiver 25A7:FA07 or cable FA08) Kysona protocol (dual-mode M913: feature report 08, reply 09, battery in 10 % steps)
Areson (Redragon) M915RGB-WL (tested), original M913 Impact Elite and other mice on the 25A7:FA07 / FA08 receiver 17-byte GetPower feature report; level in 10% steps and a charging flag
Ninjutso Sora V2 on the 1K receiver (1915:AE1C, tested) NinjaForce feature report 0x05, status command 0x15; battery, online and charging state
AULA F75 / F87 Pro / F99 wireless keyboards on the 2.4 GHz receiver Report 0x13 frame, command 0x4A, sum checksum (Bluetooth and wired modes untested)
DAREU EM901X on the 260D:1074 2.4 GHz receiver (battery reading tested; charging transitions untested) Battery-only feature report 08, command 04; reply 09 on a separate vendor collection. Requires one unambiguous input/feature pair; USB cable mode and other receiver IDs are not enabled
SONiX keyboards (AJAZZ / AULA) AJAZZ AK820 MAX (tested), AULA F108 Pro on the 05AC:024F 2.4G dongle; AJAZZ AK980 V2 on the 0C45:FEFE dongle Vendor report 20 01 on usage page FF60, sum checksum (2.4G mode only)
ZOWIE EC1/EC2/EC3-CW, DW series (U2-DW, S2-DW ...) and U2 on its 2.4 GHz receiver Community-documented read-only vendor commands
ASUS ROG Strix Scope II 96 (RX), Azoth, Falchion keyboards; Keris, Harpe, Gladius, Chakram, Spatha, Pugio, Strix Impact mice; Pelta headset (2.4 GHz dongle); the Omni Receiver ROG HID battery query
MCHOSE L7 / L7 Pro / L7 Ultra (L7 Ultra tested), M7 / M7 Ultra, A7 / A7 Ultra, K7 mice on the 2.4 GHz receiver or USB cable; G3 V2 (2.4 GHz receiver 3837:4245 and USB cable 3837:418C) Vendor feature report, inverted payload (protocol from alexfrih/mchose-linux); G3 V2: read-only vendor query on FF01:0010
Rapoo VT VT3 Max Gen 2 (tested); other Nordic 54L VT mice exposing the same status interface; legacy VT3 Pro (experimental) Passive HID status report 07 on FF00:0002; legacy BB restricted to VT3 Pro 1215/4415. Receiver and USB cable, with charging state
Motospeed / Delux / Ajazz Motospeed X6, Delux M900 Pro, Ajazz AJ179 family; AJ159 and other AJ-series mice on the 3151 receiver; AJ139 V2 MC (A8A5:2255 receiver, A8A4:2255 cable) Vendor reports (Delux: passive status broadcasts; AJ-series: 0xF7 status poll, then feature report 0x05)
Incott G23 V2 / G24 (093A:522C receiver, 093A:622C cable) Read-only status feature report 09
Attack Shark and other Chinese brands Rongyuan receivers (81 models: Attack Shark R3, X82 PRO HE, Ajazz keyboards, some MSI and others); Xenta receivers (Attack Shark X6 / R1, X11, X3 Max, V3 Pro) Rongyuan status report; Xenta passive broadcasts
Sony DualShock 4, DualSense, DualSense Edge (USB, Bluetooth, wireless adapter); INZONE H9 II and H5 headsets; INZONE Buds (USB-C dongle) Input report; INZONE vendor protocol
Fractal Design Scape headset on its 2.4 GHz dongle or USB-C cable Vendor GET_DEVICE_STATE query from Fractal's Adjust Pro web app (usage page FF00)
Jabra Headsets on a Jabra Link 380a / 380c / 390 dongle (USB-A and USB-C, UC and MS versions: Evolve2 / Evolve3 and others); name read from the headset GNP status query (class 12 / op 02) on usage page FF00
Flydigi Vader 5 Pro / 黑武士 5 Pro (37D7:2401), 2.4 GHz receiver or USB Vendor HID info query on FFA0:0001; 0–5 battery level mapped to 0–100% in 20% steps, with charging state; no Space Station service required
GameSir Nova Lite, Nova 2, Nova 2 Lite on the 2.4 GHz receiver; Nova 2 Lite on USB; G7 Pro (tested: Zenless Zone Zero edition, receiver 3537:105E) and other GameSir pads in Xbox (GIP) mode; Cyclone 2 (XInput mode, receiver or cable) Vendor device-info query (usage page FF7A); Windows.Gaming.Input battery report (real %) in Xbox mode; Cyclone 2: vendor battery request (usage page FFF0)
Samsung Galaxy Buds, Buds+, Buds Live, Buds Pro, Buds2, Buds2 Pro, Buds FE, Buds Core, Buds3 / Buds3 Pro / Buds3 FE (Bluetooth) Status frame the earbuds push on Samsung's RFCOMM (SPP) service, read-only. The tray shows the lower earbud; the tooltip lists left, right and case. The Galaxy Buds app must be closed
Xbox Controllers on the Xbox Wireless adapter, USB or Bluetooth; headsets plugged into a controller Windows.Gaming.Input battery report (real %), XInput fallback
Apple AirPods / Beats AirPods Pro 3 (tested), AirPods, AirPods Pro, AirPods Max and Beats earbuds connected to the PC BLE "proximity pairing" broadcasts (left, right, case; 10% steps), matched to the connected model
Phones (Phone Link) Any Android phone linked with Microsoft Phone Link, over Wi-Fi or Bluetooth (tested: Nothing Phone (4a) Pro) Battery from Phone Link's Windows 11 Start menu card (StartMenuCompanion.json); no Bluetooth needed
Bluetooth Anything that shows a battery in Settings → Bluetooth & devices (earbuds, headphones, BLE mice and keyboards) Windows device property
Generic HID Devices reporting the standard HID Battery Strength usage HID usage page 0x06 / 0x85
HeadsetControl Every headset it supports (Audeze, Jabra, Sony INZONE, newer Logitech and more) Bundled; runs headsetcontrol -o json

Tested on real hardware: Glorious Model O Wireless, HyperX Cloud III Wireless, Cooler Master MM712 (dongle), Rapoo VT3 Max Gen 2 (receiver 24AE:1417 and USB cable 24AE:4617; other Rapoo models are untested, see Rapoo protocol notes), Redragon M916 Pro 1K (receiver 3554:F55D), Redragon M915RGB-WL (receiver 25A7:FA07; other Areson models are untested, see Areson protocol notes), SteelSeries Rival 650 Wireless (receiver 1038:1726 and USB cable 1038:172B), HECATE G5M PRO (receiver 35BB:D3FB), WLMouse YING Magnesium (8K receiver 36A7:A874), ATK N9 Ultra (receiver 373B:1204), Corsair Scimitar Elite SE Wireless (Slipstream receiver 1B1C:2B00), DAREU EM901X (receiver 260D:1074; charging and sleep/wake untested), Jabra Evolve3 75 on a Link 390 (0B0E:2E51), MCHOSE G3 V2 (receiver 3837:4245 and USB cable 3837:418C), AJAZZ AK820 MAX (dongle 05AC:024F) and AirPods Pro 3 (Bluetooth, model 2027). Implemented from protocol documentation and other projects, not yet tested: everything else. If you own one of these devices, please report whether it works by opening an issue.

Install

Latest version

  1. Download WirelessBattery-Setup-<version>.exe from the latest release.
  2. Run it and click through. It needs no administrator rights and nothing else installed: no runtimes, no drivers, no vendor apps. HeadsetControl comes bundled.

The installer adds a Start menu entry and an uninstaller (Settings → Apps), and can start the app when you sign in. Prefer no installer? Download WirelessBattery-<version>-portable.zip, unzip it anywhere and run WirelessBattery.exe.

Notes:

  • SmartScreen warning: the exe is not code-signed, so Windows may say "Windows protected your PC". Click More info → Run anyway, or build it yourself.
  • Tray-icon mode on Windows 11: new tray icons go to the ^ overflow. Drag them onto the taskbar or enable them in Settings → Personalization → Taskbar → Other system tray icons.

Command line

WirelessBattery.exe --list   # print every device and its battery level, then exit
WirelessBattery.exe --dump   # print every HID collection, plus raw Xenta (1D57) status frames (useful when asking for a new device)
WirelessBattery.exe --quit   # close the running instance

Build

You need MinGW-w64, e.g. from MSYS2 (pacman -S mingw-w64-x86_64-gcc make).

make            # MSYS2 / any shell with make
build.bat       # plain cmd with g++ and windres on PATH

To build the installer and portable zip, install Inno Setup and run powershell -File installer\build-installer.ps1 -Version 1.0.0. It downloads the pinned HeadsetControl release and verifies its checksum. GitHub Actions does all of this automatically: pushing a tag like v1.0.0 publishes a release with the installer, the portable zip and the HeadsetControl source (as its GPL license requires).

WirelessBattery.exe on its own also works. Without headsetcontrol.exe next to it (or on PATH) you just lose the extra headsets.

Limitations

  • Primary monitor only: the taskbar widget sits on the primary monitor's taskbar.
  • Crowded taskbars: with a very full centered Windows 11 taskbar, the app buttons can reach the widget. On Windows 10 the task-button area is narrowed automatically.
  • Phones: read from a file Phone Link writes for the Start menu companion card, which is not a documented API and may change with Phone Link updates. The phone shows while Phone Link reports it as connected; a card older than 3 hours is shown dimmed. Charging state is not available there.
  • Sleeping devices: a device that is asleep may not answer. Its last value stays visible, dimmed. Logitech receivers drop sleeping devices from the link, so their last value is kept for 30 minutes.
  • Keychron keyboards: they only report their battery over Bluetooth (shown via the Bluetooth support). Over the 2.4 GHz receiver the firmware does not expose it. Keychron mice are supported.
  • Rapoo: supported VT mice push their status, so a refresh can wait up to 4 seconds per matching interface. Sleeping mice may stay dimmed with their last reading for up to 30 minutes. Support is for Nordic 54L report 07 and legacy VT3 Pro BB; CH584 report 08, office MT/M-series mice and other firmware protocols are not covered by this driver.
  • Flydigi: this driver targets Vader 5 Pro only; Bluetooth and other Flydigi models are not covered. Percentages represent coarse battery levels. The implementation follows SDL and Windows hardware traces; local hardware validation is pending.
  • Not supported yet: MSI wireless mice and keyboards, Razer Kraken / Barracuda headsets, HyperX Pulsefire mice and the Xbox Wireless Headset on the Xbox adapter: their battery protocols are not documented. The Xbox Wireless Headset works over Bluetooth. A USB capture from an owner (see CONTRIBUTING.md) is the way to add them.
  • Other devices: some 2.4 GHz devices use undocumented protocols and are not supported yet. See CONTRIBUTING.md for how to help add one.

How it works

Each vendor driver in src/drivers/ recognises its devices by USB vendor and product ID, and only ever sends read-only battery queries. Unknown devices are never written to. The generic fallbacks (HID battery usage, Bluetooth, XInput, HeadsetControl) only look at devices no vendor driver has claimed.

The taskbar widget is a layered child window of Shell_TrayWnd, placed left of TrayNotifyWnd. If Explorer restarts, it is re-created.

Credits

The protocols come from these projects' research:

License

GNU General Public License v3.0 or later. You may use, modify and redistribute this software, but anything you distribute that is based on it must be released under the same license, with its source code.

About

Wireless Battery com suporte ao mouse Fallen Pantera Pro Wireless (fork modificado de krisgfx9/Wireless-Device-Battery-Monitor)

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages