Skip to content

II1302-8/dockpulse-iot

Repository files navigation

DockPulse IoT

Firmware for the DockPulse berth-occupancy network. KTH II1302, team 8-mile.

One ESP-IDF project, two roles selected at build time:

Role Power Job
Sensor Solar mmWave radar per berth, publishes occupancy + distance via BLE Mesh.
Gateway Mains One per site. Subscribes to sensors, forwards berth_status_t over MQTT.

Hardware

Default sensor wiring (override in menuconfig):

HMMD ESP32-C3
3V3 3V3
GND GND
TX GPIO 5 (UART RX)
RX GPIO 4 (UART TX)

Quick start

# One-time toolchain install — see docs/development.md
~/esp/esp-idf/install.sh esp32c3

# Bench test with no radar attached: gateway on one board, fake-radar
# sensor on another. List ports first if multiple boards plugged in.
tools/list-ports.sh
tools/run.sh -r gateway -p /dev/cu.usbmodem21 -n 1 --erase
tools/run.sh -r sensor  -p /dev/cu.usbmodem11 -n 2 --fake --erase

Within ~minute the gateway's monitor should show:

gateway: rx src=0x0003 node=2 berth=2 occupied=1 raw_mm=2000
dp_gateway: uplink-stub src=0x0003 node=2 berth=2 occupied=1 raw_mm=2000 ts=...

Documentation

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors