GithubHelp home page GithubHelp logo

namnguyen09 / bluetoothlebatterymonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from muedsa/bluetoothlebatterymonitor

0.0 0.0 0.0 625 KB

Windows BluetoothLE Battery Monitor

License: MIT License

C# 100.00%

bluetoothlebatterymonitor's Introduction

First

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

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.