GM862 Arduino Shield



Similar documents
GPRS Shield. Introduction

Overview. 1. GPS data tracking via GSM SMS / GPRS. 2. GPS data logging in internal memory. 3. Alarm alert via GSM SMS / Dialing / GPRS

Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual

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

Yun Shield Quick Start Guide VERSION: 1.0 Version Description Date 1.0 Release 2014-Jul-08 Yun Shield Quick Start Guide 1 / 14

IDD-213T User Manual. (Rev. 1.0) China Aerospace Telecommunications Limited

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

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

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

Technical description MX-1 VB Edge

GPS Vehicle and personal location tracker. User manual

Waterproof portable tracker and

Real-Time Vehicle Tracking System [RKI-1660]

Car Alarm Tracker Manual

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

FM4100 USER MANUAL V1.4

CCTR-800 Portable Real Time GPS Tracker

GSM HOME SECURITY SYSTEM

GSMPBX version 1.3 Datasheet

GSM Interfacing Board

INSTRUCTION. The smallest GPS watch locator in the country

Remote monitoring of Millenium 3 Logic Controller using Netbiter EasyConnect EC-220 & Netbiter Argos

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

Real-time Vehicle Tracking System

Different Ways of Connecting to. 3DLevelScanner II. A.P.M Automation Solutions LTD. Version 3.0

RN-XV-RD2 Evaluation Board

GTR-128/GTR-129 Motorcycle/ Vehicle Tracker Quick Start Guide

ATB50v1 GPRS / GPS Based Fleet Management Terminal. Datasheet

Bluetooth UART/RS232 Module

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

Manual for USB, GPRS Modem

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

MANUAL FOR RX700 LR and NR

Tele Eye DT Series. Installation Guide. Dialup CCTV Transmitter DT-103G DT-103P DT-103D

Vehicle GPS Tracker GP268. GP268 Vehicle GPS/GPRS Tracking and Monitoring System Presentation July, 2009

USER MANUAL V5.0 ST100

USB Plus+ RFID Reader Setup Guide

GPRS M-Bus Master. User Manual. An Economical and Practical Solution For Remote Automactic M-Bus Smart Meter Reading by GPRS In The Worldwide!

TRACKING AND SECURITY SYSTEM

SNMP-1000 Intelligent SNMP/HTTP System Manager Features Introduction Web-enabled, No Driver Needed Powerful yet Easy to Use

New OBD Smart PC Tool User Manual

MEITRACK T1 User Guide

User Manual. Genius GPS / GSM 810 Real Time GPS Tracker. Android App Download. Iphone App Download ENGLISH. Genius Advanced Technologies

USB HSPA Modem. User Manual

Hardware Interface Description

ALARM MONITORING & CONTROL SYSTEM TWCT22 USER MANUAL 1.1

Microcontroller Programming Beginning with Arduino. Charlie Mooney

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

FLEET MANAGEMENT & CAR SECURITY SYSTEM GPRS/GPS

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

User Manual Revision English Converter / Adapter Ethernet to RS232 / RS485 (Order Code: HD HD M HD HD M)

SMS GSM Alarm Messenger

Protect Driver Safety---Hidden installation & power down remove alarm,

Wireless Communication With Arduino

GPS Vehicle Tracker User Manual VT810

GPS Tracking Solution Division World Leading Global Tracking Technology

Modern Robotics, Inc Core Device Discovery Utility. Modern Robotics Inc, 2015

Web Site: Forums: forums.parallax.com Sales: Technical:

Vehicle GPS Tracker GP2068

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

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

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

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

GPS Multi-function Vehicle Positioning Tracker

Remote monitoring of Crouzet Millenium 3 Using Netbiter EasyConnect EC220 & Netbiter Argos

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

CCTR-811 Vehicle GPS Tracker

X-SOS 3000 Outdoor GPS tracking system with emergency button.

CCTR-800 Portable Real Time GPS Tracker

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

Getting Started Guide with WIZ550web

Advanced Vehicle Tracking System on Google Earth Using GPS and GSM

VEHICLE GPS TRACKER USER MANUAL VT-108

Design and implementation of modular home security system with short messaging system

User manual Compact Web PLC WP240 series IEC-line

Software User Guide UG-461

Fleet Tracking Capability. FX 500 / FX 250 FleetBroadband Satellite Terminal

Temperature & Humidity SMS Alert Controller

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

Autos Limited Ghana Vehicle Tracking Business Proposal

GW-GSM-02A. User's Guide. IQRF GSM Gateway. Firmware v3.10

Fleets Vehicle GPS Tracker TS20 User Manual. (Version 1.0)

MCOM VEHICLE TRACKING SYSTEM MANUAL

DSX Master Communications

SuperGuard VT-05 Vehicle Tracking Device

VTU010 Setup Guide Directions Ltd

Development of GSM and GPS based Cost Effective Telematics Module

ADVANCED VEHICLE TRACKING SYSTEM USING ARM7

Integrating Social Network Services with Vehicle Tracking Technologies

Vehicle Tracking System for Security and Analyzing Transportation Vehicle Information

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

Tracker-005 GPS Tracking System

TDP43ME NetPS. Network Printer Server. Control Center. for Ethernet Module

Ethernet Interface Manual Thermal / Label Printer. Rev Metapace T-1. Metapace T-2 Metapace L-1 Metapace L-2

SIMATIC S It s the Interplay that makes the difference. Siemens AG All Rights Reserved.

User Manual of VT200. GPS Vehicle Tracker. User Manual (Model: VT200) Please Read Carefully Before Operation - 1 -

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

User Manual of VT310N. GPS Vehicle Tracker. User Manual (Model: VT310N) Please Read Carefully Before Operation - 1 -

MSITel provides real time telemetry up to 4.8 kbps (2xIridium modem) for balloons/experiments

FLYPORT Wi-Fi G

Transcription:

User s Manual GM862 Arduino Shield Rev. 1.3 MCI-MA-0063 MCI Electronics Luis Thayer Ojeda 0115. Of. 402 Santiago, Chile Tel. +56 2 3339579 info@olimex.cl

MCI Ltda. Luis Thayer Ojeda 0115. Of. 402 Santiago, Chile Tel: +56 2 3339579 Fax: +56 2 3350589 MCI Ltda. 2011 Attention: Any changes and modifications done to the device will void its warranty unless expressly authorized by MCI. Manual Code: MCI MA - 0063

GM862 Arduino Shield User s Manual Page 3 of 13 INTRODUCTION... 4 FUNCTIONALITIES... 4 DEVICE PARTS... 5 QUICK INSTALLATION AND PROGRAMMING GUIDE FOR THE GM862 ARDUINO SHIELD... 6 GM862_SMS EXAMPLE SOURCE CODE... 8 GM862_LOAD_HTML EXAMPLE SOURCE CODE... 9 GM862_GPRS EXAMPLE SOURCE CODE... 11 PORT MAPPING... 13 DOCUMENT HISTORY... 13

GM862 Arduino Shield User s Manual Page 4 of 13 INTRODUCTION The main purpose of this document is to describe the GM862 Arduino Shield functionalities. This document covers all the functionalities supported by the shield. Basic GM862 modem configuration procedures are also suggested. The GM862 Arduino Shield enables de Arduino board to make phone calls, send SMS messages, send GPRS data, activate I/O board pins and much more. This merges the great amount of functionalities and flexibility of GM862 modems with the easiness and simplicity of Arduino. These features enables the user to develop projects on the following areas: Telemetry and Telecontrol. Intelligent security systems. Intelligent automatic selling systems. Vehicle fleet management systems. FUNCTIONALITIES The GM862 Arduino Shield basically provides adequate power for the Telit GM862 modem, and also adapts the pins for working with Arduino. Some specific features of this device are: 1) 5-9 [VDC] power regulation to 3.8 [VDC] 2) 3 [A] maximum current consumption 3) Power indicator Led 4) GM862 modem status indicator Led 5) User configurable Led 6) GM862 ON/OFF button 7) Arduino reset button 8) GM862 modem ADC port connection 9) Dimensions: 76 x 54 [mm]

GM862 Arduino Shield User s Manual Page 5 of 13 DEVICE PARTS GSM Connector Antenna ADC Jumper LED PWR LED STAT LED USER ON/OFF Button GM862 Connector Modem Arduino Reset Button GPS Antenna Connection Fig.1 GM862 Arduino Shield board. GM862 Modem Connector: GM862-GPS modem connector LED STAT: GM862 modem operation indicator Led LED PWR: GM862 modem energized indicator Led LED USER: User configurable indicator GSM Antenna Connector: External GSM antenna connector GPS Antenna Connector: External GPS antenna connector ON/OFF Button: ON/OFF modem button Arduino Reset Button: Resets the Arduino board ADC Jumper: Jumper for setting the GM862 modem ADC conversion value to 0 V.

