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
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.
rename src/config.sample.h to src/config.h and insert your TTN application credentials.
Lock messages are sent on the LoRaWAN port 1 and start with 0x01. The second byte is the status:
0x010x01: Lock Closed0x010x02: Lock Open
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.
Sent on LoRaWAN port 10.
tbd
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.