lora.stats() returns all zeros



  • I have a LoPy device joined to a Multitech Condiut Gateway. I'm able to send messages to the gateway.

    lora.stats() returns all zeros:

    >>> lora.stats()
    (rx_timestamp=0, rssi=0, snr=0.0, sfrx=0, sftx=0, tx_trials=0)
    >>> lora.has_joined()
    True
    >>> os.uname()
    (sysname='LoPy', nodename='LoPy', release='1.9.2.b2', version='v1.8.6-796-g489fafa0 on 2017-10-15', machine='LoPy with ESP32', lorawan='1.0.0')
    

    Statistics from the gateway

    {
       "code" : 200,
       "result" : {
          "stats_loraNodes" : [
             {
                "class" : "A",
                "devEui" : "70-b3-d5-49-96-4f-7b-0d",
                "dropped" : 0,
                "joined" : "2017-10-30 13:01:36",
                "nodeAddr" : "00:00:00:02",
                "pkts1st" : 28,
                "pkts2nd" : 0,
                "pktsDown" : 28,
                "pktsUp" : 5454,
                "rssiAvg" : -84,
                "rssiMax" : -18,
                "rssiMin" : -120,
                "seqNum" : 50,
                "snrAvg" : 5.2000000000000002,
                "snrMax" : 11.5,
                "snrMin" : -8.5
             }
          ]
       },
       "status" : "success"
    }
    

    Do I need to do something to get statistics from the LoRa radio?

    Thank you.



  • @jmarcelino Ah....thank you. I was only transmitting.



  • @agallo
    You need to receive a packet - using lora.recv(...), also called a downlink - first in order to get stats


 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter