GSM Click - Cross-Platform Development Quick Start Guide



Similar documents
In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM Version 1.32r 10/9/2012 USER MANUAL

Maestro Heritage. GSM GPRS Modem 850 / 900 / 1800 / 1900 USER MANUAL Rev. 03

Using HyperTerminal with Agilent General Purpose Instruments

Intro to Intel Galileo - IoT Apps GERARDO CARMONA

LOW COST GSM MODEM. Description. Part Number

ETM9350-1/ Quick Start Guide

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Android: How To. Thanks. Aman Nijhawan

Matrix 510/520 User Guide

RN-XV-RD2 Evaluation Board

Using Xbee in Serial Communication

Setting up IO Python Library on BeagleBone Black

Chapter1. Interface Introduction

CPSC 226 Lab Nine Fall 2015

Quectel Cellular Engine

USER GUIDE EDBG. Description

Bluetooth UART/RS232 Module

ipac-5010 User Guide + -

UniPi technical documentation REV 1.1

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

IP SERIAL DEVICE SERVER

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Qualcomm IR-I 2 C Bridge Demo

Version 1.0. File System. Network Settings

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Serial Communications

PM1122 INT DIGITAL INTERFACE REMOTE

M2M 3350 GSM/GPRS Modem User s Manual & Reference Guide Revision 1 June 2007

G-router GSM/GPRS to RS-232 and Ethernet Gateway Roaming HOWTO guide

EZmoto V2. Product description Rev. 6 10/01/2014. EZmoto V2 Product description Rev.6 10/01/2014

2014 GSM SHIELD COMPATIBLE WITH ARDUINO GSM SHIELD USING SIMCOMM (SIM900A)

Example Connection between USB Host and Android

What is Easy-Radio? Devices Covered. Frequency Hopping Transceiver. Where x00 denotes frequency of operation. E.g. 400 = 433MHz

ELT-865 Terminal User Manual

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Single channel data transceiver module WIZ2-434

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

PBX DIGITAL TELEPHONE EXCHANGE MAINTENANCE GUIDE

Android, Bluetooth and MIAC

Bluetooth HC-06 with serial port module Easy guide

GSM Interfacing Board

Date Rev. Details Author

Quick Note 32. Using Digi RealPort with a Digi TransPort Router. UK Support September 2012

XPort Universal Demo Board User Guide

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

ezvsp User's Manual ( Version 2.1d ) Sollae Systems Co., Ltd.

Display Message on Notice Board using GSM

T3 Mux M13 Multiplexer

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

Debugging Network Communications. 1 Check the Network Cabling

M85 OpenCPU Solution Presentation

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

MODBUS TCP to RTU/ASCII Gateway. User s Manual

OpenCV on Android Platforms

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

USB TO SERIAL ADAPTER

Serial Communications

Board also Supports MicroBridge

Quectel M72 Development Board

FLYPORT Wi-Fi G

Wireless Communication With Arduino

Getting started with ARM-Linux

SIM808 V2.2.5 user manual V1.2. Electrodragon.com

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

Software User Guide UG-461

The following is a summary of the key features of the ARM Injector:

L10. Quectel GPS Engine. EVB User Guide L10_EVB_UGD_V1.00

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Wifi Web Server Module w TF Socket User s Guide

Dial-Up / Leased-Line Modem. User Manual. AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) Manual Rev A + - DLM CTS RTS DTR DSR

SSH to BeagleBone Black over USB

BEC 6200WZL. 4G/LTE Cellular Broadband Router. Quick Start Guide

Modbus Communications for PanelView Terminals

APPLICATION NOTE. How to build pylon applications for ARM

Technical description MX-1 VB Edge

USB / Data-Acquisition Module NOW LEAD-FREE

One Port Serial Server Users Manual Model ESP901, ESP901E

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

NVIDIA Tegra Android Platform Support Pack Getting Started Guide

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

MT-350 SMS. Operation Manual. PORTech Communications Inc.

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

SecureLinx Spider Duo Quick Start Guide

USER GUIDE Programming Adapter Cable for Fujitsu Flash Microcontroller- F²MC-16LX/FR Family Fujitsu Microelectronics America, Inc.

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

ESP8266 WiFi Module Quick Start Guide

