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. Battery empty on all nodes

Battery empty on all nodes

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 5 Posters 1.3k 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
    martim
    wrote on last edited by
    #1

    Hi,

    I had to work on my gateway, software update etc. (took 4 hours, had some issues) and after connecting no sensors connected. After long search I found out that all my batteries where empty from all my nodes? Could that be caused that the gateway was not available?

    sundberg84S 1 Reply Last reply
    0
    • M martim

      Hi,

      I had to work on my gateway, software update etc. (took 4 hours, had some issues) and after connecting no sensors connected. After long search I found out that all my batteries where empty from all my nodes? Could that be caused that the gateway was not available?

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @martim - yes, depending on your code the node might tries to reconnect (not sleep).

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • M Offline
        M Offline
        martim
        wrote on last edited by
        #3

        mmh, Most nodes sleep for 10 minutes. Do you think it will retry after this sleep periode for a few times?

        sundberg84S 1 Reply Last reply
        0
        • M martim

          mmh, Most nodes sleep for 10 minutes. Do you think it will retry after this sleep periode for a few times?

          sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #4

          @martim no it will retry all the time without sleep if it's unconnected and code is not designed for other.

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          M 1 Reply Last reply
          0
          • sundberg84S sundberg84

            @martim no it will retry all the time without sleep if it's unconnected and code is not designed for other.

            M Offline
            M Offline
            martim
            wrote on last edited by martim
            #5

            @sundberg84 But I have a sleep. So when it is coming awake after a sleep period. It start sending sensor information to the gateway, if this will fail. Does it retry until succeed? Do you have an example sketch with a good example that will not fail if gateway unavailable?

            sundberg84S 1 Reply Last reply
            0
            • M martim

              @sundberg84 But I have a sleep. So when it is coming awake after a sleep period. It start sending sensor information to the gateway, if this will fail. Does it retry until succeed? Do you have an example sketch with a good example that will not fail if gateway unavailable?

              sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #6

              @martim I can't remember but I think @gohan or @mfalkvidd had a similar question a while ago . Let's ping them.

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                If you don't define the my_transport_wait time I think it will keep trying to connect to gateway and it will drain the battery. I always use it so actually I am not entirely sure 😌

                M 1 Reply Last reply
                1
                • gohanG gohan

                  If you don't define the my_transport_wait time I think it will keep trying to connect to gateway and it will drain the battery. I always use it so actually I am not entirely sure 😌

                  M Offline
                  M Offline
                  martim
                  wrote on last edited by
                  #8

                  @gohan Mmh, That I am not using so that might me the case.

                  alexsh1A 1 Reply Last reply
                  0
                  • M martim

                    @gohan Mmh, That I am not using so that might me the case.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by
                    #9

                    @martim I am sure @gohan has a point. Try to power down you GW and connect your node through FTDI adapter to the computer. You would see the node trying to connect all the time and not sleeping.

                    By default it is

                    #define  MY_TRANSPORT_WAIT_READY_MS   (0ul)
                     
                    Timeout in ms until transport is ready during startup, set to 0 for no timeout.
                    
                    1 Reply Last reply
                    0
                    • electrikE Offline
                      electrikE Offline
                      electrik
                      wrote on last edited by
                      #10

                      Isn't this only during starting up the node? So when it is up and running it doesn't apply, or do I misunderstand?

                      M 1 Reply Last reply
                      0
                      • electrikE electrik

                        Isn't this only during starting up the node? So when it is up and running it doesn't apply, or do I misunderstand?

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

                        @electrik Acoording the documentation looks like your right.

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

                          there is also the isTransportReady function that you could check before runnig any other code and if it retrns false just skip everthing and go to sleep.

                          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