Skip to content

๐Ÿ”“๐Ÿ“ก ESP32 based smart lock for bicycles and other shared mobility devices

License

Notifications You must be signed in to change notification settings

radforschung/lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

radforschung lock

ESP32 based smart lock for bicycles and other shared mobility devices.

This is a work in progress. For more background see https://radforschung.org/log

hardware prototype

for the prototype we're using a modified smart lock from china. as platform for the esp32 and lora a ttgo lora v2 is used. The e-paper module is from waveshare, the 1.54 inch black/white edition.

LoRaWAN

Config

rename src/config.sample.h to src/config.h and insert your TTN application credentials.

Messages

Lock Status

Lock messages are sent on the LoRaWAN port 1 and start with 0x01. The second byte is the status:

  • 0x01 0x01: Lock Closed
  • 0x01 0x02: Lock Open

Location Info

Location info messages start with 0x02. There are currently two location reporting methods: GPS and WiFi. While GPS receives the location on the lock, WiFi location can't calculated on the lock.

GPS

Sent on LoRaWAN port 10.

tbd

WiFi

Sent on LoRaWAN port 11.

The following bytes contain chunks of 7 bytes per found access point. The first 6 bytes contain the WiFi BSSID (MAC address), the 7th byte is RSSI * -1. Max number of transmitted access points is 7.

About

๐Ÿ”“๐Ÿ“ก ESP32 based smart lock for bicycles and other shared mobility devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages