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. Repeater nodes - gw.sleep(ms)

Repeater nodes - gw.sleep(ms)

Scheduled Pinned Locked Moved Development
4 Posts 3 Posters 1.8k Views 1 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.
  • K Offline
    K Offline
    krayola
    wrote on last edited by
    #1

    I've looked over the source incl MySensor.cpp and can't tell if the radio IRQ pin (2) will actually wake the repeater nodes up to do work (and cause messages to be processed) when a sensor is using gw.sleep(60000) like many of the sketches do.

    The other question I had about repeater nodes - is the repeater selected at sensor boot time, dynamically, or only at initial registration from empty?

    PS - Awesome project. I now have a semi-smart custom humidifier actuator (I still need to adjust the controller to pump it outside temperature - which I still need to get a sensor working for), a BMP180 sensor, and a testbed sensor on a breadboard. Oh and the gateway (currently on a Uno).

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      No, the IRQ pin is not currently used by the library (it's connected in the guides for future use). So you can't sleep your repeater nodes.

      Currently repeater-mode is selected when calling begin(). You could probably tweak library to allow runtime switching between modes.. But I not sure how to handle this run-time switching when it comes to the presentation message sent to controller holding mode type.

      May I ask what the use-case for this is?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        krayola
        wrote on last edited by
        #3

        Oh, I want a couple sensor nodes around the house to also be repeaters, but to only poll sensors send results periodically (to avoid overwhelming the RF network with chatter). There's no actual need to power down these wired repeaters, but I do want to have timed sleep.

        I've been setting repeater mode with begin(). I'm tempted to make a gw.sleepAndProcess(ms) like variant to make it easy to keep the base logic of the various sketches, but also be a repeater node.

        I'm not in a huge house, but I must have a lot of RF interference, as there are some rooms that are too far from the gateway. I do experience 2.4ghz interference even on my SONOS system, so I'm not surprised. Someone has some noisy gear nearby.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          markusand
          wrote on last edited by
          #4

          Is any type of IRQ interruption feature be added in the future? I think it would be a great idea for battery devices to be able to sleep them and only wake up when polling for a sensor value.

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


          17

          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