Skip to content

Instantly share code, notes, and snippets.

@r8d8
Last active April 22, 2019 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r8d8/3568ce029f443f0c45ebd3ae7ab3ea3c to your computer and use it in GitHub Desktop.
Save r8d8/3568ce029f443f0c45ebd3ae7ab3ea3c to your computer and use it in GitHub Desktop.

Overview

Lastlock is a smart lock, meaning you control it through your smartphone. Communication between your phone and lock is made through Bluetooth Low Energy 5.0 (BLE 5.0). Lock can also utilize WiFi communication, to give you logs or alerts whenever you away.

Laslock is a flexibke platform, meaning it can be made in a different variation (mechanical and software) to support variety of assset control flow. For example, one can use it in a such ways:

  • P2P items exchange. Grid of boxes with integrated Lastlocks, spreaded around some area to provide items exchanges between users without proxy delivering company. Think about it as p2p post or exchange.

  • Boring home locks but with a monitoring of access, penetration alerts, remote control. The lock can be installed inside, without any traces from outside, though providing extra level of protection.

  • Bike/scooter/car renting.

User authentification is made by public key cryptography. Keys having tree structure. User can monitor and disable/enable children keys. Advanced shared access to resource can be achieved by using multiple root keys and rules for their activation. Scripting API for automation.

Hardware

Qualcomm QCA4020 triple-mode System on Chip (SoC), utilizing 2 Cortex-M cores (Cortex-M4 for application, Cortex-M0 for Bluetooth) and ESP Wifi core (ESP-1)

Software

Currently utilizing proprietary SDK from Qualcomm. SDK is poorely made, and overall is antipatern of productivity. No product can be delivered using it. Though, taking this in account, further development will move to the Rust, utilizing Rust Embedded progress.

Roadmap

v0.1.0 (Done)

Fully functional prototype of a door lock (Fig_1.jpg) This includes next features:

  1. Design lock capable to fit all major door configs.
  2. Prototype mechanics.
  3. Implement Bluetooth communication from smartphone to the lock.

v0.2.0 (in progress)

  1. Migrate to Rust
  2. Crypto payments, API for smartcontracts.
  3. Support different power modes of SoC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment