🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    GPS + GSM

    Scheduled Pinned Locked Moved FAQS
    6 Posts 5 Posters 20.3k Views 3 Watching
    Loading More Posts
    • 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.
    • R Offline
      richardmike4
      last edited by richardmike4

      hi, is possible to connect GPS module and GSM at the same time?

      JJJ 1 Reply Last reply Reply Quote 0
      • JJJ Offline
        JJ @richardmike4
        last edited by JJ

        @richardmike4 Hi Richard,

        Some modules use the same GPIO - in this case only one module can be actively used at a time.

        The GPS and SIM modules use the same GPIO - the GPS continually sends data - so at least for the time being it should not be used in the stack at the same time as GSM module.

        0_1524065521512_M5Stack GSM and GPS boards - GPIOs used.jpg

        loborisL 1 Reply Last reply Reply Quote 0
        • loborisL Offline
          loboris @JJ
          last edited by loboris

          @jimit 在 GPS + GSM 中说:

          @richardmike4 Hi Richard,

          Some modules use the same GPIO - in this case only one module can be actively used at a time.

          It would be a good idea to add some jumpers on such modules to select the communication pins.
          There is plenty of space on the board for that purpose.

          For example, GPS & GSM modules, apart from the fact that they cannot be used at the same time, are completely unusable on M5Stack with psRAM on which pins 16&17 are used to access psRAM.

          1 Reply Last reply Reply Quote 4
          • R Offline
            richardmike4
            last edited by

            Thnx, i think it´s possible to use an arduino for gps (serial) and communicate this by i2C to the m5stack, what do you think?

            1 Reply Last reply Reply Quote 0
            • X Offline
              X-Dron
              last edited by X-Dron

              Default the GPS and GSM modules are partially disconnected from the M5Stack bus.
              You must bridge the contact areas for connection.
              0_1524226964012_1524065523536-m5stack-gsm-and-gps-boards-gpios-used.jpg
              The GSM module has not alternatives for connection. It uses GPIO16 and 17 for UART and GPIO5 for reset.
              The GPS module has alternative connections. 16&17 or 1&3 or 5&13 for UART. If you d'not need a PPS-signal, you can not bridge it at all.
              BUT.
              GPIO 1&3 is used USB-UART (CP2104).
              I d'not know how to use GPIO 5&13 like a UART. This is not a typical application for ESP32.

              1 Reply Last reply Reply Quote 0
              • C Offline
                Calin
                last edited by

                You can use hardwareSerial to assign (ex)Serial1 and Serial2 to different pin's then use Serial1 and Serial2 to communicate with the GSM and GPS

                HardwareSerial Serial1;
                Serial1.begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=x, int8_t txPin=y, bool invert=false);

                Just an ideea...

                1 Reply Last reply Reply Quote 4

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post