How to check if serial gateway is operational ?
-
Hi,
I have implemented a serial gateway to Domoticz on a pro mini. Just used the code given in the example. Works well so far, but recently I noticed that the gateway seemed to got stuck. It did not react to messages from sensor nodes. A reset of the gateway was all to fix it.
Would be nice to have a means to get a notification in case that a gateway does not react anymore.
Any ideas how that could be accomplished ?
Josh
-
Hi!
I ask my gateway about it's version (0;0;3;0;2;). It will responde with the library version number (1.4.1 in my case).
It tells me that the gateway software is up and running. But it will not give me any clue about if the (NRF)network is working.
I only ask the gateway if no other packages are received in $timeout seconds.
/Magnus
-
When the gateway does not respond it should be noticed by the controller imho.
-
@fot said:
Hi!
I ask my gateway about it's version (0;0;3;0;2;). It will responde with the library version number (1.4.1 in my case).
It tells me that the gateway software is up and running. But it will not give me any clue about if the (NRF)network is working.
That's a problem, right.I only ask the gateway if no other packages are received in $timeout seconds.
/Magnus
Of course ! Thank you for pushing my nose on it. Sometimes you don't see the most obvious
Since my gateway is relatively close to the controller (Domoticz on a Raspi), I can do a hard reset of the gateway (via Raspi GPIO), which should resolve the issue.
Cheers
Josh
Suggested Topics
-
💬 Epi, tiny ATMega32U4 Arduino-compatible
OpenHardware.io • 8 Nov 2022, 19:08 • openhardware.io 8 Nov 2022, 19:08 -
My simple and minimalistic calculator with only two buttons
My Project • 26 Jul 2016, 08:26 • Volos Rakic 26 Jul 2016, 08:53 -
💬 Arduino Based Serial Controller For Welding Machine
OpenHardware.io • 27 Aug 2021, 07:05 • openhardware.io 27 Aug 2021, 07:05 -
Arduino Mini Pro 5v - how to power
Troubleshooting • 3 Sept 2014, 21:43 • ddluk 11 Sept 2014, 03:30 -
Assistance on sensor project
My Project • 29 Oct 2017, 15:31 • Sally Hayford 29 Oct 2017, 22:36 -
Are the atmega series programming principle the same
General Discussion • 19 Jul 2021, 07:59 • Tessie T 19 Jul 2021, 22:58 -
💬 ESP WaterMeter
OpenHardware.io • 4 Mar 2020, 08:21 • openhardware.io 4 Mar 2020, 08:21 -
Incorrect lighting of ws2811b led strips. Wemos D1 Arduino controlled
Hardware • 11 Jan 2020, 18:34 • Beeblebrox666 12 Jan 2020, 16:18