Repository navigation
Tutorial LoRaWAN
What it is. LoRaWAN is the low-power wide-area network standard used for IoT devices such as meters, trackers and agricultural sensors. Devices send short frames to gateways. OnAir shows the clear headers that every gateway in range receives: device address, frame counter, message type and so on. The payload is encrypted and stays that way.
Read this first. Receive only. Only the clear headers are shown. Payloads are encrypted with keys you do not have, and OnAir makes no attempt to read them. The devices belong to other people and companies; do not publish device identifiers. Check your local rules. See Legal and Privacy.
- A radio at 2 Msps or more. The mode works from 1 Msps, and an RTL-SDR can listen to the three default EU868 channels (868.1, 868.3, 868.5 MHz) if it runs at a wide enough rate. The tuning range is 400 to 2500 MHz.
- An 868 or 915 MHz antenna.
- Frequencies from the database: EU868 868.1, 868.3, 868.5 MHz and the RX2 channel 869.525 MHz; US915 902.3 MHz (channel 0, upstream 902.3 to 914.9 MHz in 200 kHz steps) and 903.9 MHz (sub-band 2, TTN); AU915 915.2 MHz; AS923 923.2 MHz; IN865 865.0625 MHz; KR920 922.1 MHz; EU433 433.175 MHz. The mode starts on 868.1 MHz.
The decoder runs one demodulator per channel and spreading factor (SF7 to SF12), so it uses much more CPU than other modes. The EU868 plan listens to 868.1, 868.3 and 868.5 MHz, and to 867.1 to 867.9 MHz when the capture is wide enough. Keep the gain moderate.
- In the mode list open IoT & sensors and choose IoT, 868.1 MHz.
- Pick your radio and start the receiver. A rate near 2 Msps covers the three default channels.
- Open Settings and choose the Band plan for your region (check the list in the panel: it includes a US plan and an ANZ plan).
- Watch Devices and Frames.
Devices appear as DevAddr (or DevEUI for join requests) with the network taken from the NetID, last-heard time, level, SNR, frame counter and spreading factor. The frame log has one row per frame.
- Devices: DevAddr / DevEUI, Network, Vendor / JoinEUI, Heard, Last, Level dBFS, SNR, FCnt, SF, Missed (frames missed by counter gaps).
- Frames: Time, MHz, SF, SNR dB, Type (uplink, downlink, join request), DevAddr / DevEUI, FCtrl, FCnt, Port, MAC commands, encrypted length and MIC. Hover a row to see the frame's bytes in hex.
- A small status line counts uplinks, downlinks and join requests.
- Filter by network, message type or device. all networks shows everything.
- join-only devices: also list devices heard only by their join requests (by DevEUI). After joining they use a DevAddr that the network assigns, which cannot be linked to the DevEUI without the network's keys.
- Clear empties the lists.
- No frames. LoRaWAN traffic is sparse. Check the plan matches your region and that gateways are near. Use a good antenna.
- Only a few frames per hour. Normal for sensors.
- CPU is high. Reduce the sample rate or use fewer channels.
- Device names are unknown. The network keeps names in its server; only the header is public.
- Payload shows as encrypted length. Always; payloads are encrypted with the network and application keys.
A gateway-side view: you see uplinks well and downlinks only when a gateway is close.
Never try to decrypt or join networks. Do not publish device addresses of networks you do not own.
LoRa modulation with sync word 0x34, SF7 to SF12 at 125 kHz (EU868). Frame layout from the LoRa Alliance LoRaWAN specification and regional parameters (RP002): MHDR, DevAddr, FCtrl, FCnt, FOpts, FPort, encrypted payload, MIC.
Mode-LoRaWAN, Tutorial-LoRa-raw, Tutorial-Meshtastic, Tutorial-ISM-sensors, Modes, Main-window, Supported-radios, Troubleshooting, FAQ, Legal.
Getting started
Using OnAir
Tools and guides (0.2.7)
- Band survey
- Message database
- Watchlists
- TV recorder
- Time machine
- Pass scheduler
- Plugin SDK
- Headless server
- All guides
Radios
Modes by group
- TV
- Broadcast radio
- Aviation
- Maritime
- Satellite & navigation
- Two-way radio
- Cellular & rail
- Pagers
- IoT & sensors
- Weather & science
- Amateur: digital
- Amateur: voice & packet
- HF utility
- General & tools
Tutorials
- DVB-T2 TV with a HackRF
- FM radio with RDS
- Aircraft with ADS-B and the map
- Ships with AIS
- DAB+ digital radio
- Weather satellite images
- HF digital: FT8 and WSPR
- Digital voice: DMR, D-STAR, P25
- Pagers: POCSAG and FLEX
- Time stations and the clock
- Record IQ, then the Signal workbench
- The signal sample library
- Control a rig with Hamlib
- Two receivers and the multi-decoder
Reference
Help
Legal and privacy
More