Code Monkey home page Code Monkey logo

tinygsm's Introduction

TinyGSM logo

A small Arduino library for GSM modules, that just works.

GitHub version Build status GitHub issues GitHub wiki GitHub stars License

If you like TinyGSM - give it a star, or fork it and contribute! GitHub stars GitHub forks

Arduino Client interface support

This library is easy to integrate with lots of sketches, which use Ethernet or WiFi.
Examples for PubSubClient (MQTT), Blynk, Web Client and File Download are provided.

examples

TinyGSM is tiny

The complete WebClient example for Arduino Uno (via Software Serial) takes little resources:

Sketch uses 14094 bytes (43%) of program storage space. Maximum is 32256 bytes.
Global variables use 625 bytes (30%) of dynamic memory, leaving 1423 bytes for local variables. Maximum is 2048 bytes.

Arduino GSM library uses 15868 bytes (49%) of Flash and 1113 bytes (54%) of RAM in a similar scenario.
TinyGSM also pulls data gently from the modem (whenever possible), so it can operate on very little RAM.
Now, you have more space for your experiments.

Supported modem models

  • SIMCom SIM800 series (SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868)
  • SIMCom SIM900 series (SIM900A, SIM900D, SIM908, SIM968)
  • AI-Thinker A6, A6C, A7
  • Neoway M590
  • ESP8266 (AT commands interface, similar to GSM modems)

Supported modules

  • GPRSbee
  • Microduino GSM
  • Adafruit FONA (Mini Cellular GSM Breakout)
  • Adafruit FONA 800/808 Shield

More modems may be supported later:

  • Quectel M10, M95, UG95
  • SIMCom SIM5320, SIM5216
  • Telit GL865
  • ZTE MG2639

Watch this repo for new updates! And of course, contributions are welcome ;)

Getting Started

  1. Using your phone: - Disable PIN code on the SIM card - Check your ballance - Check that APN,User,Pass are correct and you have internet
  2. Ensure the SIM card is correctly inserted into the module
  3. Provide a good, stable power supply (up to 2A and specific voltage according to your module documentation)
  4. Check if serial connection is working (Hardware Serial is recommended)
    Send an AT command using this sketch
  5. Check if GSM antenna is attached

Troubleshooting

SoftwareSerial problems

When using SoftwareSerial (on Uno, Nano, etc), the speed 115200 may not work.
Try selecting 57600, 38400, or even lower - the one that works best for you.
Be sure to set correct TX/RX pins in the sketch.

Diagnostics sketch

Use this sketch to diagnose your SIM card and GPRS connection:
File -> Examples -> TynyGSM -> tools -> Diagnostics

Broken initial configuration

Sometimes (especially if you played with AT comands), your module configuration may become invalid.
This may result in problems such as:

  • Can't connect to the GPRS network
  • Can't connect to the server
  • Sent/recieved data contains invalid bytes
  • etc.

To return module to Factory Defaults, use this sketch:
File -> Examples -> TynyGSM -> tools -> FactoryReset


License

This project is released under The GNU Lesser General Public License (LGPL-3.0)

tinygsm's People

Contributors

vshymanskyy avatar xslim avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.