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. Node to node communication fails if gateway is not reachable

Node to node communication fails if gateway is not reachable

Scheduled Pinned Locked Moved Development
30 Posts 9 Posters 5.5k Views 8 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by scalz
    #18

    @berkseo
    there are valid and nonvalid points in what you're saying. The valid point is self healing isn't (never) finished and I agree with you it is an important feature.

    1. e.g. I saw your mysensors hack code a while ago. i didn't look at your video etc but just thought "got it", then end of a todo.
      (I've no falling gw, nor messages overload. my gw is enough powerful and autorestart.). Gw could fail but a node, or a repeater on border of network could fail too.

    2. Is your implementation bullet-proof vs all cases?? if there is repeater with node in routing table in between. moving nodes. etc. Not a problem when people live in apartment and don't need big range, with no repeater.
      Remember, mysensors isn't a mesh with all the self healing. It's a classic star topology network for the moment, where repeater's role is to forward a msg (not the node's role).

    We can't give guarantee! Except saying we do our best in our free time. MySensors is open source, and community driven as possible. Zigbee users etc can also have their issues. That said MySensors is opensource, we can guarantee reactivity when community wants to help ;)

    1. "not giving stability in the network" isn't the policy of the team (i guess you know it).

    As you can imagine, it's also often more fun to work on new innovative things (like new framework and hw, smarter stuff etc) than maintenance :grimacing:
    And it's not easy to follow all posts, piece of code/hacks, videos, adding them to a dev todolist etc.

    The easiest way if you want the feature implemented is as you know, please:

    • open an issue on gitub
    • or create a PR
      then that will be checked if the addition is valid and complete. At least there will be history for the next mysensors rev.

    And as you're using internal mysensors vars and functions, this will prevent you to lose your work during mysensors updates.

    From someone smart: "if all the great critics would only contribute 1% of code - we would have solved lots of issues" ;)

    1 Reply Last reply
    3
    • H Offline
      H Offline
      Heizelmann
      wrote on last edited by
      #19

      Sorry, but this is too much complicated discussion for me. Is it possible or not with the current version for end users like me? If yes, I need a simple how to example.

      mfalkviddM 1 Reply Last reply
      0
      • H Heizelmann

        Sorry, but this is too much complicated discussion for me. Is it possible or not with the current version for end users like me? If yes, I need a simple how to example.

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

        @heizelmann I think all you need to do is follow @berkseo's video guides.

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by scalz
          #21

          for info, thanks to @tekka, he prepared a PR to address node to node communication, and make you happy ;)
          https://github.com/mysensors/MySensors/pull/1174

          So

          • you can try berkseo implementation but like I said above, maybe it will be broken in future, who knows.. as it's using internal mysensors api (not the end user api).
          • or try tekka work and feedback (from a end user point of view, you just have to add same changes in your files as those this PR) https://github.com/mysensors/MySensors/pull/1174/files

          Btw, not sure if it will work with signing (whitelisting etc), and if not, not sure when.. but plz feedback!

          H berkseoB 2 Replies Last reply
          4
          • scalzS scalz

            for info, thanks to @tekka, he prepared a PR to address node to node communication, and make you happy ;)
            https://github.com/mysensors/MySensors/pull/1174

            So

            • you can try berkseo implementation but like I said above, maybe it will be broken in future, who knows.. as it's using internal mysensors api (not the end user api).
            • or try tekka work and feedback (from a end user point of view, you just have to add same changes in your files as those this PR) https://github.com/mysensors/MySensors/pull/1174/files

            Btw, not sure if it will work with signing (whitelisting etc), and if not, not sure when.. but plz feedback!

            H Offline
            H Offline
            Heizelmann
            wrote on last edited by Heizelmann
            #22

            @scalz Thanks for the info. I do not understand much of the software, but I would prefer the second solution as far as it will be integrated in the release. Using an internal API is unacceptable.
            But what about the case that the gateway is not reachable and the direct node also but a repeater inbetween could serve it?

            1 Reply Last reply
            0
            • scalzS scalz

              for info, thanks to @tekka, he prepared a PR to address node to node communication, and make you happy ;)
              https://github.com/mysensors/MySensors/pull/1174

              So

              • you can try berkseo implementation but like I said above, maybe it will be broken in future, who knows.. as it's using internal mysensors api (not the end user api).
              • or try tekka work and feedback (from a end user point of view, you just have to add same changes in your files as those this PR) https://github.com/mysensors/MySensors/pull/1174/files

              Btw, not sure if it will work with signing (whitelisting etc), and if not, not sure when.. but plz feedback!

              berkseoB Offline
              berkseoB Offline
              berkseo
              wrote on last edited by
              #23

              @scalz
              The thing is, I don't change anything in the library, I just use some things from there. In theory, this should not change. But I agree that this is not quite reliable, as it can be renamed. BUT.. I did this when I first came out 2.0, now 2.3.1 and still it works. I use two things. On-the-fly spoofing parentID and a feature with a set of parameters that does roughly the same thing as a passive node, but all the proof-of-delivery work. This works like this: if the gateway is OK then work through it, if there is a problem with the gateway then the nodes work directly. If the gateway is back online then the nodes build a new route and work again through the gateway. Your previous posts have brought me to new thoughts. Because my solution works very well in a direct exchange between two nodes. Now I want to expand the functionality and make such a transition from node to node and worked through repeaters. @tekka solution is good, but not sufficient.

              And most likely I will recommend the сreator of this theme to use your solution if it suits him. My research is rather experimental, this is what I would like to see in mysensors. But studying my experiments, I think, will be useful, because it works ... work well.

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by scalz
                #24

                @berkseo
                as OP asked for a end user solution, I can't give a better answer than what I already said.
                I didn't say you changed lib nor it doesn't work (in all cases, with signing etc?).
                and as you noticed, it works in 2.x. Maybe things will be different for 3.x in future, in case transport layer etc is revamped..

                But most important is to use what fit your needs. and of course then to be able to maintain it in long term. less easy for endusers with less programming skills.
                Anyway thx for sharing.

                @Heizelmann
                if node2node not in range, it should try to find a parent I think. but then i've not tested.

                H 1 Reply Last reply
                0
                • scalzS scalz

                  @berkseo
                  as OP asked for a end user solution, I can't give a better answer than what I already said.
                  I didn't say you changed lib nor it doesn't work (in all cases, with signing etc?).
                  and as you noticed, it works in 2.x. Maybe things will be different for 3.x in future, in case transport layer etc is revamped..

                  But most important is to use what fit your needs. and of course then to be able to maintain it in long term. less easy for endusers with less programming skills.
                  Anyway thx for sharing.

                  @Heizelmann
                  if node2node not in range, it should try to find a parent I think. but then i've not tested.

                  H Offline
                  H Offline
                  Heizelmann
                  wrote on last edited by Heizelmann
                  #25

                  My scenario is as follows: A sensor node should report directly to a actuator node wether the gatway or any repeater are on or off. Both nodes should communicate bidirectonal to the gateway if available some different messages. Can anyone give me as an end user a simple example code for the both nodes?

                  mfalkviddM gohanG 2 Replies Last reply
                  0
                  • H Heizelmann

                    My scenario is as follows: A sensor node should report directly to a actuator node wether the gatway or any repeater are on or off. Both nodes should communicate bidirectonal to the gateway if available some different messages. Can anyone give me as an end user a simple example code for the both nodes?

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

                    @heizelmann while it is a valid use case, it is not how MySensors was designed. MySensors uses a tree topology, and if the root of the tree (=the gateway) is gone, there is no way to route the messages.

                    Supporting the use case would be nice, but changing the topology will require a lot of work deep inside the MySensors library.

                    1 Reply Last reply
                    1
                    • H Heizelmann

                      My scenario is as follows: A sensor node should report directly to a actuator node wether the gatway or any repeater are on or off. Both nodes should communicate bidirectonal to the gateway if available some different messages. Can anyone give me as an end user a simple example code for the both nodes?

                      gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #27

                      @heizelmann have you tried to use it normally in order to check the long term stability before going trough all that trouble?

                      H 1 Reply Last reply
                      0
                      • gohanG gohan

                        @heizelmann have you tried to use it normally in order to check the long term stability before going trough all that trouble?

                        H Offline
                        H Offline
                        Heizelmann
                        wrote on last edited by
                        #28

                        For me, node to node communication is a must have for a reliable secure home automation system. E.g. if a PIR sensor node detects motion, a lamp actuator on a different place should switch on the lamp quickly even if the gateway is off. May be mySensors is the wrong choice for this domain.

                        berkseoB 1 Reply Last reply
                        0
                        • H Heizelmann

                          For me, node to node communication is a must have for a reliable secure home automation system. E.g. if a PIR sensor node detects motion, a lamp actuator on a different place should switch on the lamp quickly even if the gateway is off. May be mySensors is the wrong choice for this domain.

                          berkseoB Offline
                          berkseoB Offline
                          berkseo
                          wrote on last edited by
                          #29

                          @heizelmann said in Node to node communication fails if gateway is not reachable:

                          May be mySensors is the wrong choice for this domain.

                          This is not so, you are in the right place :), do not leave here, this project has excellent prospects. Mysensors is still evolving, who knows what awaits us in version 3.0 for example. For me, uninterrupted communication between nodes is as important as it is for you. This is a fundamentally important thing that should be. For myself, I decided it, respectively, and for you it is also solved.

                          1 Reply Last reply
                          1
                          • J Offline
                            J Offline
                            JeeLet
                            wrote on last edited by
                            #30

                            the Node To Node must be seen as a Gateway to node :)
                            the controller is not mandatory.
                            so we rethink the topology.

                            Gateway (node0) <---> Node1 <---> Node2 <---> 3.. 4...

                            The Gateway in 2022/2023 must be used, how to do!!?!! ...... a Node Useful :)

                            (yes an old message, but to refresh the ideas )

                            happy holidays to you all

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


                            23

                            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