Giter Club home page Giter Club logo

miband-6-heart-rate-monitor's People

Contributors

gzalo avatar jaapp- 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

Watchers

 avatar

miband-6-heart-rate-monitor's Issues

Fix authentication so it works with Mi Band 6

New auth method is much complex and uses ECDH

  • privateEC = 24 random bytes
  • publicEC = ecdh_generate_public(privateEc) (48 bytes)
  • sendPubkeyCommand: 0x04 0x02 0x00 0x02 + publicEC
  • writeToChunked2021 (0x82 endpoint) with that command (not encrpyted)
  • Listen to things in characteristic Chunked2021Read

How to fix:

  • Port kokke/tiny-ECDH-c to wasm (I couldn't find any other browser JS library that implements NIST B-163 / sect163r2 elliptic curve)
  • Validate port with random data similar to testAuth in InitOperation2021.java from GadgetBridge... Couldn't use JNI in an unit test so I ended up using the "run debug function" button in the app.
  • Copy logic for reading and writing

help running it on nodejs

Hello, first of all thanks for your efforts on this cool project. I would like to be able to run it on a headless raspberry pi in order to automatically set the time and some notifications, can you please help in bringing it to a node.js app?
Thank you!

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.