GithubHelp home page GithubHelp logo

polarvantagehrm's Introduction

Polar Vantage Heart Rate Monitor tool

This tool captures Bluetooth Low-Energy (BLE) Advertisements from Polar Vantage watches. It will detect Polar Vantage watches using the Complete Local Name advertisement unless the user provides the MAC address of the watch. Then, it will listen for Manufacturer specific advertisements which encode the heart rate and print the heart rate.

Requirements

Polar Vantage watches will broadcast BLE Advertisements when selecting a sport profile. For example, the watch will broadcast you heart rate when Indoor cycling is selected. Broadcasting is enabled by default for certain sport profiles (e.g., Indoor cycling). You can customize and select which profiles will broadcast through the Polar Flow App (option HR visible to other devices). Note that you don't need to start recording, it's enough to select the activity (Start training -> Indoor cycling).

The tool will not show the current heart rate unless you have selected a sport profile which is configured to broadcast measurements.

BLE Advertisements

My Polar Vantage M (firmware ver. 5.1.8) broadcasts 3 different types of BLE Advertisements:

  • Complete Local Name (9): This is the model of the watch followed by the serial number. The tools uses this advertisement to determined if this is a Polar Vantage watch if the user hasn't specified the MAC address to listen to.
  • Flags (1): This is a 16b field which I haven't been able to interpret yet, in my watch this has the value of 04. For now, the tool ignores it.
  • Manufacturer (255): This is a manufacturer specific advertisement. In my watch it has the following format:
    6b00720872acf50200000000XX00YY
    
    Most bytes don't change. YY is the heart rate in hex. XX is the expended energy in cal since the last measurement.

polarvantagehrm's People

Contributors

relokin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

maksimks81

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.