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

    How to create a server with sim800l module?

    Scheduled Pinned Locked Moved FAQS
    3 Posts 2 Posters 9.9k 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.
    • K Offline
      ken57093
      last edited by ken57093

      I want to create a web server with my sim card. I search on the internet, but there is no example for sim800l. Most of the example are for WiFi or sim900, etc.

      I want to command my M5stack (using SIM800) by sending a data from my computer with a simple website. So my M5Stack + Computer both can be connected to internet and my computer will be knowing the IP address of the Sim card.

      Thank you

      1 Reply Last reply Reply Quote 0
      • K Offline
        ken57093
        last edited by

        I tried the GSM.h sample code. (https://www.arduino.cc/en/Tutorial/GSMExamplesWebServer)
        When I run the code, it output lots of error.
        0_1539855513695_b54bdd54-3f63-40fe-bba8-70299d3b0f1e-image.png

        Did anyone try GSM.h before?

        Thank you

        1 Reply Last reply Reply Quote 0
        • H Offline
          hacxx
          last edited by

          To create a server with SIM800L, use GPRS to get a dynamic IP from your carrier. Enable TCP listening with AT+CIPSERVER=1,80. Forward incoming data to your M5Stack via serial. Since the IP is dynamic, use a DDNS service or periodically send the IP via SMS/email. Alternatively, have the M5Stack poll a cloud server for commands. SIM800L has limited capabilities, so keep the website simple (raw HTTP requests). Check the SIM800L AT command manual for TCP/IP setup details.

          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