Home
GM862 Arduino Shield
Contents
1. GM862 requestModem ATHFCLASS 8 2000 true buf Serial println done byte GM862 getsTimeout char buf byte count 0 long timeIsOut 0 char c buf 0 timeIsOut millis timeout while timeIsOut millis amp amp if modem available count c modem read buf c uintl6 t timeout count 100 1 timeIsOut millis timeout if count 0 buf 0 count return count void GM862 switchOn Serial println switching on digitalWrite onOffPin HIGH Page 9 of 12 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl G El GM862 Arduino Shield User s Manual Pago 10 0 12 delay 2000 digitalWrite onOffPin LOW delay 1000 Serial println done void GM862 switchOff Serial println switching off digitalWrite onOffPin HIGH delay 2000 digitalWrite onOffPin LOW delay 1000 Serial println done void GM862 version Serial println version info GM862 requestModem ATHGMI 1000 false buf GM862 requestModem ATHGMM 1000 false buf GM862 requestModem ATHGMR 1000 false buf GM862 requestModem AT CSQ 1000 false buf Serial println done boolean GM862 isRegistered return state amp STATE REGISTERED void GM862 sendSMS char number char message char buf BUF LENGTH 7 char cmdbuf 30 AT CMGS Serial p
2. define onOffPin 4 define BUF LENGTH 100 NewSoftSerial modem rxGprs pin txGprs pin char buf BUF LENGTH int state 0 byte GM862 requestModem const char command uintl6 t timeout boolean check char buf byte count 0 char found 0 buf 0 Serial println command modem flush modem print command modem print Nr count GM862 getsTimeout buf timeout if count if check found strstr buf XrXnOKXrXn if found Serial println gt ok else Serial print not ok Serial println buf else Serial print buf Serial println buf Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl G MCI Gw862 Arduino Shield else User s Manual Serial println no response return count void GM862 checkNetwork char buf BUF LENGTH char result Serial println checking network GM862 requestModem ATHCREG result buf 11 if result 1 state STATE REGISTERED else state amp STATE REGISTERED Serial println done void GM862 init 3000 false buf Serial println initializing modem char buf BUF LENGTH GM862 requestModem AT 2000 true buf GM862 requestModem ATHIPR 9600 1000 true buf GM862 requestModem AT CMEE 2 GM862 requestModem AT BND 1 1000 true buf 2000 true buf
3. to develop projects on the following areas e Telemetry and Telecontrol e Intelligent security systems e Intelligent automatic selling systems e 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 5 9 VDC power regulation to 3 8 VDC 3 A maximum current consumption Power indicator Led GM862 modem status indicator Led User configurable Led oof WY GM862 ON OFF button Arduino reset button GM862 modem ADC port connection Dimensions 76 x 54 mm CON 9 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl VICI GM862 Arduino Shield User s Manual Page 5 of 12 DEVICE PARTS ADC Jumper GSM Antenna LED PWR Connector LED STAT m gi o LED USER ON OFF Button Arduino Reset GM862 Modem Button Connector Ar duinoShield WWW Ol1mex cl MCI TDD 00733 POHER 9999999099990 000000 E E M M G5 G6 G2 G8 G9 GIO GILGL2 ADC 3 8 R 3 3 5U GNOGND UIN GPS Antenna Connection Fig 1 GM862 Arduino Shield board e GM862 Modem Connector GM862 GPS modem connector e LED STAT GM862 modem operation indicator Led e LED PWR GM862 modem energized indicator Led e LED USER User configurable indicator e GSM Antenna Co
4. ITAL 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 UO pin or ALARM output pin GPIO7 GP UO pin or Buzzer output pin GPIO8 Configurable general purpose I O pin GPIO9 Configurable general purpose I O pin GPIO10 Configurable general purpose l O pin GPIO 1 1 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 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl
5. NewSoftSerial h files must be in the source folder Change the line 180 of the source code with the desired phone number you want to send an SMS to 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 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl VICI GM862 Arduino Shield User s Manual Page 7 of 12 Fig 2 GM862 Arduino Shield board assembly Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl 7 MCI GM862 Arduino Shield User s Manual Page 8 of 12 GM862 ARDUINO SHIELD EXAMPLE CODE e The following code was extracted from the library developed by http tinkerlog com and modified for working with Arduino Duemilanove board e This code sends an SMS to a programmer defined number with a pre defined text It also does the modem initialization and configuration e The source files can be downloaded from the author website or from www olimex cl GM862 GPS testing sketch used with Arduino Duemilanove and GM862 Arduino Shield V1 1 EA include NewSoftSerial h define STATE REGISTERED 4 define READ 1 define txGprs pin 3 define rxGprs pin 2 define ST_LED pin 7
6. User s Manual GM862 Arduino Shield Rev 1 2 MCI MA 0063 MCI Electronics www olimex cl Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl 7 mci electronics MCI Ltda Luis Thayer Ojeda 0115 Of 402 Santiago Chile www olimex cl Tel 56 2 3339579 Fax 456 2 3350589 MCI Ltda 2010 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 12 INTRODUCTION RETE AERE 4 ghe ig zc ee E IE EER pasko 4 DEVICE PAR EE 5 QUICK INSTALLATION AND PROGRAMMING GUIDE FOR THE GM862 abl eel zero 6 GM862 ARDUINO SHIELD EXAMPLE CODE e 8 PORT MAPPING iicn m 12 DOCUMENTAISTOR caras 12 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl 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
7. nnector External GSM antenna connector e GPS Antenna Connector External GPS antenna connector e ON OFF Button ON OFF modem button e Arduino Reset Button Resets the Arduino board e ADC Jumper Jumper for setting the GM862 modem ADC conversion value to 0 V Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl GM862 Arduino Shield User s Manual Page 6 of 12 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 2 oND Download the example program here 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 Insert SIM card into GM862 modem Connect 5 9 VDC Arduino board power supply Connect Arduino USB port to the PC If the FTDI drivers haven t been installed install them Download here Open Arduino Alpha Download here Open softSerial_Example_V2 pde source code Example source code introduced in section 5 NewSoftSerial cpp and
8. rintln sending SMS GM862_requestModem AT CMGF 1 1000 true buf send text sms strcat cmdbuf number strcat cmdbuf N GM862 requestModem cmdbuf 1000 true buf modem print message modem print Oxla BYTE GM862 getsTimeout buf 2000 Serial println buf Serial println done void setup 1 delay 10000 Serial begin 9600 modem begin 9600 pinMode txGprs pin OUTPUT pinMode rxGprs pin INPUT pinMode ST LED pin OUTPUT pinMode onOffPin OUTPUT digitalWrite ST LED pin LOW bitSet MCUCR PUD GM862 initialization GM862 switchon switch the modem on delay 4000 wait for the modem to boot GM862 init initialize the GM862 GM862 version request modem version info Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl D ICI GM862 Arduino Shield User s Manual Page 11 0f 12 while GM862 isRegistered delay 1000 GM862 checkNetwork check the network availability void loop GM862 sendSMS 6245 Your Message Change 6245 by your cellphone number digitalWrite ST LED pin HIGH delay 10000 GM862 switchOff while 1 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl GM862 Arduino Shield User s Manual Page 12 of 12 PORT MAPPING GM862 Arduino Shield port mapping Pin Name Function DIGITALO Serial RX DIG
Download Pdf Manuals
Related Search
Related Contents
TEATRO EN CASA Mode d`emploi de la télécommande 13 fonctions Plan Communal de Sauvegarde de la commune d`ESNANDES Panasonic BB-HCM511CE König USB 2.0 Bebida instantánea de extracto de té con plantas aromáticas Bebida Canon HJ17EX7.6B User's Manual Panasonic S18NKU-1 Installation Manual 3Com 3CRDW696 Network Card User Manual Sony XS-LD126P5 Copyright © All rights reserved.
Failed to retrieve file