Starting Guide - Poseidon 3265 First steps for remote monitoring with Poseidon & GSM

KTA-223 Arduino Compatible Relay Controller

First Steps. Remote Access Gateway IGW/922. with DIL/NetPC ADNP/9200

Using IDENT M System T with Modbus/TCP

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

Cable Specifications and Information

Getting Started Guide with WIZ550web

Low Speed Modems for Dial and Leased Circuits 2400E-2 (Stand Alone) 2400R-2 (Rack Mount) 2400E-4 (Stand Alone) 2400R-4 (Rack Mount)

Transcription:

GSM Click - Cross-Platform Development Quick Start Guide Overview This document explains how to use the MikroElektronika GSM Click board as an accessory to the following host development platforms (microcontrollers): Atmel s SAMA5D3 Xplained Beaglebone Black RIoTboard The GSM Click board contains a Telit GL865-QUAD GSM/GPRS module allowing users to connect their hardware to a GSM cellular network. Sample C programs for each platform are presented. GSM Click Hardware The board connects to the host platform via the mikrobus connector. Communications with the GL865 are by a simple asynchronous serial connection. By default, the serial port connection configuration between the microcontroller and GL865 is 115,200 bps, 8 bits by word, no parity, 1 stop bit. Data are "logic level" voltages (0V, 3.3V) and not RS-232 levels (-12V, +12V). Hardware flow control is affectively disabled by holding the clear-to-send (CTS) line low (enabled). In the example program, the request-to-send (RTS) signal is ignored by the GL865. The module hardware is reset with a digital input. At the GL865 chip itself, the reset line is active low (pull to ground to reset the chip), but the GSM Click module inverts this signal. The GSM Click module hardware is reset by pulsing the reset line from 0 (ground) to 1 (logic high, 3.3V) and back to 0. Details for the GL865-QUAD module are found in the Data Sheets and Application Notes (http://www.telit.com/products/product-service-selector/product-serviceselector/show/product/gl865-quad/). SIM Cards To fully utilize the module, a subscriber identification module (SIM) card must be installed and activated. The SIM card ties the module to the cellular provider's network, billing information, etc., and is necessary for making calls, sending text messages, etc. For basic testing of the GSM Click Board, the microcontroller can communicate with the module, query the module status, etc. with no SIM card installed.

Software AT Commands Control and configuration commands are exchanged between the GSM module the host microcontroller using "AT Commands", a legacy computer language originally developed for dial-up modems. The module uses a mix of standard and propriety commands. AT commands always begin the "AT" characters and end with the carriage return character. For example, the check the SIM card's own phone number, this command is sent: AT+CNUM<cr> AT commands and transmitted and their responses received on the asynchronous serial (UART) channel. See the Telit Modules Software User Guide (http://www.telit.com/index.php?eid=tx_nawsecuredl&u=0&g=0&t=1409342439&hash=ce7639794a71 937f8a1a095db7de3cde671e1057&file=downloadZone/522.pdf) for a complete list and explanation of AT commands. Example Module Configuration The GSM module is very versatile, capable of sending data, voice, and other functions typical of cellular devices. The example software configures the module and sends an SMS (short message service) text message. At initialization, the following AT commands are sent, in order. All commands in with the carriage return character (not shown in table). Command AT ATE0 AT+CMEE=2 AT+CPIN? AT+CNUM AT#SLED=2 AT+CREG=2 AT+CREG? AT+CMGF=1 AT+CNMI=2,2 AT+COPS=4,0,T-Mobile AT+COPS? AT+CSQ Description Wake-up Echo Off Extended Error Codes Enabled Check SIM status Display Phone number Enable Status LED (Should be the default!!) Set Registration Mode Get Registration Use ASCII Text format for SMS Receive text messages directly via +CMT: unsolicited response Select the operator as T-Mobile Check Carrier/Registration Get RSSI

Example Software Flow Low-level microcontroller intitialization (clock, GPIO, etc) Open, configure the serial port (com between host MCU and Click module) Reset the Click Module Read and print any received data from module Read characters from terminal Act on input (send command, etc.) After initialization, users interact with the software through the console (standard input/output). Single character commands are entered which causes the software to send specific AT commands. User Input Action or AT Command e Sends escape sequence h Displays available commands q Quits the program r Check RSSI, AT+CSQ s Reads the service status, AT+COPS? t *Sends a text message. See note. z Resets the module *Sending a text message requires entering the destination and phone number. Once entered, the AT commands sent are:

AT+CMGS=<phone number><cr> <text message><ctrl-z> Even if no SIM card is connected, the Click module should respond, possibly with an error code, to AT commands. Connecting the GSM Click to the SAMA5D3 XPlained Board Connecting the GSM Click board to the SAMA5D3 XPlained board requires using the Arduino UNO click shield adapter board (http://www.element14.com/community/docs/doc-66846). The adapter board makes the following connections: SAMA5 XPlained Pin SAMA5 XPlained Pin Arduino UNO Click GSM Click Pin Configuration Shield Pin 3.3V 3.3V 3.3V GND GND GND PD23 Output RST/A3 RST PC29 / URXD0 Input HDR TX TX PC30 / UTXD0 Output HDR RX RX PC25 Input PD2/INT0 SCL (acts as RTS) PC9 Output PB2/SPI-SS SDA (acts as CTS) PD23 Input (not used) PC0/AN0 AN (acts as PWRMON) PC18 Inputs (not used) PD6/PWMA PWM (acts as GPIO2) The example code assumes that the Click Board is installed on the Arduino UNO Click Shield Adapter Bus 1. On the adapter board, SW1 must be set to "UART." The example assumes that the SAMA5D3 Xplained board is running the factory-installed Poky Linux firmware.

In the default factory Linux configuration, the SAMA5 does not have the necessary power supply rail (VDDANA) enabled to use PDxx. This voltage supply is generated by an external regulator which is controlled by I2C commands. Before running the example program, enable the supply by executing the config_gpio.sh script which is part of the example program files. #./config_gpio.sh Compile and Run the Example Program 1. The example code requires a PC running Linux in order to cross-compile and install the program. The instructions for building the cross-compile toolchain can be found at http://www.at91.com/linux4sam/bin/view/linux4sam/pokybuild#how_to_build_poky_for_at9 1. Build the toolchain. 2. Connect the SAMA5D3 XPlained board to an Ethernet connection and power-on the board. Using the serial port connection, connect to the SAMA5 board. From the shell, get the IP address of the SAMA5 board: # ifconfig eth0

3. Download the example code from http://www.element14.com/community/docs/doc- 70418#cdownloads and extract the files to convenient location. 4. Edit the makefile to use the actual IP address of the SAMA5 board. 5. Setup the build environment by running the following: # source /opt/poky/1.5.1/environment-setup-cortexa5hf-vfp-poky-linux-gnueabi 6. From the directory of the example program, compile the source code with make: # make sama5 7. Install the program into the target's file system at /home/root #make install_sama5 8. Run the program. In the SAMA5 shell, run # cd /home/root #./ GSM_Click_sama5 9. Type single character commands (i.e. "r", "s") on the terminal followed by <enter>. The response from the module will be displayed. 10. To send a text message, enter the following, substituting 2165551212 with your destination's phone number: t<enter> 2165551212<enter> Hello from SAMA5!<enter> Connecting the GSM Click to the BeagleBone Black Connecting the GSM Click board to the Beaglebone Black requires using the Tigal BeagleBone mikrobus Cape adapter board (http://www.element14.com/community/docs/doc-66837). The adapter board makes the following connections: Beaglebone Black Pin Beaglebone Black Pin BeagleBone mikrobus GSM Click Pin Configuration Cape Adapter Pin VDD_3V3EXP 3.3V 3.3V Gnd GND GND P9.12 (GPIO1-28) Output RST RST P9.21 (UART2_RXD) Input RX TX P9.22 (UART2_TXD) Output TX RX P9.28 (GPIO3-17) Input CS SCL (acts as RTS) P9.15 (GPIO1-16) Output INT SDA (acts as CTS) Not connected AN (acts as PWRMON) P9.14 (GPIO1-18) Input (not used) GP2 PWM (acts as GPIO2) The example code assumes that the Click Board is installed on the BeagleBone mikrobus Cape Adapter Host 1. The example assumes that the Beaglebone Black is running the factory-installed Linux (debian) firmware.

Note CTS and RTS are on the I2C pins and changing them to GPIO will require modifying the base device tree, so the GSM_Click.c program does not use these pins. Compile and Run the Example Program 1. Download the example code from http://www.element14.com/community/docs/doc- 70418#cdownloads and extract the files to convenient location. 2. The example code requires gcc, BB-UART2-00A0.dtbo or BB-MIKROBUS-01-00A1.dtbo, and root access. a. Instructions to download BB-MIKROBUS-01-00A1.dtbo can be found at http://elinux.org/tigal:beaglebone_mikrobuscape b. https://www.tigal.com/wiki/doku.php?id=tigalcapes:bb_mikrobus_cape i. On this site they will also explain how to install the overlay and use it, along with other helpful information. 3. Next go to /sys/devices/bone_capemgr.9/ a. This directory can differ depending on the OS you are running. 4. Enter in the following command echo BB-UART2 > slots 5. Now you can enter in the following command to see that BB-UART2 has been loaded correctly, cat slots.

a. The output should look something like this: 0: 54:PF--- 1: 55:PF--- 2: 56:PF--- 4: ff:p-o-- Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 5: ff:p-o-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 6: ff:p-o-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN 7: ff:p-o-l Override Board Name,00A0,Override Manuf,BB-UART2 b. To remove this BB-UART2 enter in the following command -7 > slots. c. We enter in 7 since that is the number that BB_UART2 was assigned in our case. i. WARNING: The above command to unload the overlay may crash your system depending on the version you currently have installed. ii. The overlay will not be loaded when you reboot your system, unless you set it to load at boot at the /boot/uboot/uenv.txt. 6. Compile the code using gcc Wall GSM_Click.c o GSM_Click a. Wall enables all warnings b. o Specify the output filename c. Technically you do not need either of these two flags to compile the sample code. They are just nice to have. 7. Run the program. In the BBB shell, run./gsm_click 8. Type single character commands (i.e. "r", "s") on the terminal followed by <enter>. The response from the module will be displayed. 9. To send a text message, enter the following, substituting 2165551212 with your destination's phone number: t<enter> 2165551212<enter> Hello from BBB!<enter> Connecting the GSM Click to the RIoTb Board Connecting the GSM Click board to the RIoTboard requires the use of the RIoTboard Adapter board (http://www.element14.com/community/docs/doc-68821). The adapter board makes the following connections: RIoTboard Pin RIoTboard Pin RIoTboard Adapter Pin GSM Click Pin Configuration 3.3V 3.3V 3.3V GND GND GND GPIO4_IO16 Output CSPI2_CS0 RST UART3_RX Input UART3_TXD TX UART3_TX Output UART3_RXD RX GPIO5_IO12 Output I2C3_SCL SCL (acts as RTS)

GPIO5_IO06 Input I2C3_SDA SDA (acts as CTS) Not connected AN (acts as PWRMON) DISP0_DAT8 Input (not used) PWM1 PWM (acts as GPIO2) The example assumes that the RIoTboard is running the factory-installed Android firmware. Compile and Run the Example Program 1. *The example code requires the installation of the following tools on the development PC: a. Android Software Development Kit (SDK) b. Android Native Development Kit (NDK) c. Java Development Kit (JDK) d. gcc and make tools (which can be installed by mingw MinGW) e. Cygwin f. A terminal emulator such as Putty. 2. Download the example code http://www.element14.com/community/docs/doc- 70418#cdownloads and extract the files to convenient location. 3. From the command line, change the jni directory in the example code. 4. Build the software with the ndk build tool:

> ndk-build 5. Install the software onto the RIoT Board: > adb push libs/armeabi/ GSM_Click /data/local/tmp 6. Open a terminal connection (e.g. with Putty) to the target platform. 7. Change directories to the install location (/data/local/tmp) # cd /data/local/tmp 8. Make the file executable: # chmod 777 GSM_Click 9. Run the program./gsm_click 10. Type single character commands (i.e. "r", "s") on the terminal followed by <enter>. The response from the module will be displayed. 11. To send a text message, enter the following, substituting 2165551212 with your destination's phone number: t<enter> 2165551212<enter> Hello from RIoTboard!<enter>