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. GPS and GSM

GPS and GSM

Scheduled Pinned Locked Moved Development
21 Posts 4 Posters 4.6k 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.
  • ThucarT Thucar

    I'm actually looking into this very thing myself. Not from the GPS aspect but the GSM/GPRS point of view. The goal here is to create a remote battery/solar powered MQTT gateway that can have a network of nodes of its own.

    I'm testing things with the A6 GSM/GPRS module from AI Thinker. Right now I'm trying to chew through the MyGatewayTransportMQTTClient.cpp file and figure out how to convinve MySensors to play nice with the thing.

    As the A6 library I'm using TinyGSM. Using one of the TinyGSM examples I got the GPRS connection up and running in no time.

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

    @Thucar I think you will need some some kind of controller (like node-red or whatever) than can bridge the different systems connected to MQTT

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

      How come? Using a TinyGSM example sketch I can connect to the internet, get an IP address, connect to my MQTT broker and push/read messages. So I was thinking all I need to do is use the TinyGSM library to set up an Internet connection. Then use the GatewayXXXXMQTTClient sketch to handle everything else. Pretty much like with Ethernet or ESP8266 versions of the gateway.

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

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

        I meant from the server side, from the client you only need the mqtt client, but if you want the GSM client talk to other things like on your mysensors network, then a controller is needed

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

          I was thinking more in the lines of a standalone Mysensors network. So I would place this GSM gateway in my beeyard, add nodes to each individual hive and have the gateway forward all gathered information to my MQTT broker. At the same time I could use the gateway to read incoming messages from the broker and forward them to the nodes.

          An alternative would be to not configure it as a MQTT gateway but as an Ethernet Client gateway that connects directly to my PC.

          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

            Ok I got it now. Maybe @Yveaux could provide a comment on the feasibility

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

              Looks like I have it working. At least it compiles nicely and connects to the Internet via GPRS. The problem is, I can't use it as an Ethernet server gateway when on GPRS. It has to be in Client configuration. I've been using MySController so far but does not look like it supports gateways as Clients. What would you say is the simplest way to test the Ethernet Client configuration?

              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
                #16

                Sorry... no idea on how to hack the mysensors gateway to use gprs

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

                  I'm not looking to hack it. I think I pretty much did that part. I'm looking for information on how to use or more specifically test a regular Ethernet Gateway in Client mode. The Client mode seems to be an official feature of the Ethernet Gateway judging by the comments in the example file.

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

                  mfalkviddM 1 Reply Last reply
                  0
                  • ThucarT Thucar

                    I'm not looking to hack it. I think I pretty much did that part. I'm looking for information on how to use or more specifically test a regular Ethernet Gateway in Client mode. The Client mode seems to be an official feature of the Ethernet Gateway judging by the comments in the example file.

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

                    @Thucar the ethernet client gateways needs an open tcp port to connect to. If you have a linux machine you can use netcat to start such a port. If the linux machine is behind a router you'll need to use port forearding.

                    gohanG 1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      @Thucar the ethernet client gateways needs an open tcp port to connect to. If you have a linux machine you can use netcat to start such a port. If the linux machine is behind a router you'll need to use port forearding.

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

                      @mfalkvidd I think he wants to compile a MQTT gateway but without the ethernet interface and use the GPRS instead

                      fhenrycoF 1 Reply Last reply
                      0
                      • gohanG gohan

                        @mfalkvidd I think he wants to compile a MQTT gateway but without the ethernet interface and use the GPRS instead

                        fhenrycoF Offline
                        fhenrycoF Offline
                        fhenryco
                        wrote on last edited by
                        #20

                        what would you say is the main benefit of the A6 module with respect to a sim800L

                        ThucarT 1 Reply Last reply
                        0
                        • fhenrycoF fhenryco

                          what would you say is the main benefit of the A6 module with respect to a sim800L

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

                          @fhenryco for me, the benefit of the A6 is that I have one on my desk :)

                          @gohan I'm not fixed on using a MQTT gateway. Not after learning that a regular Ethernet Gateway can be used as a Client. Actually I would very much prefer using it as an Ethernet Gateway if I can.

                          So far I have not managed to get MySensors to play ball. Even though I have an internet connection up and running and a port to connect to, I'm not seeing any incoming connections. Must dig deeper.

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

                          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