What LoRaWAN is
LoRaWAN is a low power, long range radio network. Meters send small messages to gateways, which pass them to a network server and on to the application platform. It suits battery powered meters that only need to send a few readings a day.
How LoRaWAN works
- The meter has a LoRaWAN radio and sends a message at set intervals.
- Any gateway in range can hear it and forward it. The meter does not belong to one gateway.
- The meter must join the network using its keys, and the keys must match the ones on the network server.
- The network server forwards the message to the application platform, where a decoder turns it into readings.
- Coverage depends on the gateways, so building structure and gateway position matter.
For the full detail, read Understanding LoRaWAN for Smart Metering.
A typical building
LoRaWAN heat meters with a LoRa module and LoRaWAN water meters on each floor send their readings by radio to a gateway in a communal area. The gateway passes them on by broadband with a fixed IP address, or by 4G, to the Sycous billing and reporting system. Sycous carry out an on site RF signal survey to check the connection strength from the meter locations to the gateway position, and strongly recommend one so that the metering and IoT network is robust and reliable.
A typical LoRaWAN installation: LoRa meters on each floor, a gateway in the communal area and the connection to the Sycous billing and reporting system.
Two layers of security
LoRaWAN data is encrypted from the meter to the application, using two session keys. The keys are provided by the manufacturer of the devices, and only to the purchasing party. A key problem can look like a radio problem, so it is worth knowing what each key covers.
LoRaWAN security: the network session key covers devices to gateways and the application session key covers the whole route to the application.
| Key | What it protects | Why it matters when diagnosing |
|---|---|---|
| Network session key | The data from the devices to the gateways. | A gateway that is not part of the system cannot read the data from the devices without the matching key. |
| Application session key | The data from the network to the application server. | You can only read the data in your application if you have the correct application key. If one site is shared by two companies, neither can see the other data. |
Mabdeck is used to decrypt the data from the meters, send commands to them and show readings and connections.
Where issues usually lie
| Where the problem is | What is typically wrong | Where to read more |
|---|---|---|
| The meter | Has not joined the network, keys do not match, battery flat. | Sections 2 and 3 |
| The radio link | No gateway coverage, or a weak signal because of the building or the meter position. | Section 3 and Improving Poor Radio Signal at a Site |
| The gateway and its connection | Gateway offline, SIM or mobile signal failure. | Section 1 |
| Decoding | The message arrives but the decoder cannot read it, so no readings appear. | Section 4 |
Diagnosis and quick approaches
Use this guide when a LoRaWAN meter has stopped reporting, never reported, or is reporting badly. Work through the sections in order. Each one starts from a symptom and takes you to the most likely cause. For background on the terms, read Understanding LoRaWAN for Smart Metering.
Not sure which guide you need? Start at Meters Not Reading or Poor Signal: Where to Start.
Before you start: collect the facts
- Meter serial number and DevEUI.
- The time of the last message received, and how often the meter should report.
- Whether one meter, several meters or every meter on the site is affected.
- The RSSI, SNR, spreading factor and gateway shown on the last few messages.
- Whether anything changed: a battery swap, a firmware update, a new gateway, a SIM or network change or building works.
Good to know: One meter offline is usually a meter or location problem. Many meters offline at the same time is almost always a gateway, backhaul or platform problem, so check that first.
1. Every meter on the site has stopped reporting
Check the gateway is online on the network server or application server.
Check the SIM card fitted in the gateway.
Check the mobile signal where the gateway is mounted.
Check whether an Ethernet cable is also fitted.
Warning: Check the mobile network the SIM uses is still live in that area. Equipment that can only use 2G or 3G stops working when those networks are switched off and needs a 4G capable unit.
2. A new meter will not join the network
Look in the network server logs for join requests.
Move closer to a gateway or into the open to test.
Check the battery.
Wait and watch.
3. The meter reports, but with gaps
Check the spreading factor.
Check the meter antenna.
Check for new obstructions
Check the battery level if the platform reports it.
| What the platform shows | What it usually means |
|---|---|
| RSSI weaker than minus 120 dBm or SNR below minus 10 dB | Marginal link. Expect gaps. Improve the antenna position or add a gateway. |
| Spreading factor stuck at SF12 | The meter has no margin. Any extra attenuation will cause missed readings. |
| Frame counter jumps forward | Messages are being missed between the ones that arrive. |
| Frame counter goes backwards or resets to zero | The meter was reset, the battery was changed on an ABP device, or the platform lost its counter. Rejoin or reset the counter as the platform requires. |
| Join requests with MIC or DevNonce errors | The keys do not match, or the meter has repeated a join number. Check the keys first. |
4. The meter reports but the readings look wrong or are missing
Compare the raw payload with the decoded values.
Check the reading against the meter display.
For practical fixes to weak signal, see Improving Poor Radio Signal at a Site.
5. When to call for support
Call for support if the gateway is online, the meter has good signal on the network server, the keys match and the meter still does not report. At that point you need the meter manufacturer logs or a firmware check.
Frequently asked questions
Why has my LoRaWAN meter stopped sending data?
The most common causes are a gateway or its internet connection going offline, a flat battery, a change in the building that blocks the signal, wrong keys after a change on the platform, and a decoder that no longer matches the meter.
How do I know if the problem is the gateway or the meter?
Check whether other meters near the same gateway are still reporting. If they are, the gateway is fine and the fault is with the meter or its location. If none are, check the gateway and its connection.
What does join failed mean?
The meter sent a join request but the network did not accept it, or the meter never heard the reply. Check the keys, the region setting and the signal strength in that order.
What does a frame counter error mean?
The network server received a message with a lower counter than expected and rejected it. It usually follows a meter reset or a battery change on a device using ABP.
What signal strength do I need?
As a rough guide an RSSI stronger than minus 110 dBm with an SNR above zero is healthy. Weaker than minus 120 dBm is poor for most meters.
Need a hand on site? Contact Product and Data Support at pds_support@sycous.com and have the details from the checklist above ready.