Git Product home page Git Product logo

Comments (4)

Archetrix avatar Archetrix commented on August 24, 2024

As this would add a step to identify a device beyond just checking for BT MAC and RSSI is there a way to maybe identify that we're looking at an Apple Watch by it's BT MAC already? This way the additional checks would only be executed on an Apple Watch.

On the other hand this check only needs to be done once when the device appears in range (RSSI lower than set threshold) and then only ever again when the RSSI has gone over the threshold.

Thinking further this check should always be made. What if i take off my Apple Watch in front of the Mac to charge it and then it would not check again. In locking my computer by taking off my Apple Watch i'm surely aware of the implications.

from bleunlock.

ts1 avatar ts1 commented on August 24, 2024

We should be able to identify whether it's an Apple Watch by the device name (Apple Inc./WatchX,X). I'm still considering how it should behave when the Watch is removed from the wrist to charge while the Mac is unlocked.

from bleunlock.

DigiH avatar DigiH commented on August 24, 2024

My above suggested Nearby Info Continuity BLE advertising data, looking at the data length and the relevant octet being "98" or "18" clearly identifies it is an Apple Watch AFAIK, so any name comparison or so is necessary.

https://github.com/theengs/decoder/blob/development/src/devices/APPLEWATCH_json.h#L8

I have implemented this into our Theengs Decoder library for usage in several projects and also use it personally to deactivate/activate my alarm system when I'm coming home/leaving the house, only when the Apple Watch worn and unlocked by me.

And yes, the behaviour of how to prevent locking when on the charger is similar to my alarm system not being set when a firmware update presents the Watch as absent for quite a few minutes ;) my suggestion would be a MUTE/PAUSE option in the BLEUnlock menu, with a very clear icon indicator to the pause.

ADDENDUM: with the data length obviously already also being included by the 05 byte, indicating the amount of the following bytes.

from bleunlock.

ts1 avatar ts1 commented on August 24, 2024

@DigiH Thank you for the very interesting information. 🙏
I will look into your project more closely. 👀

from bleunlock.

Related Issues (20)

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.