Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. Multiple sensor node freeze

Multiple sensor node freeze

Scheduled Pinned Locked Moved Bug Reports
15 Posts 5 Posters 5.4k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mihai
    wrote on last edited by
    #3

    I have added a capacitor to the power supply - 1000uF, still blocking, then change the Arduino Nano and reduce the messages number and now it seems to work, only few continuous hours testing.

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #4

      Adding a delay between sends has helped several people so your re-arranging is probably a good idea.

      What does the serial debug log on the sensor and the gateway say when things fail?

      Have you seen the troubleshooting tips at http://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help ?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mihai
        wrote on last edited by
        #5

        It's strange, but activate the debug option the freezing just go off, but the debug should be off during the "commercial" usage. I have checked most of advice's and more than that I already add capacitors to the NFR24 (100uF + 100nF) and also to relay shield (100uF) and Arduino Nano (100uF +220nF) even if they are not explicitly requested, but I was thinking they may help.
        My problem may be related to the power supply and also to the Arduino Nano, may be also the message re-arrangement helps also.
        After some testing time I plan to publish my project (most of code is always published on GitHub and links available on MySensors and HomeAssistant).
        Thank you for advice's, any help is always very welcome!

        1 Reply Last reply
        1
        • M Offline
          M Offline
          Mihai
          wrote on last edited by
          #6

          I succeed to retrieve the error message!
          Setup: MQTT gateway connected via Ethernet to the broker, only one node in the same MySensors network (development), HomeAssistant, switching very aggressive a group of 4 switches, in my sketch each message is sent three times with wait() between them.
          The last few messages are:

          read: 0-0-10 s=4,c=1,t=2,pt=0,l=3,sg=0:OFF
          send: 10-10-0-0 s=4,c=1,t=2,pt=0,l=3,sg=0,st=fail:OFF
          send: 10-10-0-0 s=4,c=1,t=2,pt=0,l=3,sg=0,st=ok:OFF
          read: 0-0-10 s=9,c=1,t=2,pt=0,l=3,sg=0:OFF
          send: 10-10-0-0 s=9,c=1,t=2,pt=0,l=3,sg=0,st=fail:OFF
          send: 10-10-0-0 s=9,c=1,t=2,pt=0,l=3,sg=0,st=ok:OFF
          read: 0-0-10 s=1,c=1,t=2,pt=0,l=2,sg=0:ON
          send: 10-10-0-0 s=1,c=1,t=2,pt=0,l=2,sg=0,st=fail:ON
          send: 10-10-0-0 s=1,c=1,t=2,pt=0,l=2,sg=0,st=ok:ON
          read: 0-0-10 s=2,c=1,t=2,pt=0,l=2,sg=0:ON
          send: 10-10-0-0 s=2,c=1,t=2��J*���+�x00�=fail:ON
          send: 10-10-0-0 s=2,c=1,t=2,pt=0,l=2,sg=�+��	99rex00x00��0-10 s=4,c=1,t=2,pt=0,l=2,sg=0:ON
          setIK`}Starting repeater (RNNRA-, 2.0.0-beta)
          Radio init failed. Check wiring.
          

          The gateway and node was not moved at all. Resetting the node from the power (keep its position to check if the wires made some problem) the node come back alive. Shaking the node while change switches from interface less aggressive: the node continue to works fine.

          Sending again a lot of messaged by changing the switches it gives some errors from time to time, but it recover from them and continue to work:

          read: 0-0-10 s=4,c=1,t=2,pt=0,l=3,sg=0:OFF
          send: 10-10-0-0 s=4,c=1,t=2,pt=0,l=3,sg=0,st=fail:OFF
          send: 10-10-�0 s=4,c=1,t=2,pt=0,l=3,sg=0,st=ok:OFF
          read: 0-0-10 s=9,c=1,t=�Jx000,l=3,sg=0:OFF
          send: 10-10-0-0 s=9,,�|΢x00�x00x00x00�Y�x00�3�]x00�(Starting repeater (RNNRA-, 2.0.0-beta)
          Radio init successful.
          send: 10-10-0-0 s=255,c=3,t=15,pt=0,l=2,sg=0,st=ok:
          send: 10-10-0-0 s=255,c=0,t=18,pt=0,l=10,sg=0,st=ok:2.0.0-beta
          send: 10-10-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=fail:0
          read: 0-0-10 s=4,c=1,t=2,pt=0,l=2,sg=0:ON
          

          So from time to time, after a burst of messages, some messages have some errors and the node made a init of radio and some times it doesn't succeed to recover from there to start over, it blocks itself.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihai
            wrote on last edited by
            #7

            While monitor also the NRF25 power (from other source than Arduino itself) I see it get ~11-13mA while working and goes to zero when the node blocks.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mihai
              wrote on last edited by
              #8

              I have tested 4 switches/relays on the gateway and they work fine, no blocking during stress test (mostly group switch, like I did for node test).

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mihai
                wrote on last edited by Mihai
                #9

                I have checked the free memory of a node based on http://playground.arduino.cc/Code/AvailableMemory , the results are the following:
                While normal usage, low messages rate, the measurement is the following and it remains constant:

                freeMemory()=825
                

                After a burst of messages, the time when it doesn't block (I mention that because it blocks quite often while handling many messages) I got this:

                freeMemory()=2195
                

                Other measurement close to blocking point:

                freeMemory()=-28671
                freeMemory()=-27900
                freeMemory()=-27900
                freeMemory()=-27900
                freeMemory()=-27900
                freeMemory()=25761
                

                The problem could be related to variables that exceed their memory limits or loose free memory by fragment it and not able to recover.
                I observed once after some errors I got Radio init successful and the freeMemory get back its value of 825 in my case.

                parachutesjP 1 Reply Last reply
                0
                • M Mihai

                  I have checked the free memory of a node based on http://playground.arduino.cc/Code/AvailableMemory , the results are the following:
                  While normal usage, low messages rate, the measurement is the following and it remains constant:

                  freeMemory()=825
                  

                  After a burst of messages, the time when it doesn't block (I mention that because it blocks quite often while handling many messages) I got this:

                  freeMemory()=2195
                  

                  Other measurement close to blocking point:

                  freeMemory()=-28671
                  freeMemory()=-27900
                  freeMemory()=-27900
                  freeMemory()=-27900
                  freeMemory()=-27900
                  freeMemory()=25761
                  

                  The problem could be related to variables that exceed their memory limits or loose free memory by fragment it and not able to recover.
                  I observed once after some errors I got Radio init successful and the freeMemory get back its value of 825 in my case.

                  parachutesjP Offline
                  parachutesjP Offline
                  parachutesj
                  wrote on last edited by
                  #10

                  @Mihai

                  I might have the same issue. I have nodes with 4 and 6 relays on them and they stop communicating with the gateway from time to time. It still functions when pressing the physical buttons attached to the arduino, only communication hangs. After power off/on it works again.
                  This only happens on nodes with more than one message.
                  I am using 1.5.4 and never saw anything in logs.
                  What kind of delay did you use? Was anything changed in the meantime on the code?

                  M 1 Reply Last reply
                  0
                  • parachutesjP parachutesj

                    @Mihai

                    I might have the same issue. I have nodes with 4 and 6 relays on them and they stop communicating with the gateway from time to time. It still functions when pressing the physical buttons attached to the arduino, only communication hangs. After power off/on it works again.
                    This only happens on nodes with more than one message.
                    I am using 1.5.4 and never saw anything in logs.
                    What kind of delay did you use? Was anything changed in the meantime on the code?

                    M Offline
                    M Offline
                    Mihai
                    wrote on last edited by
                    #11

                    @parachutesj Inserting just Delay() into the code doesn't help always, while it may insert some other troubles, but trying to send messages with some other line code between next sending help a little bit.
                    My error messages was revealed after a lot of testing and stress of the nodes.
                    I am waiting for the MySensors library improving, I saw a lot of work there, so I will keep the actual config, minimize the testing nights for now. Of course I am hard resetting nodes from time to time, when they fail to respond. The gateway seems to works fine.

                    parachutesjP 1 Reply Last reply
                    1
                    • M Mihai

                      @parachutesj Inserting just Delay() into the code doesn't help always, while it may insert some other troubles, but trying to send messages with some other line code between next sending help a little bit.
                      My error messages was revealed after a lot of testing and stress of the nodes.
                      I am waiting for the MySensors library improving, I saw a lot of work there, so I will keep the actual config, minimize the testing nights for now. Of course I am hard resetting nodes from time to time, when they fail to respond. The gateway seems to works fine.

                      parachutesjP Offline
                      parachutesjP Offline
                      parachutesj
                      wrote on last edited by
                      #12

                      @Mihai
                      Thank you. I added a delay of 2 sec into my controller rules. This does not harm, those rules are really not time critical. Will see if this changes something at the end.
                      Resetting nodes does not seem to be an permanent option as most of them are behind my switches in the wall and do not want to open that all the time.

                      1 Reply Last reply
                      0
                      • siodS Offline
                        siodS Offline
                        siod
                        wrote on last edited by
                        #13

                        Hi guys,

                        can you report an update? I also have problems with freezing nodes, did you find a solution?

                        Thank you!!

                        still learning...

                        parachutesjP 1 Reply Last reply
                        0
                        • siodS siod

                          Hi guys,

                          can you report an update? I also have problems with freezing nodes, did you find a solution?

                          Thank you!!

                          parachutesjP Offline
                          parachutesjP Offline
                          parachutesj
                          wrote on last edited by
                          #14

                          @siod I changed most of the power supplies for the nodes with relays. Seems to be fixed. All simple switches or sensors with temp etc. never hang. It is only with actuators and relays. Also upgrading to latest version might have improved the situation. But I am almost certain that I had a few bad power supplies.

                          1 Reply Last reply
                          1
                          • gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #15

                            I read other times that relays can cause some power fluctuations that can cause problems.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            22

                            Online

                            11.7k

                            Users

                            11.2k

                            Topics

                            113.1k

                            Posts


                            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • MySensors
                            • OpenHardware.io
                            • Categories
                            • Recent
                            • Tags
                            • Popular