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. [SOLVED] Gateway as a sensor node in v1.6

[SOLVED] Gateway as a sensor node in v1.6

Scheduled Pinned Locked Moved Development
23 Posts 4 Posters 7.8k Views 4 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.
  • mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by mfalkvidd
    #2

    It can either act as a repeater (repeating nrf24 or rfm radio signals to other nrf24/rfm nodes) or as a gateway (sending messages received from nrf24/rfm via wifi/ethernet to a controller). It can not be both repeater and gateway.

    Gateway as a sensor node means that sensors can be physically connected directly to the gateway node.

    ahmedadelhosniA 1 Reply Last reply
    0
    • mfalkviddM mfalkvidd

      It can either act as a repeater (repeating nrf24 or rfm radio signals to other nrf24/rfm nodes) or as a gateway (sending messages received from nrf24/rfm via wifi/ethernet to a controller). It can not be both repeater and gateway.

      Gateway as a sensor node means that sensors can be physically connected directly to the gateway node.

      ahmedadelhosniA Offline
      ahmedadelhosniA Offline
      ahmedadelhosni
      wrote on last edited by
      #3

      @mfalkvidd ohhh I see.

      I thought that I do have a Gateway already using Ethernet for example, and then I can add another uno with ethernet which has a radio and act as a sensor node also. So instead of sending data wirelessly they are sent through ethernet.

      Thank you.

      1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #4

        You can have several gateways so yes that will work.

        ahmedadelhosniA DwaltD 2 Replies Last reply
        1
        • mfalkviddM mfalkvidd

          You can have several gateways so yes that will work.

          ahmedadelhosniA Offline
          ahmedadelhosniA Offline
          ahmedadelhosni
          wrote on last edited by
          #5

          @mfalkvidd ohhh again :) I have to try this soon.

          Great. Thank you.

          1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            You can have several gateways so yes that will work.

            DwaltD Offline
            DwaltD Offline
            Dwalt
            wrote on last edited by
            #6

            @mfalkvidd I am curious to try this. Would I need to update my existing GW to 1.6 or just a new GW?

            Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

            mfalkviddM 1 Reply Last reply
            0
            • DwaltD Dwalt

              @mfalkvidd I am curious to try this. Would I need to update my existing GW to 1.6 or just a new GW?

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

              @Dwalt A gateway that has sensors directly connected to it needs to use 1.6 (=development version).

              You can have several gateways and the gateways don't need to use the same version. If the gateways have nrf24 radios, the radios need to be configured to use different channels though. But that's not an issue if you don't connect a radio to the new gateway.

              Sensor nodes do not need to use the same MySensor version as the gateway, they can use higher or lower version.

              I hope that answers your question :-)

              ahmedadelhosniA 1 Reply Last reply
              1
              • mfalkviddM mfalkvidd

                @Dwalt A gateway that has sensors directly connected to it needs to use 1.6 (=development version).

                You can have several gateways and the gateways don't need to use the same version. If the gateways have nrf24 radios, the radios need to be configured to use different channels though. But that's not an issue if you don't connect a radio to the new gateway.

                Sensor nodes do not need to use the same MySensor version as the gateway, they can use higher or lower version.

                I hope that answers your question :-)

                ahmedadelhosniA Offline
                ahmedadelhosniA Offline
                ahmedadelhosni
                wrote on last edited by
                #8

                @mfalkvidd if the second GW has another channel, by this it wont be communicating with the first GW ?

                In another words. I am just thinking about having a main GW and sub GWs for large distance converage. So they shall be on the same channel, right ?

                1 Reply Last reply
                0
                • mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #9

                  There is no such thing as a sub gw. There can only be one gw per channel. Gws cannot communicate with eachother.

                  To me it sounds like you want repeater nodes.

                  1 Reply Last reply
                  0
                  • ahmedadelhosniA Offline
                    ahmedadelhosniA Offline
                    ahmedadelhosni
                    wrote on last edited by
                    #10

                    Yeah i want to use them as repeater nodes but I just thought that if I can add a wires etheenet repeater 60m (for example) away from the gateway rather than adding 2 or 3 nodes as a repeater nodes to cover a distance of 60m.

                    mfalkviddM 1 Reply Last reply
                    0
                    • ahmedadelhosniA ahmedadelhosni

                      Yeah i want to use them as repeater nodes but I just thought that if I can add a wires etheenet repeater 60m (for example) away from the gateway rather than adding 2 or 3 nodes as a repeater nodes to cover a distance of 60m.

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

                      @ahmedadelhosni there is no such thing as an ethernet repeater in the MySensors world.

                      I'm sorry but I think I've run out of ways to explain this.

                      1 Reply Last reply
                      0
                      • ahmedadelhosniA Offline
                        ahmedadelhosniA Offline
                        ahmedadelhosni
                        wrote on last edited by
                        #12

                        No I understood your answer from the beggining. Thanks a lot :)

                        I was just chatting about what I really wanted the library to support.

                        Thanks a lot for your time.

                        1 Reply Last reply
                        0
                        • mfalkviddM Offline
                          mfalkviddM Offline
                          mfalkvidd
                          Mod
                          wrote on last edited by
                          #13

                          From some of your posts, it sounds like you should just add a second gateway and you're done. But you keep calling it a repeater and I 'm unable to figure out how to proceed.

                          ahmedadelhosniA 1 Reply Last reply
                          0
                          • mfalkviddM Offline
                            mfalkviddM Offline
                            mfalkvidd
                            Mod
                            wrote on last edited by
                            #14

                            https://www.mysensors.org/about/network might help a little bit

                            1 Reply Last reply
                            0
                            • mfalkviddM mfalkvidd

                              From some of your posts, it sounds like you should just add a second gateway and you're done. But you keep calling it a repeater and I 'm unable to figure out how to proceed.

                              ahmedadelhosniA Offline
                              ahmedadelhosniA Offline
                              ahmedadelhosni
                              wrote on last edited by
                              #15

                              @mfalkvidd said:

                              From some of your posts, it sounds like you should just add a second gateway and you're done.

                              Yeah that was the answer for my question at the beginning.

                              But you keep calling it a repeater and I 'm unable to figure out how to proceed.

                              After your answer - which is above - I understood that the concept which I need is not supported. I will draw a diagram showing why I called it a repeater sometimes.

                              1 Reply Last reply
                              0
                              • mfalkviddM Offline
                                mfalkviddM Offline
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #16

                                A picture would be great :-) Thanks for your patience.

                                1 Reply Last reply
                                0
                                • ahmedadelhosniA Offline
                                  ahmedadelhosniA Offline
                                  ahmedadelhosni
                                  wrote on last edited by
                                  #17

                                  0_1453657946793_upload-f848924b-d708-4d1b-bf58-b31fa3c3faf6

                                  I hope this explains my request :)


                                  First half shows the normal MYsensor library where S1 needs to pass through RC > RB > RA to reach GW1. Also it shows another example to use only one repeater so that S2 reached GW1 through RD. All of this needs several repeaters to be placed at different distances to conver a long distance.
                                  I guess we agree to this :)

                                  My question was about the second half in the picture. I have GW1 which is UNO + W5100 connected to a network switch. Then there is the Yellow and Blue thing. Imagine replacing all these repeater nodes by another UNO + W5100 which is the Yellow and Blue circle. Thus S1 needs to pass by this yellow and blue circle (2) to reach GW1. That's why I named it as a repeater, as it sends data from a long distance to the GW. Don't know what is the correct description for this :)

                                  Thus my thoughts were : The yellow and blue thing since it is connected to a network it can communicate with the ethernet gateway through network. ( Actually I found that this is implemented using ESP ) I guess the ESP itself can be used as a repeater node. So it can be placed in a far place and send data to the GW through the network. I didn't use the ESP with MYs but I guess it is a valid example :)

                                  Hope this simplifies my question.

                                  1 Reply Last reply
                                  0
                                  • mfalkviddM Offline
                                    mfalkviddM Offline
                                    mfalkvidd
                                    Mod
                                    wrote on last edited by
                                    #18

                                    Thanks for explaining. So if I understand you correctly, you want a simple way for Domoticz to reach S1?

                                    I hope this picture shows what the network would look like with a second gateway.

                                    0_1453660466990_1453657937893-upload-f848924b-d708-4d1b-bf58-b31fa3c3faf6_mfalkvidd.png

                                    That's it. You're done. No need for a new Yellow and Blue thing.

                                    I must be missing something.

                                    1 Reply Last reply
                                    0
                                    • mfalkviddM Offline
                                      mfalkviddM Offline
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by
                                      #19

                                      Maybe this better describes how adding a second gateway would work

                                      0_1453662278625_1453657937893-upload-f848924b-d708-4d1b-bf58-b31fa3c3faf6_mfalkvidd2.png

                                      1 Reply Last reply
                                      0
                                      • ahmedadelhosniA Offline
                                        ahmedadelhosniA Offline
                                        ahmedadelhosni
                                        wrote on last edited by ahmedadelhosni
                                        #20

                                        Yeah you solved this issue now. That's exactly what I needed :)

                                        The second picture explains it all. I wasn't able to understand how will I have several GWs although you explained it above from the beginning, but I wasn't aware how to do it. I remembered now from your last picture that domoticz can support several hardware. Thus I can make another GW and add it to the hardware in Domoticz as you have explained in your last picture.

                                        Thanks a lot for your time. Now it is very clear :)

                                        1 Reply Last reply
                                        1
                                        • mfalkviddM Offline
                                          mfalkviddM Offline
                                          mfalkvidd
                                          Mod
                                          wrote on last edited by
                                          #21

                                          Victory! :trophy:
                                          You're welcome :)

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


                                          19

                                          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