Sensor doesn´t reconnect after connecting lost!?
-
@mfalkvidd
now i´ve clears the EEPROM, and completely removed the part from sketch, with writing anything to EEPROM.still the same issue.
i´m thinking about to rase the counter of fails in row, till connecting will be reinitialized.
Sure, this is not the best way to do, but till i have no other clue, the best workaround for keeping it working.Or any more other ideas? ;)
-
btw,
i downloaded the new library folder from github repo, thinking maybe there are some changes with this issue.Now i see, the whole MySensor function is changed, and i have to edit my sketches for the new way!?
before update, i have to do this:
MySensor gw;and now, this part is complete removed, am I right??
is there any announcement for this changes? didn´t find anything about these changes.
-
There is no announcement because it has not been released yet :)
The default branch on github is the development (non-stable, non-released) version. It is assumed that developers use github and regular users use the download links in the official documentation (which points to the released version). -
@hek said:
Yes, 5 failed sends in a row that triggers it.
https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/core/MyTransport.h#L27oh, ok, I understand :)
...the link above refers to the beta, and i was wondering, why my library contains something else than this... so i just wait, thanks ;)...but any other idea for the real topic issue? ;)
-
Hi!
still have no solution for the topic-problem. :disappointed:i tested both, the stable v1.5 mySensors and the beta v2.0.
Both are working till connection is lost, then both version doesn´t reconnect. Same behavior again.
i didn´t think it is because of some hardware issue, because it works, till connection is lost.
also my code is reduced to the minimum, for testing this option, but same issue again.so there must be a problem with the "find parent" function.
it looks like, when connection is lost and 5 send commands in line has been failed, the "find parent" is calling, but for some reason, the node sketch crashes.the last serial monitor output from node is this:
find parent send: 48-48-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:...and I got this only for one time, then nothing happens anymore, also my usual sketch operations doesn´t operate anymore and didn't make serial outputs.
Is there nothing more i can do?? how does the reconnect is working normally?
-
Hi!
still have no solution for the topic-problem. :disappointed:i tested both, the stable v1.5 mySensors and the beta v2.0.
Both are working till connection is lost, then both version doesn´t reconnect. Same behavior again.
i didn´t think it is because of some hardware issue, because it works, till connection is lost.
also my code is reduced to the minimum, for testing this option, but same issue again.so there must be a problem with the "find parent" function.
it looks like, when connection is lost and 5 send commands in line has been failed, the "find parent" is calling, but for some reason, the node sketch crashes.the last serial monitor output from node is this:
find parent send: 48-48-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:...and I got this only for one time, then nothing happens anymore, also my usual sketch operations doesn´t operate anymore and didn't make serial outputs.
Is there nothing more i can do?? how does the reconnect is working normally?
@vga
I'm having a similar problem, my battery powered motion sensors do not reconnect after going out of range, or when the controller is restarted. Restarting the sensor will allow it to reconnect to the controller.My mains powered motion sensors will reconnect automatically after the controller is restarted (I haven't tried taking them out of range whilst powered up). One battery powered motion sensor that is connected through a repeater node will stay connected/reconnect after the controller is restarted.
I've cleared eeprom using the sketch on https://www.mysensors.org/build/debug, for the controller and all nodes.
I've tried with and without a capacitor on the radios.
I've started with the 1.5 API and also the new 2.0 API.
The battery powered nodes are all running a Sensebender Micro with 2 x 1.2v NiMH batteries, nRF24L01+ (from Itead), and a HC-SR501 PIR (running on the 3.3v input as on http://techgurka.blogspot.com.au/2013/05/cheap-pyroelectric-infrared-pir-motion.html).
My next ideas are to try normal 1.5v batteries, powering the PIR from 5v on a separate power supply, and Arduino mini pros instead of Sensebenders.
Regards,
Corbin -
Hi I have something similar, not sure if this is related to mysensors or the Agocontrol Home Automation.
My scenario; My Agocontrol crashed due to corrupted SD card on my RPI, due to power outtage.
I installed Agocontroll from scratch on a new SD card. copied most of my Agocontrol configuration files. (So I have now learned to use UPS for power backup)Then I plugged in my Zwave, Tellstick, Mysensors serial gateway (ver 1.5.4) and none of my sensors was accepted by the serial gateway.
I would assume that all sensors would be found and accepted? But instead I have to reset each Arduino Pro Mini on the sensors, and this is for both battery powered and for Arduino Nano that is powered from mains via 5V USB PS
-
@vga
I'm having a similar problem, my battery powered motion sensors do not reconnect after going out of range, or when the controller is restarted. Restarting the sensor will allow it to reconnect to the controller.My mains powered motion sensors will reconnect automatically after the controller is restarted (I haven't tried taking them out of range whilst powered up). One battery powered motion sensor that is connected through a repeater node will stay connected/reconnect after the controller is restarted.
I've cleared eeprom using the sketch on https://www.mysensors.org/build/debug, for the controller and all nodes.
I've tried with and without a capacitor on the radios.
I've started with the 1.5 API and also the new 2.0 API.
The battery powered nodes are all running a Sensebender Micro with 2 x 1.2v NiMH batteries, nRF24L01+ (from Itead), and a HC-SR501 PIR (running on the 3.3v input as on http://techgurka.blogspot.com.au/2013/05/cheap-pyroelectric-infrared-pir-motion.html).
My next ideas are to try normal 1.5v batteries, powering the PIR from 5v on a separate power supply, and Arduino mini pros instead of Sensebenders.
Regards,
Corbin -
@corbin Can you provide debug logs (on 2.0.0) of both, GW and node, showing what you described?
@tekka well after making the post above, it has started working :)
Knowing that the Sensebenders operated perfectly as temp and humidity sensors with the sketch they were shipped with, I modified the Sensebender sketch (https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino) to include motion , and added "#define MY_PARENT_NODE_ID 0". Previously I had been using the default MySensors Motion Sensor sketch.
I'm hoping it keeps working, so far, so good!
-
@corbin Can you provide debug logs (on 2.0.0) of both, GW and node, showing what you described?
@tekka said:
@corbin Can you provide debug logs (on 2.0.0) of both, GW and node, showing what you described?
It's been running well except for 1 node, this is the serial output, could it be damaged hardware?
Stárting sensor (RNNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASÓÉGNID:OK (ID=3) TSM:FPAR TSP:MSG:SEND 3-3-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,ót=bc: TSP:MSG:REÁÄ 0-0-3 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAÒ REÓ (IÄ=0, äést=0) TSP:MSG:FPAR (PPAR FOUND) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:ÏK (ID=3) ÔSM:UPL TSÐ:PING:SÅND (dest=0) TSP:MSG:SEND 3-3-0-0 s=255,c=3,ô=24,pt=1,l=1,sg=0,ft=0,st=ok:1 ÔSP:MSG:READ 0-0-3 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:ÒEADY Óånsebender Micro FW 1.4 - Online! NODE:!REG TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,ft=0,st=ok:229 TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 TSP:MSG:SEND 3-3-0-0 s=255,c=0,ô=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0 TSP:MSG:SEND 3-3-0-0 s=255,ã=3,t=6,pt=1,l=1,sg=0,ft=0,st=ïk:0 TSP:MSG:READ 0-0-3 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 TSP:ÍSG:READ 0-0-3 s=255,c=3,t=6,pt=0,l=1,sg=0:M TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=11,pt=0,l=17,sg=0,æt=0,st=ok:Senseâender Micro TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.4 TSP:MSG:SEND 3-3-0-0 s=1,c=0,t=1,ðô=0,l=0,sg=0,æt=0,st=ok: TSP:MSG:SENÄ 3-3-0-0 s=199,c=0,t=13,pô=0,l=0,sg=0,ft=0,st=ok: Request regisôòation... TSP:MSG:SEND 3-3-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-3 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registòation=1 Init complete, id=3, parent=0, distancå=1, registration=1 TSP:MSG:SEND 3-3-0-0 s=1,c=1,t=16,pt=0,l=1,sg=0,ft=0,st=ok:0```