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. General Discussion
  3. ... using two Gateways

... using two Gateways

Scheduled Pinned Locked Moved General Discussion
25 Posts 5 Posters 4.2k Views 3 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #6

    I know it would be nice to have one single gateway for both interfaces

    zzz-teoZ 1 Reply Last reply
    0
    • gohanG gohan

      I know it would be nice to have one single gateway for both interfaces

      zzz-teoZ Offline
      zzz-teoZ Offline
      zzz-teo
      wrote on last edited by
      #7

      @gohan
      ... i was dreamed of activating both
      // # Define MY_RADIO_NRF24
      // # Define MY RS485
      but i got this!
      " #error Only one forward link driver can be activated "
      ... now i keep dreaming ...

      1 Reply Last reply
      0
      • zzz-teoZ Offline
        zzz-teoZ Offline
        zzz-teo
        wrote on last edited by
        #8

        ... may be using a MEGA to connect to serial1,2,3 ports
        an NRF Gateway
        an RS485 Gateway
        and build a new serial output to Controller that will merge and manage messages via serial API.

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

          Hello,

          no bridge yet as far as i know. Mysensors allows one transport layer per gw for the moment.
          It would need some software work though, like handling well both transport without missing packets, queue, more ram and also flash for fw. All of this for one mcu. Better use a good mcu for this.
          Or it's very simple to use a cheap rpi like and use node-red for routing imho

          gohanG 1 Reply Last reply
          0
          • scalzS scalz

            Hello,

            no bridge yet as far as i know. Mysensors allows one transport layer per gw for the moment.
            It would need some software work though, like handling well both transport without missing packets, queue, more ram and also flash for fw. All of this for one mcu. Better use a good mcu for this.
            Or it's very simple to use a cheap rpi like and use node-red for routing imho

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

            @scalz of course you can use a controller to route messages from one sensor network to the other, but in order to keep things simple it would be nice to have a bridge between the two

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

              @gohan
              hehe. It depends on the angle of view. Simple for end user, but not for the dev :)

              I explained it above, but actually the lib works like this, 1x transport.

              • This needs a few more coding abstraction layers to get that. Taking in account current todolist priorities, dev, testing, and time ;)
              • better with an rtos too, as most common mcu are one core, it needs to handle well all the tasks involved..and the lib is not completely ready for this too.
              • Lot of things to think for doing this (the message routing and so on) ..or no reliable comm.

              That's why, i said, for the moment it may be easier to use an rpi for this even if i understood the point ;)

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

                don't get me wrong, I know very well that it is much more complex working on the code for microcontrollers that have limited resources :D

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

                  @gohan not my intention. i think in future that may be easier to bridge than actually, just a matter of time. thx to mysensors team, and the community because it's tricky to test all hardware setup :)

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

                    Would it be possible to use mqtt to bridge 2 gateways?

                    mfalkviddM 1 Reply Last reply
                    0
                    • gohanG gohan

                      Would it be possible to use mqtt to bridge 2 gateways?

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

                      @gohan not without some sort of filtering
                      The two gateways would have the same id (0) and forwarding messages with destination 0 would probably confuse the other gateway.
                      There would probably also be some extra routing mechanism, to be able to handle routing between the two networks. To nodes on "network 1", it would have to look like gateway 2 is a repeater which is routing messages for all nodes in "network 2", and the other way around.

                      gohanG zzz-teoZ 2 Replies Last reply
                      0
                      • mfalkviddM mfalkvidd

                        @gohan not without some sort of filtering
                        The two gateways would have the same id (0) and forwarding messages with destination 0 would probably confuse the other gateway.
                        There would probably also be some extra routing mechanism, to be able to handle routing between the two networks. To nodes on "network 1", it would have to look like gateway 2 is a repeater which is routing messages for all nodes in "network 2", and the other way around.

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

                        @mfalkvidd
                        Of course some changes would have to be made. I was only brainstorming about what could be the less complex way

                        1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @gohan not without some sort of filtering
                          The two gateways would have the same id (0) and forwarding messages with destination 0 would probably confuse the other gateway.
                          There would probably also be some extra routing mechanism, to be able to handle routing between the two networks. To nodes on "network 1", it would have to look like gateway 2 is a repeater which is routing messages for all nodes in "network 2", and the other way around.

                          zzz-teoZ Offline
                          zzz-teoZ Offline
                          zzz-teo
                          wrote on last edited by
                          #17

                          @mfalkvidd
                          hmm... that is more complicated than i thought!
                          seems that need a repeater NRF to RS485 to handle the "INTERNAL" trafic also and not two Gateways ...:confused: :dizzy_face:

                          mfalkviddM gohanG 2 Replies Last reply
                          0
                          • zzz-teoZ zzz-teo

                            @mfalkvidd
                            hmm... that is more complicated than i thought!
                            seems that need a repeater NRF to RS485 to handle the "INTERNAL" trafic also and not two Gateways ...:confused: :dizzy_face:

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

                            @zzz-teo well, if it was easy it would probably already be supported ;-)

                            zzz-teoZ 1 Reply Last reply
                            0
                            • mfalkviddM mfalkvidd

                              @zzz-teo well, if it was easy it would probably already be supported ;-)

                              zzz-teoZ Offline
                              zzz-teoZ Offline
                              zzz-teo
                              wrote on last edited by
                              #19

                              @mfalkvidd
                              ... sure! and since i'm not qualified for such task, hope this topic to alert someone and build it!

                              1 Reply Last reply
                              0
                              • zzz-teoZ zzz-teo

                                @mfalkvidd
                                hmm... that is more complicated than i thought!
                                seems that need a repeater NRF to RS485 to handle the "INTERNAL" trafic also and not two Gateways ...:confused: :dizzy_face:

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

                                @zzz-teo what exactly are you trying to accomplish with the repeater?

                                zzz-teoZ 1 Reply Last reply
                                0
                                • gohanG gohan

                                  @zzz-teo what exactly are you trying to accomplish with the repeater?

                                  zzz-teoZ Offline
                                  zzz-teoZ Offline
                                  zzz-teo
                                  wrote on last edited by
                                  #21

                                  @gohan ...to have a wired backbone in a bigger vertical installation, each level has a repeater for level wireless connectivity.

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

                                    I guess at the moment you can only use repeater nodes and or use longer range radio modules

                                    zzz-teoZ 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      I guess at the moment you can only use repeater nodes and or use longer range radio modules

                                      zzz-teoZ Offline
                                      zzz-teoZ Offline
                                      zzz-teo
                                      wrote on last edited by
                                      #23

                                      @gohan
                                      ... yes this is the only solution ... but using long range modules the network is exposed to neighborhoods and may someone be motivated to play with it!
                                      By using RS485 backbone the exposed level is reduced. (as well as EMI exposure).
                                      ... and by using repeaters may not be stable due to area division by Slabs.

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

                                        That's why encryption and signing have been invented 😁

                                        1 Reply Last reply
                                        0
                                        • zzz-teoZ Offline
                                          zzz-teoZ Offline
                                          zzz-teo
                                          wrote on last edited by
                                          #25

                                          :laughing:

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


                                          16

                                          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