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. Fallback gateway node

Fallback gateway node

Scheduled Pinned Locked Moved Development
13 Posts 4 Posters 1.6k 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.
  • A Avamander

    I was wondering if it was possible to make a random node take over the gateway functionality?

    I've noticed that in my current setup when I sometimes have to switch PSUs of my gateway node it doesn't always survive without rebooting (and I don't want to damage the power mux with a larger capacitor+inrush current either). So having one node buffer (or process) some messages and then maybe send them to the gateway for processing when it comes online would be really nice. Has anyone tried to have redundant gateways?

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

    @avamander said in Fallback gateway node:

    when I sometimes have to switch PSUs of my gateway node it doesn't always survive without rebooting

    What do you mean?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Avamander
      wrote on last edited by Avamander
      #3

      It resets itself and starts to reinitialize (that causes sensor reading/packet loss I mentioned which I really don't like). The RPi itself is powered from another power supply and the grounds are just connected.

      gohanG 1 Reply Last reply
      0
      • A Avamander

        I was wondering if it was possible to make a random node take over the gateway functionality?

        I've noticed that in my current setup when I sometimes have to switch PSUs of my gateway node it doesn't always survive without rebooting (and I don't want to damage the power mux with a larger capacitor+inrush current either). So having one node buffer (or process) some messages and then maybe send them to the gateway for processing when it comes online would be really nice. Has anyone tried to have redundant gateways?

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #4

        @avamander Why would you have to continually switch the power supplies? You don't have one dedicated to your gateway?

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        0
        • A Avamander

          It resets itself and starts to reinitialize (that causes sensor reading/packet loss I mentioned which I really don't like). The RPi itself is powered from another power supply and the grounds are just connected.

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

          @avamander why don't you make a rpi mysensors gw?

          1 Reply Last reply
          0
          • CrankyCoderC Offline
            CrankyCoderC Offline
            CrankyCoder
            wrote on last edited by
            #6

            I have 2 raspberry pi's both configured as mqtt client gateways. I use keepalived to do failover between the 2.

            Home Automation Tinkerer
            www.CrankyCoder.net

            Controller: HomeAssistant in Kubernetes
            Gateway: MQTTClientGateway
            MySensors: 2.3

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Avamander
              wrote on last edited by
              #7

              @dbemowsk I've built a single bus that supplies my entire sensor network and actuators and as I don't want to waste energy running a 500W PSU a 10W one usually is enough and is way more efficient, it switches automatically between them when more power is needed.

              @gohan I could theoretically, but then I'd have to change the rPi gateway code to add a few features that I need and I'd rather not do that.

              dbemowskD 1 Reply Last reply
              0
              • A Avamander

                @dbemowsk I've built a single bus that supplies my entire sensor network and actuators and as I don't want to waste energy running a 500W PSU a 10W one usually is enough and is way more efficient, it switches automatically between them when more power is needed.

                @gohan I could theoretically, but then I'd have to change the rPi gateway code to add a few features that I need and I'd rather not do that.

                dbemowskD Offline
                dbemowskD Offline
                dbemowsk
                wrote on last edited by
                #8

                @avamander That doesn't necessarily explain why you would keep switching it. Regardless, you could possibly hook up a battery in parallel with the system to keep it running until you got the new one switched in. The battery would only need to power it for a short time during the changeover.

                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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

                  it looks like you are having a power issue, did you try adding a good size capacitor on the arduino VCC?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Avamander
                    wrote on last edited by
                    #10

                    @dbemowsk @gohan It already has capacitors smoothing the switch, it's an automated mux doing it after all, but badly timed switch (when say gas sensors get turned on exactly when an actuator needs to be triggered) can mess that up. Even if it doesn't reset it would be nice to have more redundancy in the system.

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

                      then consider using a lead acid battery to keep power stable, it is easier than making a redundant system or adding a second attiny as a whatchdog that can reset the GW if not responding

                      A 1 Reply Last reply
                      1
                      • gohanG gohan

                        then consider using a lead acid battery to keep power stable, it is easier than making a redundant system or adding a second attiny as a whatchdog that can reset the GW if not responding

                        A Offline
                        A Offline
                        Avamander
                        wrote on last edited by
                        #12

                        @gohan Fair enough. That pretty much answers my question too, that noone has needed this functionality enough for it to be built-in to MySensors.

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

                          Well... Usually gw should be stable on its own. Building a redundant system because of the "unstable" power source, to me is just a much more complicated patch than simply solving the root cause.

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


                          26

                          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