You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Volodymyr Shymanskyy 0d9bae9546 Fix #1 8 years ago
examples Remove redundant clinet 8 years ago
extras move test 8 years ago
tools Diagnostics 8 years ago
.gitattributes add .gitattributes 8 years ago
.gitignore Ignore docs 8 years ago
.travis.yml update traavis 8 years ago
LICENSE Initial commit 8 years ago
Makefile Fix build 8 years ago
README.md Update readme 8 years ago
TinyGsmClient.h Fix #1 8 years ago
TinyGsmFifo.h return status from 1-item put() and get() 8 years ago
keywords.txt Update API and examples 8 years ago
library.json bump version 8 years ago
library.properties bump version 8 years ago

README.md

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

WebClient example for Arduino Nano (with Software Serial) takes little resources:

Sketch uses 13,802 bytes (44%) of program storage space. Maximum is 30,720 bytes.
Global variables use 661 bytes (32%) of dynamic memory. Maximum is 2,048 bytes.

Now, you have more space for your experiments.

Supported modem models

Supported modules

More modems may be supported later:

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

Uses internal modem buffer for receive

TinyGSM pulls data gently from the modem (whenever possible), so it can operate on very little RAM.

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, 4.0-4.2V or 5V 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)