pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
334 stars 375 forks source link

Nanogateway unhandled exception tmst keyerror #102

Open stankusaudrius opened 5 years ago

stankusaudrius commented 5 years ago

(Hi! 👋 Thanks for reporting an issue! Please make sure you click the link above to view the issue guidelines, then fill out the blanks below.)

What are the steps to reproduce this issue?

  1. Configure, upload and run nanogateway example.

What happens?

Gateway works for around one to several hours and crashes with unhandled exception in callback handler.

[ 5932.422] Sent downlink packet scheduled on 1624.555, at 868.099 Mhz using SF7BW125: b'`\x1b\x14f\x06\x80\xea\x00\x00E\x8a[!\xaa\xc6P\x1b\xbe\x00\xa6V\xd8\t\xcf\xe8\xeax\xb2e(l' [ 5944.167] Received packet: {"rxpk": [{"data": "QBsUZgYAVQABCIgTPIM4cpAA3gnK0jXib7IU", "time": "2019-05-16T12:35:05.679608Z", "chan": 0, "tmst": 1636276499, "stat": 1, "modu": "LORA", "lsnr": 7.0, "rssi": -27, "rfch": 0, "codr": "4/5", "freq": 868.1, "datr": "SF7BW125", "size": 27}]} [ 5944.190] Push ack [ 5944.509] Pull rsp [ 5945.323] Pull rsp [ 5945.328] Sent downlink packet scheduled on 1558010101.318, at 868.099 Mhz using SF12BW125: b'\xe0v\xaa"\x02' [ 5948.318] Pull ack Unhandled exception in callback handler Traceback (most recent call last): File "nanogateway.py", line 413, in KeyError: tmst

What were you expecting to happen?

Gateway should keep running

Any logs, error output, etc?

(If it’s long, please paste to https://gist.github.com and insert the link here)

Any other comments?

Hello, this keeps happening and I have no idea why. Can anyone help me to find a reason and to fix it?

I tried adding except KeyError as ex: self._log('KeyError Exception: {}', ex)
but it doesn't help or I did something wrong.

What versions of software are you using?

nodename='FiPy', release='1.18.2.r3', version='v1.8.6-849-86b2375 on 2019-03-15', machine='FiPy with ESP32', lorawan='1.0.2'

fipy_tmst_error

oscardavidtorres1994 commented 3 years ago

Sorry, Could you fix the error?