TinyGSM-master

所属分类:其他
开发工具:C/C++
文件大小:55KB
下载次数:1
上传日期:2017-10-11 04:26:02
上 传 者papuaoshi
说明:  TinyGSM Library for AVR and avr-gcc

文件列表:
LICENSE (7651, 2017-09-28)
Makefile (162, 2017-09-28)
TinyGsmClient.h (2131, 2017-09-28)
TinyGsmClientA6.h (17690, 2017-09-28)
TinyGsmClientESP8266.h (11774, 2017-09-28)
TinyGsmClientM590.h (16101, 2017-09-28)
TinyGsmClientSIM800.h (21950, 2017-09-28)
TinyGsmClientSIM808.h (3551, 2017-09-28)
TinyGsmClientU201.h (16019, 2017-09-28)
TinyGsmClientXBee.h (15146, 2017-09-28)
TinyGsmCommon.h (4137, 2017-09-28)
TinyGsmFifo.h (2622, 2017-09-28)
examples (0, 2017-09-28)
examples\AllFunctions (0, 2017-09-28)
examples\AllFunctions\AllFunctions.ino (4419, 2017-09-28)
examples\BlynkClient (0, 2017-09-28)
examples\BlynkClient\BlynkClient.ino (2490, 2017-09-28)
examples\FileDownload (0, 2017-09-28)
examples\FileDownload\FileDownload.ino (5234, 2017-09-28)
examples\HttpClient (0, 2017-09-28)
examples\HttpClient\HttpClient.ino (3605, 2017-09-28)
examples\HttpsClient (0, 2017-09-28)
examples\HttpsClient\HttpsClient.ino (3698, 2017-09-28)
examples\MqttClient (0, 2017-09-28)
examples\MqttClient\MqttClient.ino (3986, 2017-09-28)
examples\WebClient (0, 2017-09-28)
examples\WebClient\WebClient.ino (2794, 2017-09-28)
keywords.txt (628, 2017-09-28)
library.json (952, 2017-09-28)
library.properties (485, 2017-09-28)
tools (0, 2017-09-28)
tools\AT_Debug (0, 2017-09-28)
tools\AT_Debug\AT_Debug.ino (2310, 2017-09-28)
tools\Diagnostics (0, 2017-09-28)
tools\Diagnostics\Diagnostics.ino (4588, 2017-09-28)
tools\FactoryReset (0, 2017-09-28)
tools\FactoryReset\FactoryReset.ino (2011, 2017-09-28)
tools\test_build (0, 2017-09-28)
... ...

