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

    CORES3 with NB-IOT

    Scheduled Pinned Locked Moved Modules
    4 Posts 2 Posters 2.4k Views 1 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.
    • M Offline
      markpro
      last edited by

      Hi!

      I have a CoreS3 with a COM.NB-IoT. Somehow I can;t get the SIM7020 get to work. Does someone have a example code? I have changed the dipswitches to:

      #define SerialAT Serial1
      #define MODEM_TX 13
      #define MODEM_RX 7
      

      From the IoT_BASE_SIM7020 I have extracted the TinyGSM code for the SIM7020. But as mentioned, I can not get it to work. Does someone have a full working example? I do have the COMMU module on Serial2 on:

      #define Serial485 Serial2
      #define RS485_TX 17
      #define RS485_RX 18
      
      TinyGsm modem(SerialAT,0);
      void setupModem() {
      
        pinMode(2, OUTPUT);
        digitalWrite(2, 0);
        
        SerialAT.begin(115200, SERIAL_8N1, MODEM_RX, MODEM_TX);
        TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);
        
        modem.init(); // Not working
      
        String modemInfo = modem.getModemName();
        CoreS3.Display.printf("Modem Name: %s\n", modemInfo);
        Serial.print("Modem Name: ");
        Serial.println(modemInfo);
      }
      
      1 Reply Last reply Reply Quote 0
      • felmueF Offline
        felmue
        last edited by felmue

        Hello @markpro

        GPIO13 in M5CoreS3 is already used by the speaker amp. So it probably can't be used for serial. See schematic here.

        BTW: you don't need to set GPIO2 as output and set it to LOW as GPIO2 is not connected / used by the COM.NB-IoT module. See schematic here.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          markpro @felmue
          last edited by

          @felmue Thanks, after reviewing the docs I also made a mistake in the Pins. Adjusted to below and now I get a reponse of 1 on modem.test(). So looks like I have it connected :)

          #define MODEM_TX 7
          #define MODEM_RX 1
          
          1 Reply Last reply Reply Quote 1
          • felmueF Offline
            felmue
            last edited by

            Hello @markpro

            glad to hear you got it working.

            BTW: GPIO1 is already used on port A (I2C). But that is fine as long as you do not need external I2C as well.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            1 Reply Last reply Reply Quote 0

            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