jpmeijers / ttn-resin-gateway-rpi

81 stars 41 forks source link

Not stable with Raspberry 3 ic880a #21

Closed tho-wa closed 6 years ago

tho-wa commented 6 years ago

I have a gateway running with Raspberry 3 ic880a. I works well for <1h and I receive all packets of my node (sending every 5 minutes, abp) But later, I have no more packets in the traffic view of gateway and in the application. If I reboot the Gatway, I receive the next packet from my node when its send and it works again for a while. I have no error messages in resin.io besides some random CRC failed packages. What should I check?

jpmeijers commented 6 years ago

The only stability issues that I have experienced were temperature related. I therefore enabled the Prometheus exporter so that I can monitor the metrics over time.

You can also try decreasing the SPI speed and see if that helps: SPI_SPEED optional - default 8000000 can be lowered to say 1000000.

tho-wa commented 6 years ago

I tried with SPI_SPEED 100000. Same behavior, after reboot some packets received then only CRC error and no more forwarded packets. Strange thing is it directly works after reboot, so guess not temperature.

tho-wa commented 6 years ago

Also If I only restart the application container it works for 30-60minutes and then I have the CRC failed packets again. Also lowering Raspberry CPU speed to 600mhz did not change the bevaiour.

tho-wa commented 6 years ago

I have now also replaced the power supply to original Raspberry PI 2,5A. No change. Still only CRC fail after 15-40minutes of runtime.

tho-wa commented 6 years ago

Today I could no more connect to the router:

04.09.18 12:09:44 (+0200) main 10:09:44 ERROR: [TTN] Connection to server “bridge.eu.thethings.network” failed, retry in 120 seconds 04.09.18 12:09:44 (+0200) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 0, total 120 04.09.18 12:09:54 (+0200) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 10, total 120 04.09.18 12:10:04 (+0200) main src/ttn_transport.c:371:ttn_connect(): ttn_connect: sleeping() at 20, total 1

I switched to “Router digitalcatapult-uk-router” in the Gateways settings. Besides the connection problem, now also my stability issue for weeks seems to be solved. Seems it was not iC880 related, connection to TTN handler have cause this problems after some runtime. Works now stable for whole day. CRCs maybe only environment noise.

tho-wa commented 6 years ago

Seems to be related to the backend.