Gateway statistics not showing


#1

I am not seeing statistics for the gateways, but they are receiving data from devices and forwarding it to my application.

Anything I am missing?


Stats of gateway using 3G backhaul dont appear
#2

The first thing to check would be if your gateway is actually sending stats :slight_smile: This is configured through:

If you have a Tektelic Pico gateway: there was an issue with the stats which is solved in the latest firmware update.


#3

Confirmed, the stat_interval is set to 20 in my config.


#4

@Bocajim,
you should verify that your packet forwarder has the protocol version 2. The protocol verstion 1 of the packet forwarder doesn’t send the stats.
You can look at the lora-gateway-bridge output: whenerver it receives data from the packet forwarder it dump the protocol version.


#5

What gateway are you using (vendor / model)?


#6

@lorenzo75 That looks to be the issue.

I have 4 gateways, 2 MultiTech Conduit mLinux units, and both appear to have v1 of the protocol packet forwarder. I also have 2 MultiTech LoRa AP units and they are sending V2 of the protocol (and the gateway statistics are working).

So now I just need to figure out how to upgrade the Conduits.

Thanks,
jim


#7

My suggestion is to try to connect to the vendor site and look if there is a newer version already built for your devices.


#8

If you follow these steps and install these packages (lora-packet-forwarder or lora-packet-forwarder-usb), you should see stats :slight_smile:


#9

@Bocajim did updating your conduits help you? Mine are running mLinux 3.3.22 and lora-packet-forwarder-usb 1.4.1-r11 (the latest for both) and I’m still not getting gateway stats. Thoughts?


#10

Dear Mr. Brocaar,
I have one gateway in a remote site using 3G as backhaul and this gateway stats are not visible on the Lora-App-Server web interface, even if the gateway is perfectly functional.

This gateway on 3G does not have the lora-gateway-bridge installed on the gateway, only Semtech packet forwarder.

It’s not a big deal but it is a bit strange, particularly taking into account that I have 5 other gateways of the same brand and configuration, using Ethernet as backhaul, and those gateways stats are visible.

Any clues of the reason for such “problem” ?
Thanks in advance,
Lucas


#11

You should check first if the gateway is sending stats at all (e.g. using tcpdump). Test this from your gateway and at the receiving side. If your gateway is not sending any stats. I don’t think this is 3G related.


#12

Hi all,
I am having the same problem with a Multitech Conduit ABP gateway. I’ve tried everything, even updating the packet forwarder, but nothing seems to work. I’ve tested with tcpdump in both sides, the gateway and the LoraServer, and I can confirm that I am receiving a stats packet.
The packet forwarder says this:

##### 2019-02-20 11:30:57 GMT #####
### [UPSTREAM] ### 
# RF packets received by concentrator: 4
# CRC_OK: 50.00%, CRC_FAIL: 50.00%, NO_CRC: 0.00%
# RF packets forwarded: 2 (140 bytes)
# PUSH_DATA datagrams sent: 3 (806 bytes)
# PUSH_DATA acknowledged: 0.00%
### [DOWNSTREAM] ###
# PULL_DATA sent: 3 (100.00% acknowledged)
# PULL_RESP(onse) datagrams received: 0 (0 bytes)
# RF packets sent to concentrator: 0 (0 bytes)
# TX errors: 0
# BEACON queued: 0
# BEACON sent so far: 0
# BEACON rejected: 0
### [JIT] ###
# SX1301 time (PPS): 271655707
src/jitqueue.c:448:jit_print_queue(): INFO: [jit] queue is empty
### [GPS] ###
# Valid time reference (age: 3 sec)
# GPS coordinates: latitude 45.00683, longitude 0.16662, altitude 81 m
##### END #####

JSON up: {"stat":{"time":"2019-02-20 11:30:57 GMT","lati":45.00683,"long":0.16662,"alti":81,"rxnb":4,"rxok":2,"rxfw":2,"ackr":0.0,"dwnb":0,"txnb":0}}
lgw_receive:1155: FIFO content: 1 4b 1 7 4b
lgw_receive:1174: [1 17]

And indeed, the gps coordinates and altitude are being correctly received and shown on the LoraServer, but the rx packets graphics are plain.

Any ideas of what can be happening?


#14

Hi,
I finally found the problem with the statistics not being stored!
I’ll write it here just in case somebody has te same problem. The thing was that one of the multiple gateways on my network didn’t have access to NTP time nor GPS time and therefore, the time and date were wrong. Apparently, loraserver discards the packets with wrong timestamp without complaining on the logs :rage:
Anyway, the temporary solution was to set the time manually. Now it works like a charm.
Kind regards,
Adrián.


#15

Using the timestamp for aggregating the stats is more likely :wink: