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
-
💬 learning cube for arduino
OpenHardware.io • 16 Mar 2019, 12:41 • openhardware.io 16 Mar 2019, 14:32 -
[SOLVED] Multiple devices demonstrating erratic behavior
Troubleshooting • 3 Jan 2015, 21:57 • thermistor1 4 Jan 2015, 20:52 -
💬 ESP-LINK ESP8266 WeMos D1 Mini Adapter Board
OpenHardware.io • 7 Nov 2016, 17:03 • openhardware.io 9 Feb 2017, 04:56 -
💬 MDMSNode "Lighting" Rev 1.1
OpenHardware.io • 27 Jul 2017, 06:45 • openhardware.io 30 Nov 2018, 11:56 -
Sample Door SW does not compile !
Troubleshooting • 4 Jan 2015, 16:38 • IOS_IOT 5 Jan 2015, 21:38 -
💬 MySensors Watermeter
OpenHardware.io • 16 Oct 2019, 12:17 • openhardware.io 16 Oct 2019, 12:17 -
Serial Gateway cannot retrieve serial messages when gw.beginn() is invoked (RESOLVED)
Troubleshooting • 24 Feb 2015, 10:39 • SparkAndHale 24 Feb 2015, 16:02 -
Gateway for Pachube Or Mysql Database
Feature Requests • 11 Jul 2014, 13:23 • legeantvert 29 Aug 2014, 14:24