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. Troubleshooting
  3. Auto reset node.

Auto reset node.

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 3 Posters 2.3k Views 3 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.
  • E Offline
    E Offline
    eric007
    wrote on last edited by
    #1

    Hi,
    Here the thing,
    I'm using domoticz(on raspberry) +serialgateway+nrf24L01 plus one node.

    My node is a 4 relays node used for watering my garden.
    My node and the gateway are separated for 1m
    In fact, the node is outside, but there were a hole in the wall so i brought back the rfn24L01 attached to my node inside. Gateway and node works fine together.

    My problem is : something like twice a week Gateway stop reaching the node and the problem persist until a do a reset on the node!
    (a reset on my raspberry and gateway, don't solve anything)

    When i'm home, it's not a big deal but if i'm in holiday for 4 week, my garden will not be watered.

    I'm thinking about setting up a watchdog on the node.
    but i don't know nature of the problem:
    if NRF24L01+ module has crashed or if Arduino nano is crashed, it's different;

    I would like to setup something like this:
    I setup a watchdog on the node.
    The gateway send a specific serial command each minutes to the node, and the node use this command to reset watchdog timer.
    is there a way of doing this ?

    I probably could build a .c program on my raspberry to send a command to the node but i would like to do this from the gateway.

    Thank,
    Eric.

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

      You could try to check istransportready or sanitycheck and if they return false after 4 or 5 times call a delay (60000) and if you enabled the avr watchdog it should reset the node

      1 Reply Last reply
      0
      • raptorjrR Offline
        raptorjrR Offline
        raptorjr
        wrote on last edited by
        #3

        I would suggest to find the problem instead of treating the symptom.
        I had similar problem with a outside node. Lost contact after 3-4 days. Had to switch from electrolytical capacitor to tantalum on the power of the nrf24 to solve the problem. Of course there can be other causes, but it feels much better when the real problem is solved.

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

          Watchdog is always a good thing to have anyway

          1 Reply Last reply
          0
          • E Offline
            E Offline
            eric007
            wrote on last edited by eric007
            #5

            Thank you both of you,
            i done a mix :
            i setup a watchdog using istransportready and i added a capacitor to the NRF24 (i know i had to but i haden't done it yet, so now it's done).
            for now, it seems working, i'll post a feedback in few days.
            Bye,
            Eric.

            raptorjrR 1 Reply Last reply
            1
            • E eric007

              Thank you both of you,
              i done a mix :
              i setup a watchdog using istransportready and i added a capacitor to the NRF24 (i know i had to but i haden't done it yet, so now it's done).
              for now, it seems working, i'll post a feedback in few days.
              Bye,
              Eric.

              raptorjrR Offline
              raptorjrR Offline
              raptorjr
              wrote on last edited by
              #6

              @eric007 It is possible to know if the watchdog have restarted? Otherwise you wont know which solution worked. But that it is working may be good enough =)

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

                you could send millis every time you send data, if you see the millis starting from 0 you had a reset. Maybe there is a more elegant way of doing it

                E 1 Reply Last reply
                0
                • E Offline
                  E Offline
                  eric007
                  wrote on last edited by
                  #8

                  Hi,
                  It works fine!!! No more signal issue.

                  However, i don't know wich solution has worked but the idea of ​​testing the millis function is perfect and should give a clue.

                  Thank for advices, it was so helpfull.

                  I'll post something when i'll have more details.

                  Eric.

                  1 Reply Last reply
                  0
                  • gohanG gohan

                    you could send millis every time you send data, if you see the millis starting from 0 you had a reset. Maybe there is a more elegant way of doing it

                    E Offline
                    E Offline
                    eric007
                    wrote on last edited by
                    #9

                    @gohan yes, i was thinking about using eeprom memory to set a data just before reaching timeout watchdog and use this data at next startup to decide if Arduino has been reseted by watchdog or not.
                    But using millis function is more clever and don't use eeprom memory.
                    Thank,
                    Eric.

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

                      The capacitor is probably the best option to solve stability issues on nrf24

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


                      28

                      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