![TinyGSM logo](https://cdn.rawgit.com/vshymanskyy/TinyGSM/d18e93dc51fe***8a0b175aac***7185457ef***0b5/extras/logo.svg) A small Arduino library for GSM modules, that just works. [![GitHub version](https://img.shields.io/github/release/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/releases/latest) [![Build status](https://img.shields.io/travis/vshymanskyy/TinyGSM.svg)](https://travis-ci.org/vshymanskyy/TinyGSM) [![GitHub issues](https://img.shields.io/github/issues/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/issues) [![GitHub wiki](https://img.shields.io/badge/Wiki-available-brightgreen.svg)](https://github.com/vshymanskyy/TinyGSM/wiki) [![GitHub stars](https://img.shields.io/github/stars/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/stargazers) [![License](https://img.shields.io/badge/license-LGPL3-blue.svg)](https://github.com/vshymanskyy/TinyGSM/blob/master/LICENSE) If you like **TinyGSM** - give it a star, or fork it and contribute! [![GitHub stars](https://img.shields.io/github/stars/vshymanskyy/TinyGSM.svg?style=social&label=Star)](https://github.com/vshymanskyy/TinyGSM/stargazers) [![GitHub forks](https://img.shields.io/github/forks/vshymanskyy/TinyGSM.svg?style=social&label=Fork)](https://github.com/vshymanskyy/TinyGSM/network) You can also join our chat: [![Gitter](https://img.shields.io/gitter/room/vshymanskyy/TinyGSM.svg)](https://gitter.im/tinygsm) ### Arduino Client interface support This library is easy to integrate with lots of sketches, which use Ethernet or WiFi. **PubSubClient ([MQTT](http://mqtt.org/))**, **[Blynk](http://blynk.cc)**, **HTTP Client** and **File Download** examples are provided. ![examples](/extras/examples.png) ### 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.** ## Features Feature \ Modem | SIM8xx | U201 | A6/A7/A20 | M590 | ESP8266 | XBee --- | --- | --- | --- | --- | --- | --- **Data connections** TCP (HTTP, MQTT, Blynk, ...) | ” | ” | ” | ” | ” | ” UDP | — | — | | | | — SSL/TLS (HTTPS) | ” | ” | …§ | …§ | ” | **USSD** Sending USSD requests | ” | | ” | ” | …§ | Decoding 7,8,16-bit response | ” | | ” | ” | …§ | **SMS** Sending | ” | | ” | ” | …§ | ” Sending Unicode | ” | | — | …§ | …§ | Reading | | | | | …§ | Incoming message event | | | | ? | …§ | **Calls** Dial, hangup | ” | | ” | …§ | …§ | …§ Receiving calls | ” | | ” | …§ | …§ | …§ Incoming event (RING) | — | | — | …§ | …§ | …§ DTMF sending | ” | | ” | …§ | …§ | …§ DTMF decoding | — | | …§ | …§ | …§ | …§ **Location** GSM location service | ” | ” | …§ | …§ | …§ | ” GPS/GNSS | ” | …§ | — | …§ | …§ | …§ ” - implemented— - planned…§ - not available on this modem - only some device models or firmware revisions have this feature (SIM8xx R14.18, A7, etc.) ## Supported modems - SIMCom SIM800 series (SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868) - SIMCom SIM900 series (SIM900A, SIM900D, SIM908, SIM968) - AI-Thinker A6, A6C, A7, A20 - U-blox SARA U201 (*alpha*) - ESP8266 (AT commands interface, similar to GSM modems) - Digi XBee WiFi and Cellular (using XBee command mode) - Neoway M590 ### Supported boards/modules - Arduino MKR GSM 1400 (*alpha*) - GPRSbee - Microduino GSM - Adafruit FONA (Mini Cellular GSM Breakout) - Adafruit FONA 800/808 Shield - ... other modules, based on supported modems More modems may be supported later: - [ ] Quectel M10, M95, UG95 - [ ] SIMCom SIM5320, SIM5216 - [ ] Telit GL865 - [ ] ZTE MG2639 - [ ] Hi-Link HLK-RM04 Watch this repo for new updates! And of course, contributions are welcome ;) ## Donation [![Donate BountySource](https://img.shields.io/badge/Donate-BountySource-149E5E.svg)](https://salt.bountysource.com/checkout/amount?team=tinygsm-dev) [![Donate Bitcoin](https://img.shields.io/badge/Donate-Bitcoin-orange.svg)](http://tny.im/aen) If you have found TinyGSM to be useful in your work, research or company, please consider making a donation to the project commensurate with your resources. Any amount helps! **All donations will be used strictly to fund the development of TinyGSM:** - Covering cellular network expences - Buying new hardware and modems for integration - Bounty Budget (to reward other developers for their contributions) - Implementing new features - Quality Assurance ## 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](https://github.com/vshymanskyy/TinyGSM/wiki/Powering-GSM-module) (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](tools/AT_Debug/AT_Debug.ino) 5. Check if GSM antenna is attached ## How does it work? Many GSM modems, WiFi and radio modules can be controlled by sending AT commands over Serial. TinyGSM knows which commands to send, and how to handle AT responses, and wraps that into standard Arduino Client interface. ## API Reference For GPRS data streams, this library provides the standard [Arduino Client](https://www.arduino.cc/en/Reference/ClientConstructor) interface. For additional functions, please refer to [this example sketch](examples/AllFunctions/AllFunctions.ino) ## 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. Please note that not every Arduino pin can serve as TX or RX pin. **Read more about SoftSerial options and configuration [here](https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html) and [here](https://www.arduino.cc/en/Reference/SoftwareSerial).** ### Diagnostics sketch Use this sketch to diagnose your SIM card and GPRS connection: File -> Examples -> TynyGSM -> tools -> [Diagnostics](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/Diagnostics/Diagnostics.ino) ### 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](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/FactoryReset/FactoryReset.ino) __________ ### License This project is released under The GNU Lesser General Public License (LGPL-3.0)

近期下载者

相关文件


收藏者