GM862 Arduino Shield User s Manual Page 6 of 13 QUICK INSTALLATION AND PROGRAMMING GUIDE FOR THE GM862 ARDUINO SHIELD Before installing and programming the GM862 Arduino Shield a virtual serial port must be installed, and also, some of the Shield pins have to be connected. This is for communication with both the modem and PC, at the same time. This makes the software debugging procedure more fluid than using the hardware serial port only. 1. Download the example program here. 2. Install the Shield. See fig.2 for reference. A. Connect the GM862 modem. B. Align the shield in order to connect the shield side pins to the corresponding pins of the Arduino. C. Assembly the shield to the Arduino board ensuring ALL of the pins are connected. 3. Insert SIM card into GM862 modem. 4. Connect 5-9 VDC Arduino board power supply. 5. Connect Arduino USB port to the PC. 6. If the FTDI drivers haven t been installed, install them (Download here). 7. Open Arduino Alpha (Download here). 8. Open source code (Example source code introduced in section 5). NewSoftSerial library must be in installed in Arduino\libraries\NewSoftSerial 9. Change the phone number you want to send a SMS. 10. Click Upload button in Arduino Alpha. 11. Wait until Stat LED is ON. A. The modem behavior can also be seen by clicking the Serial Monitor button, configuring a baud rate of 9600 bps. At the end of this sequence, a text message was sent to the telephone number indicated in the source code.

GM862 Arduino Shield User s Manual Page 7 of 13 C A B TELIT D Fig.2 GM862 Arduino Shield board assembly.

GM862 Arduino Shield User s Manual Page 8 of 13 GM862_SMS EXAMPLE SOURCE CODE The following code was extracted from the library developed by http://tinkerlog.com and modified for working with Arduino Duemilanove board. This code sends an SMS to a programmer-defined number, with a pre-defined text. It also does the modem initialization and configuration. To upload the example source code, open this file scketch\gm862_sms\gm862_sms.pde Search function modem.sendsms( +569phone_number, message ). And replace phone number and message. Upload program to Arduino. If you open Serial monitor configured to 9600bps, you can see the procedures executed by Arduino. The source files can be downloaded from the author website or from. /* File: GM862_SMS.pde Author: Moisés Campos MCI Electronics */ #include <NewSoftSerial.h> #include <string.h> #include "GM862.h" #define BUF_LENGTH 100 #define txgprs_pin 3 #define rxgprs_pin 2 NewSoftSerial ser(rxgprs_pin,txgprs_pin); GM862 modem(&ser); void setup() Serial.begin(9600); modem.switchon(); modem.init(); while (!modem.isregistered()) delay(1000); modem.checknetwork(); void loop() modem.sendsms("+56998300000", "Hello World!"); digitalwrite(st_led_pin,high); delay(2000); modem.switchoff(); while(1);

GM862 Arduino Shield User s Manual Page 9 of 13 GM862_LOAD_HTML EXAMPLE SOURCE CODE This example configures a HTTP connection with a web server. After connect, the module request a HTML file from server and show it on Serial monitor, configured at 9600 bps. To upload the example source code, open this file scketch\gm862_load_html\ GM862_LOAD_HTML.pde Search function modem.settointernet( APN, user.). Replace APN, user name and password for the configuration used by your mobile internet provider Upload program to Arduino. If you open Serial monitor configured to 9600bps, you can see the procedures executed by Arduino. /* File: GM862_SMS.pde Author: Moisés Campos MCI Electronics */ #include <NewSoftSerial.h> #include <string.h> #include "GM862.h" #define BUF_LENGTH 100 #define txgprs_pin 3 #define rxgprs_pin 2 NewSoftSerial ser(rxgprs_pin,txgprs_pin); GM862 modem(&ser); char generalbuffer[500]; void setup() Serial.begin(9600); modem.switchon(); modem.init(); while (!modem.isregistered()) delay(1000); modem.checknetwork(); modem.settointernet("apn","username","password","www.roundsolutions.com", "80"); void loop() modem.connecttoserver(); byte i = 0; Serial.println("Load html..."); modem.sendd("get / HTTP/1.0\r\n"); // search twitter for gm862 modem.sendd("connection: keep-alive\r\n"); // write on the socket modem.sendd("\r\n"); Serial.println("receiving..."); while (i++ < 50) modem.receive(generalbuffer);

