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

    m5stack + sim800l

    Scheduled Pinned Locked Moved Modules
    3 Posts 2 Posters 5.5k 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.
    • N Offline
      Nicolaf899
      last edited by

      0_1585063663830_sim800l.png

      To start understanding the functioning of the sim800l module I used the following example:

      //Reset resistance is not soldered. If necessary, weld it yourself.

      #include <M5Stack.h>
      #define RX_PIN 16
      #define TX_PIN 17
      #define RESET_PIN 5

      void header(const char *string, uint16_t color){
      M5.Lcd.fillScreen(color);
      M5.Lcd.setTextSize(1);
      M5.Lcd.setTextColor(TFT_MAGENTA, TFT_BLUE);
      M5.Lcd.fillRect(0, 0, 320, 30, TFT_BLUE);
      M5.Lcd.setTextDatum(TC_DATUM);
      M5.Lcd.drawString(string, 160, 3, 4);
      }

      void setup() {
      M5.begin();

      header("SIM800L AT command", TFT_BLACK);
      M5.Lcd.setTextFont(2);
      M5.Lcd.setTextColor(TFT_WHITE, TFT_BLACK);
      M5.Lcd.drawString("Please use serial port to Test AT command.",0, 35, 2);
      // Host serial communication
      Serial.begin(115200);

      // SIM800L serial communication
      Serial2.begin(115200, SERIAL_8N1, RX_PIN, TX_PIN);
      pinMode(RESET_PIN, OUTPUT);
      }

      void loop() {

      //AT instruction write
      if(Serial.available()){
      Serial2.write(Serial.read());
      }

      //AT instruction result
      if(Serial2.available()){
      Serial.write(Serial2.read());
      }

      delay(10);

      }

      I sent some at command to understand if the module worked but apparently it doesn't work. Any suggestions?

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL Offline
        lukasmaximus
        last edited by

        Hi @Nicolaf899 I cannot help you here as I was not able to get the sim800l working myself, please refer to the recent topic http://forum.m5stack.com/topic/1785/sim800l-gprs-mqtt I pasted some links there with information about sim800l. Where possible please check if there is a discussion going on about this module and ask your questions there instead of duplicating a thread, thanks

        1 Reply Last reply Reply Quote 0
        • N Offline
          Nicolaf899
          last edited by

          @lukasmaximus said in m5stack + sim800l:

          Hi @Nicolaf899 I cannot help you here as I was not able to get the sim800l working myself, please refer to the recent topic http://forum.m5stack.com/topic/1785/sim800l-gprs-mqtt I pasted some links there with information about sim800l. Where possible please check if there is a discussion going on about this module and ask your questions there instead of duplicating a thread, thanks

          okk thank you

          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