Reference Language | Libraries | Comparison | Changes
The MKR GSM library can be installed using the Arduino library manager. With the Arduino MKR GSM 1400 and this library you can do most of the operations you can do with a GSM phone: place and receive voice calls, send and receive SMS, and connect to the internet over a GPRS network. The on board module, operates in 3G with a 2G fallback. Arduino MKR GSM 1400 has a modem that transfers data from a serial port to the GSM network. The modem executes operations via a series of AT commands. The library abstracts low level communications between the modem and SIM card. It relies on the Serial library for communication between the modem and Arduino. Typically, each individual command is part of a larger series necessary to execute a particular function. The library can also receive information and return it to you when necessary. This library is based on the GSM library of the Arduino GSM shield, adding new features like UDP, SSL and DTMF tone recognition. Library structureAs the library enables multiple types of functionality, there are a number of different classes.
Library compatibilityThe library tries to be as compatible as possible with the current Ethernet and WiFi101 library. Porting a program from an Arduino Ethernet or WiFi101 library to an Arduino with the MKR GSM 1400 should be fairly easy. While it is not possible to simply run Ethernet or WiFi101 compatible code on the MKR GSM 1400 as-is, some minor, library specific, modifications will be necessary, like including the GSM and GPRS specific libraries and getting network configuration settings from your cellular network provider. ExamplesThere are two groups of examples for the Arduino MKR GSM 1400. There are examples to illustrate the possibilities of the board, like how to send SMS messages and connect to the internet. There is also set of example tools that you can use to debug the functionality of the library and the hardware at lower level.
TOOLS
For additional information on the Arduino MKR GSM 1400, see the Getting Started page and the Arduino MKR GSM 1400 hardware page.
|
GSM classThis class prepares the functions that will communicate with the modem.
GSMVoiceCall classEnables voice communication through the modem. A microphone and speaker need to be added for full use.
GSM_SMS classFacilitates sending and receiving Short Message Service (SMS) messages.
GPRS classThis class is responsible for including the files that are part of the library that involve TCP, UDP and SSL communication. GSMClient and GSMSSLClient classThe client class creates clients that can connect to servers and send and receive data.
GSMServer classThe Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices). GSMModem classThe GSMModem class facilitates diagnostic communication with the modem. GSMScanner classThe GSMScanner class provides diagnostic information about the network and carrier. GSMPIN classThe GSMPIN class has utilities for communicating with the SIM card.
GSMBand classThe GSMBand class provides information about the frequency band the modem connects to. There are also methods for setting the band. GSMUDP classThe UDP class enables UDP message to be sent and received. |
Corrections, suggestions, and new documentation should be posted to the Forum.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.