Portable LoRaWAN Mesh Relay Gateway: Raspberry Pi Zero Field Deployment
Portable Mesh Relay Gateways
LoRaWAN mesh relay gateways don't need internet connectivity - they forward packets from end-devices to border gateways via LoRa-to-LoRa relaying. This makes them perfect for temporary deployments: field testing, event coverage, remote monitoring where running power or internet is impractical.
The Raspberry Pi Zero W with Seeed WM1302 concentrator draws only 1W. That means a mid-sized USB battery pack runs the gateway for 3-4 days continuously. You can hike it to optimal testing locations, mount it temporarily for coverage gaps, or deploy it in remote areas without infrastructure.
Hardware Build

Core components:
- Raspberry Pi Zero W
- Seeed WM1302 LoRaWAN Gateway Module (SX1302-based Pi HAT)
- USB battery pack (10,000-20,000mAh)
- microSD card (16GB+)
Seeed WM1302 specifications:
- Semtech SX1302 baseband chip
- Higher sensitivity than older SX1301: -139dBm @ SF12
- Lower power consumption than previous generation
- Integrated GPS module (GPS L1, GLONASS L1, BeiDou B1)
- Mini-PCIe form factor module + Pi HAT adapter
- Frequency bands: EU868 or US915 variants
- 56×65mm dimensions
Why Raspberry Pi Zero W:
- 1GHz single-core CPU, 512MB RAM
- Low power consumption: ~150-200mA @ 5V
- WiFi + Bluetooth built-in (useful for configuration)
- 40-pin GPIO header compatible with WM1302 HAT
- Small form factor: 65×30mm
Power consumption breakdown:
- Raspberry Pi Zero W: ~0.7-1W
- WM1302 concentrator: ~0.2-0.3W (receiving)
- Total system: ~1W typical, 1.2W peak
Battery life calculations:
- 10,000mAh battery pack @ 5V = 50Wh
- Gateway draws 1W
- Runtime: 50Wh / 1W = 50 hours (2+ days)
- 20,000mAh pack = 100Wh = 100 hours (4+ days)
- Real-world: 3-4 days typical with conversion losses
ChirpStack Gateway OS Installation
ChirpStack Gateway OS is an OpenWrt-based embedded operating system designed for LoRa gateways. It includes ChirpStack Gateway Mesh component for relay functionality.
Download and flash:
- Download ChirpStack Gateway OS for Raspberry Pi from chirpstack.io
- Flash SD card using Balena Etcher
- Insert SD card into Raspberry Pi Zero W
- Power on and wait for first boot (creates WiFi access point)
Initial access:
- Gateway creates access point: "ChirpStackAP-XXXXXX"
- Default password: "ChirpStackAP"
- Connect to access point
- Access web interface: http://192.168.0.1
Configure as relay gateway:
- Access LuCI web interface
- Navigate to ChirpStack Gateway Mesh configuration
- Enable relay mode (disable border gateway mode)
- Set AES128 mesh signing key (same across all gateways in network)
- Configure LoRa concentrator (automatic detection for WM1302)
- Set frequency plan (EU868, US915, etc.)
- Save and reboot
Key configuration settings:
[mesh]
enabled=true
signing_key="your-shared-aes128-key"
[mesh.relay]
enabled=true
No network server configuration needed - relay only forwards packets between LoRa interfaces.
WM1302 HAT Setup
The Seeed WM1302 connects via mini-PCIe interface and 40-pin header. ChirpStack Gateway OS includes automatic detection and configuration for this concentrator.
Hardware connection:
- WM1302 module plugs into mini-PCIe slot on Pi HAT
- Pi HAT connects to Raspberry Pi Zero W 40-pin GPIO header
- Power via micro USB (Raspberry Pi Zero W standard port)
- GPS antenna connects to U.FL connector on WM1302 (optional)
- LoRa antenna connects to U.FL connector on WM1302 (required)
Antenna selection:
- Stock antenna (usually 3dBi) works for testing
- Upgrade to 5-6dBi for better range
- Keep antenna away from metal enclosures (reduces performance)
- External antenna with extension cable for optimal mounting
Field Deployment Strategy
Backpack portability: Gateway fits in standard backpack with battery pack. Total weight: ~300-500g depending on battery size. Hike to elevated positions, clear areas, or specific coverage gaps for testing.
Temporary mounting:
- Velcro straps to trees, poles, existing infrastructure
- Magnetic mounts for metal structures
- Zip ties for utility poles (check local regulations)
- Weighted base for ground deployment
Weather protection: Raspberry Pi Zero + WM1302 need weatherproof enclosure for outdoor deployment. Options:
- IP65-rated plastic boxes (readily available, cheap)
- Waterproof dry bags (flexible, lightweight)
- 3D-printed custom enclosures with cable glands
- Ensure antenna connection weatherproofing
Positioning tips:
- Height matters more than power: 2-3m elevation gain significantly improves range
- Line-of-sight to border gateway (or next relay) crucial
- Avoid dense foliage (attenuates LoRa signals)
- Test coverage before permanent installation
Use Cases
Range Testing
Deploy relay gateway at increasing distances from border gateway. Measure packet success rate, RSSI, SNR at each position. Identify maximum reliable range for relay-to-border gateway links.
Testing procedure:
- Start at border gateway location
- Move relay gateway 1km increments
- Send test packets from end-device
- Log packet reception at border gateway
- Record RSSI/SNR values
- Map coverage boundaries
Event Coverage
Temporary network for outdoor events, festivals, construction sites. Deploy relay gateways to extend coverage from permanent border gateway installation.
Example: music festival:
- Border gateway: main venue building (internet connection)
- Relay gateway 1: backstage area (100m from border)
- Relay gateway 2: parking lot (500m from border)
- Coverage: entire festival grounds without running cables
Remote Monitoring
Agricultural fields, environmental monitoring, wildlife tracking. Deploy relay gateway powered by battery or small solar panel in location without infrastructure.
Power extension:
- Add 5-10W solar panel + charge controller
- Continuous operation in sunny climates
- Battery bank handles nights and cloudy periods
- Total cost: $30-50 for solar extension
Coverage Gap Filling
Urban deployments with dead zones (underground parking, dense buildings). Temporarily deploy relay gateway to test if permanent installation justified.
Decision making:
- 3-4 day battery test proves coverage improvement
- Collect packet success statistics
- If successful: install permanent relay with PoE or solar
- If marginal: try different mounting location
Performance Characteristics
Range expectations:
- Relay to border gateway: 5-15km rural, 2-5km urban (SF12)
- End-device to relay: Similar to standard gateway ranges
- Multi-hop capable: Up to 8 hops total (including this relay)
Latency impact:
- Each relay hop adds ~1-2 seconds (LoRa air time)
- Acceptable for most sensor applications
- Not suitable for real-time control applications
Packet overhead:
- Mesh protocol adds 14 bytes per uplink packet
- Consider LoRaWAN payload size limits
- SF12 has smaller max payload than SF7
Capacity: Single relay gateway handles hundreds of devices. Actual limit depends on:
- Device transmission frequency
- Spreading factors used
- Duty cycle regulations (1% EU868)
- Number of simultaneous transmissions
Limitations and Considerations
Not a permanent solution: Battery operation is temporary by nature. For permanent relay deployments, add:
- Solar panel + charge controller + larger battery
- PoE if Ethernet available
- AC power with UPS backup
Weather vulnerability: Raspberry Pi Zero is not weatherproof. Requires external enclosure. Exposed connectors (USB power, antenna) need protection from water ingress.
No remote management: Unlike border gateways, relays have no internet connection. Configuration changes require physical access or temporary WiFi connection.
Limited processing power: Raspberry Pi Zero W has single-core 1GHz CPU. Sufficient for relay function, but don't expect heavy processing. Relay firmware handles packet forwarding efficiently.
RF interference: Raspberry Pi generates some RF noise. Keep concentrator module as far from Pi as possible (Pi HAT form factor helps). Use shielded antenna cables for long runs.
Building Multiple Relay Gateways
Batch assembly tips:
- Pre-flash identical SD cards (clone working configuration)
- Label each gateway with unique identifier
- Document mesh signing keys
- Create portable test kit: battery pack, antenna, short cables
Cost per unit:
- Raspberry Pi Zero W: $15
- Seeed WM1302 HAT: $40-60 (depending on frequency band)
- Antenna: $5-15
- microSD card: $5-10
- Total: $65-90 per relay gateway
Compare to commercial relay gateways: $200-500 per unit. DIY approach saves significantly for multi-gateway deployments.
Scaling deployment:
- Use same mesh signing key across all gateways
- Unique gateway IDs for tracking
- Standardized enclosures simplify field deployment
- Document tested mounting locations
What We Provide
Services:
- Portable relay gateway design and assembly guidance
- ChirpStack Gateway OS configuration for relay mode
- Field deployment planning and positioning strategy
- Coverage testing methodology
- Battery sizing and power consumption analysis
- Weatherproof enclosure recommendations
- Integration with existing border gateway infrastructure
You own everything:
- Complete system build documentation
- Configuration files and scripts
- Field testing data and coverage maps
- No recurring fees or subscriptions
Hardware (you source):
- Raspberry Pi Zero W
- Seeed WM1302 LoRaWAN Gateway Module (Pi HAT)
- Battery packs and power accessories
- Weatherproof enclosures
- Antennas and mounting hardware
We don't sell hardware. We specify what you need, help you build it, and configure ChirpStack Gateway OS to create reliable portable mesh relay gateways.
Portable vs Permanent Relay Gateways
Portable advantages:
- Test coverage before permanent installation investment
- Flexible positioning during optimization phase
- Temporary events and short-term projects
- Lower initial cost (no solar/mounting infrastructure)
When to upgrade to permanent:
- Proven coverage benefit over 3-4 day test period
- Consistent packet success rate improvement
- Location suitable for solar panel or PoE installation
- Long-term deployment justified by application
Permanent relay requirements:
- Solar panel: 20-30W + charge controller + 50-100Ah battery
- Or PoE if Ethernet available (rare for relay locations)
- Weatherproof enclosure: IP65+ rated
- Secure mounting: pole mount, wall bracket, dedicated mast
- Lightning protection for elevated installations
Portable relay gateway proves the concept. Permanent relay deployment scales the solution.
Ready to Get Started?
Get expert guidance on implementing LoRaWAN solutions for your organization.
Contact Us