How radhwanal-hajjaj/netmon works
Netmon is ESP32 firmware for discovering and classifying LAN devices, monitoring nearby Wi-Fi/Bluetooth signals, and serving a local web UI and JSON API. The main workflow is periodic subnet sweeps plus DHCP-derived names and MAC-based classification, surfaced as device and event views. Nearby scans feed radars and a signal-guided Finder; settings manage connectivity and monitoring. The README documents these capabilities, but the application entry point and most HTTP routing code are not in the supplied tree, so those links are documented relationships rather than inspected calls.
Main entry points: pages.h Web pages and API · device_table.h Device tracking · air_ble.h Bluetooth sightings · air_scan.cpp Wi-Fi scanning
Components 23
LAN discovery
- ARP sweep
firmware/netmon/src/hw/arp_scan.cpp - Device tracking
firmware/netmon/src/core/device_table.h - Device classification
firmware/netmon/src/core/classify.h - Vendor lookup
firmware/netmon/src/core/oui_lookup.h - DHCP capture
firmware/netmon/src/hw/dhcp_capture.cpp - Hostname cache
firmware/netmon/src/core/name_cache.h - Device events
firmware/netmon/src/core/event_log.h
Nearby radio
- Wi-Fi scanning
firmware/netmon/src/hw/air_scan.cpp - Wi-Fi sightings
firmware/netmon/src/core/air_wifi.h - Bluetooth scanning
firmware/netmon/src/hw/air_scan.cpp - Bluetooth sightings
firmware/netmon/src/core/air_ble.h - Bluetooth identification
firmware/netmon/src/core/ble_type.h - Finder signals
firmware/netmon/src/core/air_find.h - Radio scheduling
firmware/netmon/src/core/air_plan.h
Board services
- Wi-Fi connection
firmware/netmon/src/hw/wifi_manager.cpp - Settings storage
firmware/netmon/src/hw/config_store.cpp - Gateway latency
firmware/netmon/src/hw/latency.cpp - ISP lookup
firmware/netmon/src/hw/isp_lookup.cpp
User interface
- Web pages and API
firmware/netmon/src/hw/pages.h
Other components
- LAN and router
- Browser user
- API client
- IP lookup service
Connections 26
- LAN and router → ARP sweep: answers probes
README.md - ARP sweep → Device tracking: records sightings
README.md - Device tracking → Device classification: classifies state
README.md - Device tracking → Vendor lookup: looks up maker
README.md - LAN and router → DHCP capture: relays broadcasts
README.md - DHCP capture → Hostname cache: learns names
README.md - Hostname cache → Web pages and API: supplies hostnames
README.md - Device tracking → Device events: tracks transitions
README.md - Wi-Fi scanning → Wi-Fi sightings: records access points
- Bluetooth scanning → Bluetooth sightings: queues sightings
- Bluetooth sightings → Bluetooth identification: classifies ads
firmware/netmon/src/core/air_ble.h - Wi-Fi sightings → Web pages and API: serves radar
README.md - Bluetooth sightings → Web pages and API: serves radar
README.md - Bluetooth identification → Web pages and API: shows device kinds
README.md - Finder signals → Web pages and API: shows signal guidance
README.md - Radio scheduling → Wi-Fi scanning: schedules scans
- Radio scheduling → Bluetooth scanning: schedules bursts
- Settings storage → Wi-Fi connection: configures connection
- Web pages and API → Settings storage: updates settings
README.md - Web pages and API → Wi-Fi scanning: scans networks
README.md - LAN and router → Gateway latency: probes gateway
README.md - Gateway latency → Web pages and API: reports latency
README.md - Web pages and API → ISP lookup: requests lookup
README.md - ISP lookup → IP lookup service: queries public IP
README.md - Browser user → Web pages and API: uses pages
README.md - API client → Web pages and API: uses JSON API
README.md