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.
  • 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 Online
      mfalkviddM Online
      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


                      16

                      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