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. Concept: Proxy Node: multi protocol proxy

Concept: Proxy Node: multi protocol proxy

Scheduled Pinned Locked Moved Development
12 Posts 3 Posters 2.9k 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.
  • G gonzalonal

    Hi everyone.

    The last couple of days I've been thinking in a new concept for our nodes that would enhance flexibility of our networks.

    Nowadays we have Gateways and Nodes. The nodes sends messages by air(nrf24l01/RFM69/RFM65) or by wire(RS485) to the gateway and the gateways then translates those messages into another protocol understood by the controller, could be wifi, ethernet, serial.

    0_1495463304968_ClassicTopology.png

    The proxy gateway/node concept is based upon the idea of having a gateway talking two different languages, as it does now, but choosing what it talks way down (downlink) the network and way up (uplink) to the main gateway.
    Nothing better to comprehend and idea than an image:
    0_1495463927406_ConceptProxyNode.png

    In the previous figure, the Proxy node would behave as a nrf24l01 gateway with nodes in its daughter network talking RS485. It would be the gateway of its own daughter network.

    The idea came up while designing a network where it would have many nodes very close to each other and it seemed overkill having each node with its own wireless link. I believe a better it's better having just one node talking wirelessly to the gateway and all the others piggybacking in a rs485 bus. For example, a huge three piece window with motorized internal blinds and motorized rollershutters on the outside. This setup would need 6 rollershutter nodes, with 6 RF links. Having just on RF link with a RS485 bus for the rest 5 child nodes seems better.

    I believe this concept enables unlimited network expansion without physical nor transport layer limitations.

    Let me know what you think about it, and if you feel it's doable.
    Regards.

    wallyllamaW Offline
    wallyllamaW Offline
    wallyllama
    wrote on last edited by
    #3

    @gonzalonal it seems like it is doable, especially the case you layed out, the proxy would just take any packets from the rs485 side and transmit them over radio. It would have to remember which nodes it has on rs485 so it can take messages to the nodes and send them on the wire. No changes to the gateway needed. Literally just a bridge. If there were any radio nodes down stream from the proxy, that might be trouble.

    Of course you can get fancy and have buffering, proxying acks and nacks etc.

    This might actually be a benefit in an all rs485 network, by having 2 separate busses with a small bit of buffering the concern over collisions could just about be eliminated.

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

      https://forum.mysensors.org/topic/5455/bridge-between-rf24-and-rs485

      If will be very complex to route data over different network types with a certain reliability, because when traffic increases you will inevitably get collisions, retransmissions and you could get to a point where everything becomes unusable.

      G 1 Reply Last reply
      0
      • gohanG gohan

        https://forum.mysensors.org/topic/5455/bridge-between-rf24-and-rs485

        If will be very complex to route data over different network types with a certain reliability, because when traffic increases you will inevitably get collisions, retransmissions and you could get to a point where everything becomes unusable.

        G Offline
        G Offline
        gonzalonal
        wrote on last edited by
        #5

        Hi @gohan . Thanks for showing interest on the topic.

        It's sure a hard thing to accomplish, but keeping in mind that daughter networks should be kept as small as possible (around 3~5 nodes) and that, for instance, nrf24l01 has its own fifo buffer, and atmegas has it's own uart buffer (for RS485 example) I believe it would be posible. Maybe creating a software fifo queue.

        I know we are very hardware limited, but as hardware evolves, this may become a easily doable task. Not sure if it's doable in a atmega328p but for sure in the newer SAMD platform.

        Let me know what you think.
        Regards!

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

          The problem with this protocol is that is not connected, sensor sends data and it is not waiting for an ack before sending something else. That would lead to congestion when traffic starts to rise and eventually to packet loss (it happens all the time on the Internet but you don't notice it because the tcp-ip protocol takes care of resending lost packets)

          G 1 Reply Last reply
          0
          • gohanG gohan

            The problem with this protocol is that is not connected, sensor sends data and it is not waiting for an ack before sending something else. That would lead to congestion when traffic starts to rise and eventually to packet loss (it happens all the time on the Internet but you don't notice it because the tcp-ip protocol takes care of resending lost packets)

            G Offline
            G Offline
            gonzalonal
            wrote on last edited by
            #7

            Hi @gohan.

            Yes I know about protocols, I'm a teco engineer.
            That same congestion you talk about, is already present in the current networks we are building. So, I don't believe it's a real limitation.

            There are critical task in home automation that needs messages confirmation or to resend (as TCP does), but there are many more, the vast majority, that doesn't need confirmation. Who would bother to lose a humidity reading.

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

              Agreed, but if you have actuators for heating, watering, open close window blinds, light, whatever else, you would like them to work no matter what, especially if they are operated from remote or automatically and you can't get visual confirmation

              G 1 Reply Last reply
              0
              • wallyllamaW Offline
                wallyllamaW Offline
                wallyllama
                wrote on last edited by
                #9

                I think most of the problems could be overcome, but they will take time and effort, which would take away from other projects unless a volunteer comes forward. Im not ready for something like this yet, so I should propbably keep my mouth shut.

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

                  Right, since this is community driven project it is difficult to put all that effort into it given that developers have their lives like everybody else 😀

                  1 Reply Last reply
                  0
                  • gohanG gohan

                    Agreed, but if you have actuators for heating, watering, open close window blinds, light, whatever else, you would like them to work no matter what, especially if they are operated from remote or automatically and you can't get visual confirmation

                    G Offline
                    G Offline
                    gonzalonal
                    wrote on last edited by
                    #11

                    Hi @gohan

                    @gonzalonal said in Concept: Proxy Node: multi protocol proxy:

                    Hi @gohan.

                    Yes I know about protocols, I'm a teco engineer.
                    That same congestion you talk about, is already present in the current networks we are building. So, I don't believe it's a real limitation.

                    There are critical task in home automation that needs messages confirmation or to resend (as TCP does), but there are many more, the vast majority, that doesn't need confirmation. Who would bother to lose a humidity reading.

                    Offcourse. We agree. Those mode critical messages/commands should be send with the ack bit enabled so as to receive delivery confirmation, and if not, to resend.

                    @wallyllama said in Concept: Proxy Node: multi protocol proxy:

                    I think most of the problems could be overcome, but they will take time and effort, which would take away from other projects unless a volunteer comes forward. Im not ready for something like this yet, so I should propbably keep my mouth shut.

                    @gohan said in Concept: Proxy Node: multi protocol proxy:

                    Right, since this is community driven project it is difficult to put all that effort into it given that developers have their lives like everybody else 😀

                    Again, we agree. It's just a concept that I would like to share. Nothing else. We all have many things to do in life and in MySensors as well😀, but I believe talking about this kind of things, slowly builds the idea in our heads, and may be prone to guide the platform development into it or some other great ideas.

                    What today seems overkill or impossible, tomorrow we'll see.
                    Thanks for your comments.

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

                      Let's see what @hek might have to say about this :D

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


                      11

                      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