hjs.es CV as PDF
← Projects completed

SolarLink — Off-grid rural connectivity with LoRa and 5G

Design of a fully autonomous communications node — no mains power, no fixed line and no frequent physical access — to bring connectivity and telemetry to small rural settlements that conventional solutions do not reach. ASIR final-year project, developed by a team of three.

LoRaWAN 5G / 4G failover OpenWRT WireGuard MPPT LiFePO₄

A design project: the node was never physically built or tested. What follows is the solution we designed and documented.

Context

In Spain, around 20% of municipalities lack adequate broadband coverage, and thousands of settlements with fewer than 100 inhabitants have no fixed internet at all. Running fibre out to them is not economically viable, and satellite services come with high recurring costs and latency that rules out many uses.

SolarLink proposes a different route: an autonomous node that can be installed in a matter of hours, with no civil works, and that provides two things at once — an internet access point for the settlement and a LoRaWAN sensor network for agricultural and environmental telemetry (soil moisture, water tanks, weather). It was a joint effort by the three of us: networking, security, power and remote administration of the node were all designed as a team.

Design constraints

01
No mains power The node has to generate and manage its own energy: a solar panel with an MPPT charge controller and a LiFePO₄ battery. Every watt the software draws is a watt that has to be justified.
02
No fixed line — only intermittent mobile coverage The only route to the internet is the mobile network, with coverage that varies with the time of day and the weather. Connectivity cannot depend on a single operator.
03
No frequent physical access The installation site may be hours away. Everything — configuration, diagnostics, updates, recovery from faults — has to be possible remotely. If the node hangs and nobody can restart it, the design has failed.

Design challenges

✗

Challenge 1 — Getting the battery through the night

With Wi-Fi broadcasting around the clock, overnight consumption can drain the battery in winter: the node would be off by morning and, worse, the LoRaWAN sensors would stop recording data for hours.

Design solution — power survival logic: a script on OpenWRT monitors the battery voltage via cron. When it drops below the threshold, it automatically switches off Wi-Fi (the most power-hungry service) and prioritises the LoRaWAN sensor network, which draws a fraction of the power. The node "sacrifices itself in stages" to keep the essentials alive, and restores Wi-Fi once the panel is charging again.
✗

Challenge 2 — A single operator is not reliable

In rural areas a single operator's coverage is patchy and can drop out on a recurring basis. A node intended as critical infrastructure cannot depend on one link.

Design solution — dual-SIM link with automatic failover: two SIMs from different operators managed with mwan3 on OpenWRT. The system checks the health of the active link (pings to external targets) and switches to the secondary within seconds if the primary degrades, switching back automatically when it recovers. Every switchover is logged so coverage patterns can be analysed.
✗

Challenge 3 — Administering a node behind CGNAT

Mobile connections sit behind CGNAT: the node has no public IP address, so it is not possible to open a port and connect "inwards". And exposing the node's administration to the internet, even if it were possible, was ruled out on security grounds.

Design solution — WireGuard over an outbound connection: the node brings up an outbound WireGuard tunnel to a server with a public IP address. CGNAT stops mattering (the node initiates the connection) and all administration — SSH, LuCI — travels encrypted through the tunnel without exposing a single port to the internet. Keepalives are configured so the tunnel survives the operator's NAT timeouts.

Proposed architecture

01

Power — solar panel + MPPT + LiFePO₄

An MPPT controller to get the most out of the panel even under partial cloud, and a LiFePO₄ battery (more than 3,000 cycles, stable chemistry). The survival logic decides which services stay up depending on the state of charge.

02

Brain — OpenWRT

An open-source router OS with full control: firewall, DHCP, DNS, VLANs, QoS and the bridge between the LoRa network and the WAN. Root access, custom scripts and cron for all of the node's automation.

03

Connectivity — dual-SIM 5G/4G with failover

Two operators, automatic switchover with mwan3 and a log of every failover. Operator redundancy on low-cost hardware.

04

Sensors — LoRaWAN network

A LoRa gateway connected to the node. Field sensors transmit over distances of kilometres with minimal consumption — years of battery life.

05

Remote administration — WireGuard

An outbound WireGuard tunnel for administering the node (SSH, LuCI) without exposing ports.

Lessons learned

In off-grid systems, power is the first layer of the stack — before the network. A perfect network design that drains the battery is a failed design.
Redundancy is not an extra: with patchy mobile coverage, the second operator is part of the design from the start.
CGNAT turns "opening a port" into an architecture problem. Outbound connections (WireGuard, tunnels) are the standard answer, just as in my Proxmox remote access project.
Design so that nobody has to go there: every decision was tested against the question "what if this fails and the node is a three-hour drive away?".

View the project

The project's interactive presentation:

Final-year project developed together with Raúl García and Juanma Ruiz · ASIR 2024–2026.

Looking for someone to join your systems team?

CV as PDFhugo@hjs.es