How gotthardp/lorawan-server works
This is an Erlang LoRaWAN network and application server for private networks. The principal flow is gateway traffic into the server, LoRaWAN frame validation and device handling, then delivery to internal application logic, MongoDB, or external application connectors. Operators configure and monitor the network through the administration interface and REST API. The README documents capabilities, but most Erlang implementations were not sampled, so subsystem paths follow the tree and edges are limited to documented relationships; the sampled React admin also contains a fixed API endpoint.
Main entry points: lorawan_mac.erl Frame security and MAC · lorawan_db.erl Device and application state · lorawan_application.erl Internal applications · index.js React administration
Components 20
Gateway connectivity
- Packet forwarder
src/lorawan_gw_forwarder.erl - Basic Station LNS
src/lorawan_gw_lns.erl - Gateway router
src/lorawan_gw_router.erl
LoRaWAN network
- Frame security and MAC
src/lorawan_mac.erl - MAC commands
src/lorawan_mac_commands.erl - Regional parameters
src/lorawan_mac_region.erl - Device and application state
src/lorawan_db.erl
Applications and integrations
- Internal applications
src/lorawan_application.erl - Semtech mote application
src/lorawan_application_semtech_mote.erl - Backend handlers
src/lorawan_handler.erl - Connector dispatch
src/lorawan_backend_factory.erl - External connectors
src/lorawan_connector.erl - MongoDB connector
src/lorawan_connector_mongodb.erl
Administration
- Admin API
src/lorawan_admin.erl - Web administration
priv/admin/admin.js - React administration
admin/src/index.js - User management views
admin/src/Users.js
Other components
- LoRaWAN gateways
- External applications
- Network operator
Connections 21
- LoRaWAN gateways → Packet forwarder: sends packets
README.md - LoRaWAN gateways → Basic Station LNS: sends packets
README.md - Packet forwarder → Gateway router: forwards traffic
- Basic Station LNS → Gateway router: forwards traffic
- Gateway router → Frame security and MAC: routes traffic
- Frame security and MAC → Device and application state: checks device state
- Frame security and MAC → MAC commands: processes commands
- Frame security and MAC → Regional parameters: uses region rules
README.md - Device and application state → Internal applications: provides device data
- Internal applications → Semtech mote application: dispatches application logic
README.md - Internal applications → Backend handlers: invokes handlers
README.md - Backend handlers → Connector dispatch: selects connectors
- Connector dispatch → External connectors: dispatches output
- External connectors → External applications: delivers events
README.md - Device and application state → MongoDB connector: stores uplinks
README.md - Network operator → Web administration: manages network
README.md - Network operator → React administration: manages users
README.md - Web administration → Admin API: calls API
README.md - React administration → Admin API: requests API data
admin/src/index.js - React administration → User management views: renders user views
admin/src/index.js - Admin API → Device and application state: manages configuration