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. Static ParentID

Static ParentID

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 2.3k 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.
  • H Offline
    H Offline
    Hausner
    wrote on last edited by
    #1

    Hi,

    This might be a trivial question, but how the f.. do I set a static parent node id?

    My setup is a MQTT gateway, 1 relay node and 3 temp nodes.
    setup.png

    Disance in picture is equal to real life.

    My problem is that, as long as temp2/3 sensors are not running, then the relay works fine.
    As soon as I enable temp 2/3, the relay node thinks that it should communicate with those, as they are closer (which they are)

    The problem here is that the temp nodes are battery operated, so they sleep most of the time, hence I loose comm to the relay node. Therefore I really need to make the relay node talk to the GW with a static ID.

    I've tried to change parentNodeId=AUTO to parentNodeId=0 in MySensor.h on the relay node, but without any working result :(

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

      You should not change anything in MySensor.h. Just set the argument when calling gw.begin() in your sketch.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hausner
        wrote on last edited by
        #3

        @Hek

        So instead of
        gw.begin(incomingMessage, AUTO, true);

        it should be
        gw.begin(incomingMessage, AUTO, true, 0);

        for the relay node?

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

          Yes, that should disable auto-search for parent (if it works as intended!).

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hausner
            wrote on last edited by
            #5

            @hek

            Thank you! It looks like it's working.

            The relay is now talking directly to the GW. The 2 right-side temp sensors however, are now using the relay node as a repeater :P

            I can live with that (still working as designed) only thing now, is that I think I have a faulty wirering connection to the radio on the relay node. After a while it goes "offline", but the fun part is that if I powercycle it, it's back online.

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


            10

            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