Skip to content
  • 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. General Discussion
  3. Sending sleeping time to nodes
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Sending sleeping time to nodes

Scheduled Pinned Locked Moved General Discussion
6 Posts 4 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.
  • D Offline
    D Offline
    dbo
    wrote on last edited by
    #1

    Is it possible to send a variable from a controller or gateway to the node ? Sometime I want to change a sleeping time of my nodes. Can I do it without uploading new sketch ?

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

      Maybe using smart sleep you can have the node process an incoming message when it wakes up, then in the message you could send a value and change the sleep time variable.

      1 Reply Last reply
      0
      • D dbo

        Is it possible to send a variable from a controller or gateway to the node ? Sometime I want to change a sleeping time of my nodes. Can I do it without uploading new sketch ?

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        Welcome to the MySensors community @dbo !

        The excellent NodeManager by community member @user2684 supports configuring sleep time from the controller. See https://forum.mysensors.org/topic/6183/nodemanager-plugin-for-a-rapid-development-of-battery-powered-sensors/ and https://github.com/mysensors/NodeManager for more information.

        D 1 Reply Last reply
        2
        • mfalkviddM mfalkvidd

          Welcome to the MySensors community @dbo !

          The excellent NodeManager by community member @user2684 supports configuring sleep time from the controller. See https://forum.mysensors.org/topic/6183/nodemanager-plugin-for-a-rapid-development-of-battery-powered-sensors/ and https://github.com/mysensors/NodeManager for more information.

          D Offline
          D Offline
          dbo
          wrote on last edited by
          #4

          @mfalkvidd Thanks. This is exactly what i needed.

          1 Reply Last reply
          1
          • K Offline
            K Offline
            kontrollable
            wrote on last edited by
            #5

            If you would like to try something simple and you happen to use a serial gateway. You can just write to the USB port of the GW.
            For example like this:
            $ echo -n "1;1;1;0;24;SP=20.0\n" > /dev/ttyUSB0
            See https://www.mysensors.org/download/serial_api_20 for API
            node-id;child-sensor-id;command;ack;type;payload\n
            The sketch for the receiving node need to "receive" V_VAR1 in this case.

            D 1 Reply Last reply
            1
            • K kontrollable

              If you would like to try something simple and you happen to use a serial gateway. You can just write to the USB port of the GW.
              For example like this:
              $ echo -n "1;1;1;0;24;SP=20.0\n" > /dev/ttyUSB0
              See https://www.mysensors.org/download/serial_api_20 for API
              node-id;child-sensor-id;command;ack;type;payload\n
              The sketch for the receiving node need to "receive" V_VAR1 in this case.

              D Offline
              D Offline
              dbo
              wrote on last edited by
              #6

              @kontrollable said in Sending sleeping time to nodes:

              he sketch for the receiving node need to "receive" V_VAR1 in this case.

              Thanks, I will try.

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


              13

              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
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular