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. MQTT Gateway Network On Demand

MQTT Gateway Network On Demand

Scheduled Pinned Locked Moved Development
14 Posts 6 Posters 1.8k Views 6 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
    #2

    Are you sure your nodes can't reach the gateway where it can get mains power?

    1 Reply Last reply
    0
    • ThucarT Offline
      ThucarT Offline
      Thucar
      wrote on last edited by
      #3

      I'm thinking of a remote beeyard setup. No mains power for couple miles in any direction. I can run individual Arduino Pro mini nodes off solar power + single 18650 cells indefinitely without much issue, I've been doing that for over half a year on a test setup.

      However, now I need to get the Gateway to run on Solar and the individual nodes on batteries only. So far, after trying to run the ESP8266 on a single 2300mAh 18650, it would seem the cell would not last more than couple days at best.

      So it's either cut down the power consumption, or upgrade the battery pack to some 4-6 cells, which in turn means upgrading my small 6W solar panel.

      Controller: Node-Red
      Gateway: SerialGateway & GSMMQTTGateway
      MySensors: 2.2.0

      mfalkviddM 1 Reply Last reply
      0
      • ThucarT Thucar

        I'm thinking of a remote beeyard setup. No mains power for couple miles in any direction. I can run individual Arduino Pro mini nodes off solar power + single 18650 cells indefinitely without much issue, I've been doing that for over half a year on a test setup.

        However, now I need to get the Gateway to run on Solar and the individual nodes on batteries only. So far, after trying to run the ESP8266 on a single 2300mAh 18650, it would seem the cell would not last more than couple days at best.

        So it's either cut down the power consumption, or upgrade the battery pack to some 4-6 cells, which in turn means upgrading my small 6W solar panel.

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

        @thucar wouldn't it be pretty simple to use a pro mini with esp8266 as modem and modify your gsm gateway code to turn on and off the esp8266 whenever something is transmitted?

        1 Reply Last reply
        0
        • ThucarT Offline
          ThucarT Offline
          Thucar
          wrote on last edited by
          #5

          That is the second part of the idea :) To make this also work with my other work-in-progress the GSM Gateway. I was just trying to see if there was any valid reason from MySensors side why I should not be toggling the network connection on and off.

          Controller: Node-Red
          Gateway: SerialGateway & GSMMQTTGateway
          MySensors: 2.2.0

          mfalkviddM 1 Reply Last reply
          0
          • ThucarT Thucar

            That is the second part of the idea :) To make this also work with my other work-in-progress the GSM Gateway. I was just trying to see if there was any valid reason from MySensors side why I should not be toggling the network connection on and off.

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

            @thucar From a general point of view, MySensors is designed for both sensors and actuators, and as you've already noted actuators would be uncontrollable when the gateway is disconnected from the controller. Since you're not planning to have any actuators, there won't be a problem in your case.

            Maybe some controllers would go mad if they can't reach the gateway (since gateways up til now have been assumed to be always online), but that would be dependent on each controller implementation.

            1 Reply Last reply
            0
            • NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by
              #7

              Why not use LoRa? Sounds perfect for this.

              ThucarT 1 Reply Last reply
              0
              • NeverDieN NeverDie

                Why not use LoRa? Sounds perfect for this.

                ThucarT Offline
                ThucarT Offline
                Thucar
                wrote on last edited by
                #8

                @neverdie because beeyards are often located nowhere near your own property. You usually negotiate with a land owner if its ok to have your bees on some corner of his land, or in a forest he owns. The actual location of the yard could be as far as 200-300km from your own house. Of course, an option would be to convince the land owner to house your gateway as well, but that adds unnecessary complications to the delicate process of negotiation :)

                Controller: Node-Red
                Gateway: SerialGateway & GSMMQTTGateway
                MySensors: 2.2.0

                K 1 Reply Last reply
                1
                • ThucarT Thucar

                  @neverdie because beeyards are often located nowhere near your own property. You usually negotiate with a land owner if its ok to have your bees on some corner of his land, or in a forest he owns. The actual location of the yard could be as far as 200-300km from your own house. Of course, an option would be to convince the land owner to house your gateway as well, but that adds unnecessary complications to the delicate process of negotiation :)

                  K Offline
                  K Offline
                  kimot
                  wrote on last edited by
                  #9

                  @thucar
                  And where your wifi gateway is sending data, when there are not any power and AP miles around?
                  I do not understood your setup.

                  1 Reply Last reply
                  0
                  • ThucarT Offline
                    ThucarT Offline
                    Thucar
                    wrote on last edited by
                    #10

                    It's not going to be a WiFi gateway. It will be a GSM Gateway. I used the ESP8266 example as that's familiar to everyone whereas the GSM Gateway might raise more questions.

                    As it is now, I'm thinking a gateway that is semi-responsive. Meaning either when it has data to publish, or if a certain time interval has passed, brings up its network connection, connects to the broker, publishes the data it has and reads the messages it has received while the connection was down. If any messages required an ACK, it would get sent at this point.

                    Controller: Node-Red
                    Gateway: SerialGateway & GSMMQTTGateway
                    MySensors: 2.2.0

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

                      I think if you do some calculations with an appropriate sized solar panel you could run the gateway without too many issues, but I still think the esp8266 would be useless since you can still make the nodes talk over radio even with LoRa. It would make sense if you want to use the GSM connection, but in that case you would still go back to the initial solar panel calculation to make it run for long time.

                      1 Reply Last reply
                      0
                      • bjacobseB Offline
                        bjacobseB Offline
                        bjacobse
                        wrote on last edited by
                        #12

                        did you actually check if there is a LoRa gateway in the neighboorhood? or is you beeyard so remote?
                        I would not use esp8266 as the wifi protocol are current-hungry compared to mysensors protocol.

                        Isn't there something about that MQTT broker holds the sensor data values until it have delivered those, so if this is true, then you can connect your GSM gateway in specific time intervals and then make it goto sleep again

                        1 Reply Last reply
                        0
                        • ThucarT Offline
                          ThucarT Offline
                          Thucar
                          wrote on last edited by
                          #13

                          According to thethingsnetwork.org map, the closest lora gateway is about 120km from me :)

                          Controller: Node-Red
                          Gateway: SerialGateway & GSMMQTTGateway
                          MySensors: 2.2.0

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

                            if you have line of sight to it, you could technically do it.

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


                            15

                            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