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. Development
  3. MySensor nodes powering on with Dusk / Dawn Garden lights issue

MySensor nodes powering on with Dusk / Dawn Garden lights issue

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 752 Views 2 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.
  • Richard van der PlasR Offline
    Richard van der PlasR Offline
    Richard van der Plas
    wrote on last edited by
    #1

    I have converted some of my garden lights (not the pond lights because of the water ;) ) to Mysensor lights with NeoPixels with different nice settings (color alarm etc). Thing is these are powerd by the 12V power lines running through the garden. This 12V system turns on @ dusk for a few hours (because they power the analog lights also). This results in 6-8 nodes booting at the same time, thus flooding the gatway with messages (presentation, getting the last state & color etc).
    The last i can fix by creating a few second wait different for all nodes, but i cannot find a option to delay the presentation and the whole bootup part of the nRF24L01 radio part.
    i found #define MY_TRANSPORT_WAIT_READY_MS but is this really working?
    i tested with the line:

    #define MY_TRANSPORT_WAIT_READY_MS 5000
    

    but didn't seem to delay / wait?

    Nca78N 1 Reply Last reply
    0
    • Richard van der PlasR Richard van der Plas

      I have converted some of my garden lights (not the pond lights because of the water ;) ) to Mysensor lights with NeoPixels with different nice settings (color alarm etc). Thing is these are powerd by the 12V power lines running through the garden. This 12V system turns on @ dusk for a few hours (because they power the analog lights also). This results in 6-8 nodes booting at the same time, thus flooding the gatway with messages (presentation, getting the last state & color etc).
      The last i can fix by creating a few second wait different for all nodes, but i cannot find a option to delay the presentation and the whole bootup part of the nRF24L01 radio part.
      i found #define MY_TRANSPORT_WAIT_READY_MS but is this really working?
      i tested with the line:

      #define MY_TRANSPORT_WAIT_READY_MS 5000
      

      but didn't seem to delay / wait?

      Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by Nca78
      #2

      Hello @richard-van-der-plas this is not a wait before node does anything, but the delay after which the node will stop to try reconnecting to network.

      To delay the initial processing in MySensors you have to use the before() method which is logically called before everything else, including MySernsors library initialization.

      1 Reply Last reply
      2
      • Richard van der PlasR Offline
        Richard van der PlasR Offline
        Richard van der Plas
        wrote on last edited by
        #3

        @nca78 said in MySensor nodes powering on with Dusk / Dawn Garden lights issue:

        before()
        so i need to create like :

        void before();
        {
        delay(2500);
        }
        
        
        Nca78N 1 Reply Last reply
        0
        • Richard van der PlasR Richard van der Plas

          @nca78 said in MySensor nodes powering on with Dusk / Dawn Garden lights issue:

          before()
          so i need to create like :

          void before();
          {
          delay(2500);
          }
          
          
          Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #4

          @richard-van-der-plas yes.
          Instead of making a different script for each sensor to change the delay, you can either use a random value or make node id * xxx ms and a fixed value if node id is not yet set.

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


          6

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 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