GM862 Arduino Shield User s Manual Page 10 of 13 if (strlen(generalbuffer) > 0) Serial.print("buf:"); Serial.println(generalBuffer); i--; Serial.println("done"); modem.closedconection(); digitalwrite(st_led_pin,high); modem.switchoff(); while(1);

GM862 Arduino Shield User s Manual Page 11 of 13 GM862_GPRS EXAMPLE SOURCE CODE This example opens a TCP/IP socket, reads an analog input and sends data to configured server in realtime. To upload the example source code, open this file scketch\gm862_gprs\ GM862_GPRS.pde Search function modem.settointernet( APN, user.). Replace APN, user name and password for the configuration used by your mobile internet provider Upload program to Arduino. If you open Serial monitor configured to 9600bps, you can see the procedures executed by Arduino. /* File: GM862_SMS.pde Author: Moisés Campos MCI Electronics */ #include <NewSoftSerial.h> #include <string.h> #include "GM862.h" #define BUF_LENGTH 100 #define txgprs_pin 3 #define rxgprs_pin 2 NewSoftSerial ser(rxgprs_pin,txgprs_pin); GM862 modem(&ser); char generalbuffer[100]; void setup() Serial.begin(9600); modem.switchon(); modem.init(); while (!modem.isregistered()) delay(1000); modem.checknetwork(); modem.settointernet("apn", "username", "password", "domain", "port"); void loop() modem.connecttoserver(); char iteracion =0; while(iteracion < 4) char tmp; Serial.println(""); float temperature = float(analogread(0)); temperature = processinsensor(temperature,-21.244,1.7908,-0.0278,0.0003,0,(100.0/1024)); strcpy(generalbuffer,"temperatura Actual = "); char *ptemporal = generalbuffer + strlen(generalbuffer); ftoa(ptemporal,temperature,1);

GM862 Arduino Shield User s Manual Page 12 of 13 modem.transmittoserver(generalbuffer); delay(5000); iteracion++; Serial.println(generalBuffer); modem.closedconection(); digitalwrite(st_led_pin,high); delay(2000); modem.switchoff(); while(1); float processinsensor(float sensor, float a, float ax,float axx, float axxx,float axxxx, float factor) sensor=(sensor*factor);//valor normalizado, y luego transformado en % sensor= (axxxx*pow(sensor,4)+axxx*pow(sensor,3)+axx*pow(sensor,2)+ax*sensor+a); return sensor; void *ftoa(char *a, double f, int precision) float p[] = 0.0,10.0,100.0,1000.0,10000.0,100000.0,1000000.0,10000000.0,100000000.0; char *ret = a; char mantiza[10]; long heiltal = long(f); ltoa(heiltal, a, 10); while (*a!= '\0') a++; *a++ = '.'; long decimal = abs(long((f - float(heiltal)) * p[precision])); ltoa(decimal, mantiza, 10); for(;strlen(mantiza) < precision; precision--) *a++ = '0'; strcpy(a, mantiza);

GM862 Arduino Shield User s Manual Page 13 of 13 PORT MAPPING GM862 Arduino Shield port mapping Pin Name/Function DIGITAL 0 Serial RX DIGITAL 1 Serial TX DIGITAL 2 SoftSerial RX DIGITAL 3 SoftSerial TX DIGITAL 4 ON/OFF Modem RESET RESET Ard EAR_HF+ Handset ear output, phase + EAR_HF- Handset ear output, phase - MIC_HF- Handsfree microphone input; phase -, nominal level 3mVrms MIC_HF+ Handsfree microphone input; phase +, nominal level 3mVrms GPIO5 Configurable general purpose I/O pin GPIO6 GP I/O pin or ALARM output pin GPIO7 GP I/O pin or Buzzer output pin GPIO8 Configurable general purpose I/O pin GPIO9 Configurable general purpose I/O pin GPIO10 Configurable general purpose I/O pin GPIO11 Configurable general purpose I/O pin GPIO12 Configurable general purpose I/O pin ADC ADC input 3.8V 3.8V regulated voltage DOCUMENT HISTORY Revision Date Edited by Description/Changes 1.0 August 12, 2010 E. Martin Initial document version 1.1 September 22, 2010 E. Martin Software Serial Port usage example code is included. 1.2 November 23, 2010 E. Martin New board version update. 1.3 July 21, 2011 M. Campos Includes new examples and library improvements.