The gateway mqtt restarts when the node is absent
-
Hello,
I have a malfunction on an MQTT ethernet gateway.
When I publish from the controller to activate a relay type node, if the node is not powered on, the gateway restarts.
Below the gateway trace :
0;255;3;0;9;Message arrived on topic: mhs4-in0/205/1/1/0/2
0;255;3;0;9;!TSF:MSG:SEND,0-0-205-205,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:1
0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
0;255;3;0;9;TSM:INIT
0;255;3;0;9;TSF:WUR:MS=0
0;255;3;0;9;TSM:INIT:TSP OK
0;255;3;0;9;TSM:INIT:GW MODE
0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
0;255;3;0;9;MCO:REG:NOT NEEDEDIf the node is powered on, the gateway does not rebel and the message is sent to the node.
Is there an explanation? a fix?
Thank you.
-
@miclane said in The gateway mqtt restarts when the node is absent:
Is there an explanation? a fix?
what is the hardware for the gateway ?
-
Arduino UNO R3 + Ethernet shield W5100 + NRF24L01+
Thank you.
-
In case your' using Arduino IDE:
What verion of the board definition are you using? (see board manager). Try a rather new one or one <=1.6.11, if that doesn't help.
-
maybe your power supply is not able to provide enough current ? How you power it ? Do you use NRF24L01 with amplifier ? If yes than connecting nrf to 3.3v rail from the arduino mey be not a good idea, it can provide maximum of 150mA.
-
Arduino IDE : 1.8.2
API MySensors : 2. 1. 1I rephrase my question:
When the remote node is powered on, the gateway receives the MQTT message and transmits it to the node. It's OK.
When the remote node is not powered on, the gateway receives the message MQTT but reboots immediately.
It would seem that the remote node not powered up disturbs the gateway.Thank you.
-
Yeah, and what seems to be is almost never what it actually is
-
Oh, and my suspicion is that the gateway send much more packets when node is not responding which make it consume more power and this couses the voltage to drop and restarts the gateway.
-
@rozpruwacz said in The gateway mqtt restarts when the node is absent:
Oh, and my suspicion is that the gateway send much more packets when node is not responding which make it consume more power and this couses the voltage to drop and restarts the gateway.
This sounds also logic to me.
Wrt. to the Point Board-Def:
1.8.2 is the IDE Version, but not the relevant Board Def. version. As already mentionned, to get this info you have to look inside the board manager (should be in tools menue).
-
Maybe that's the explanation ...
My gateway is mains powered with 9V and 500mA power.Nobody found this problem?
It is true that a node relay type should normally be always powered if you want to control ...
I will see if I can test with a more powerful diet.
Thank you.
-
Board def :
BN: Carte inconnue
VID: 1A86
PID: 7523
SN: Envoyez un croquis pour l'obtenir
-
@miclane said in The gateway mqtt restarts when the node is absent:
Board def :
BN: Carte inconnue
VID: 1A86
PID: 7523
SN: Envoyez un croquis pour l'obtenirThis is also not what I ment. Please click "Tools > Board > Board Manager" and then look for the Uno (or whatever you have chosen as target for compiling). Pictures you may find here: https://learn.sparkfun.com/pages/CustomBoardsArduino
-
Arduino AVR Boards Built-In by Arduino version 1.6.18
-
@miclane ![alt text]( image url)
-
Arduino/Genuino Uno
-
The 2.2.0-rc.1 version in development seems to solve the problem.
See also the message : https://forum.mysensors.org/topic/6684/serial-gateway-restarting/30
Can you explain the change in the new version?
Thank you.
-
I had the gateway reboot problem since 2.1.1. After initial startup, the gateway would keep rebooting after receiving messages from nodes. After a while it seems to stabilize.
I tried 2.2.0-rc.1 as you suggested and I don't see that problem any more. Thank you!