Giter VIP home page Giter VIP logo

bluetoothlebatterymonitor's Introduction

For Windows Developer

Google Windows Management Interface.
use Battery Percents Properties

  • Key = {104EA319-6EE2-4701-BD47-8DDBF425BBE5} 2
  • Type = 3 (Byte)

Data is in percents

Look the PowerShell Script

Note

The project use a wrong way to get battery level(Headphone/Headset)
I try to get Bluetooh headphone battery level by BLE GattService, but this is not a good idea.

For headphone/headset

Headphone/Headset can use HFP to report battery level to ios. We should use hfp to get headset's battery level.
Apple extend HFP command, help headset report a headset state change:

  • Request: AT+XAPL=[vendorID]-[productID]-[version],[features]
  • Response: AT+IPHONEACCEV=[Number of key/value pairs ],[key1 ],[val1 ],[key2 ],[val2 ],...

Unfortunately, microsoft no provide api. You have to code Bluetooth Driver to supersed Microsoft Driver.

BluetoothLEBatteryMonitor

Windows BluetoothLE Battery Monitor
Version 2.0
screenshot1
screenshot2

Note

Use Universal Windows Platform (UWP) Windows Runtime API at Windows Forms

TODO

  • BEL feat: Replace timer loop to get BatteryLevel with event listener

References

bluetoothlebatterymonitor's People

Contributors

muedsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluetoothlebatterymonitor's Issues

Compiling with Visual Studio

I tried to compile the solution with Visual Studio, but it gives an error on the net framework 4.6.1, which is installed. Could you upload the exe file?

提供命令行接口

可以通过命令行的方式来调用程序获取电池电量吗
感激不尽!

HP Tilt pen showing as 0% although its at 30%

I have an HP Tilt stylus that uses BLE to communicate with the PC. I can successfully check the battery reading in Windows' settings, but using this application it shows 0%. I tried re-pairing but still the same thing. The app is able to detect the stylus, just not read the battery charge level. I'm on Windows 20H2, I'll try to update to windows 21H1 and report back.

Edit: 21H1 shows the same behavior

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.