Home

GM862 Arduino Shield

image

Contents

1. Cl electronics GPS Antenna Connection Er E M Mr G5 G6 G2 G8 G9 GIO GI1G12 ADC 3 8 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 Connector 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 Qo VICI 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
2. 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 l Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl L mci GM862 Arduino Shield User s Manual Page 12 of 13 modem transmittoServer generalBuffer delay 5000 iteraciontt 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 A sensor sensor factor valor normalizado y luego transformado en sensor axxxx pow sensor 4 taxxx pow sensor 3 axx pow sensor 2 ax sensor ta 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 Ya O att ark rts long decimal abs long f float heiltal p precision ltoa decimal mantiza 10 for strlen mantiza precision precision arr 0 strepy a mantiza Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 inf
3. 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 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 ONO qi e 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 o VICI GM862 Arduino Shield User s Manual Page 7 of 13 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 G MICI GM862 Arduino Shield User s Manual Page 8 of 13 GM862 SMS EXAMPLE SOURCE CODE e The following code was extracted from the library developed by hitp 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 lt also does the modem initialization and configuration e To upload the example source c
4. HTML pde Search function modem settolnternet 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 le GM862 SMS pde Author Mois s Campos MCI Electronics www olimex cl include lt NewSoftSerial h gt include lt string h gt include GM862 h define BUF LENGTH 1 00 define txGprs pin 3 define rxGprs pin 2 NewSoft5erial ser rxGprs pin txGprs pin GM862 modem amp 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 seria l prantin Load hemi 3 modem sendd GET HTTP 1 ONrNn search twitter for gm862 modem sendd Connection keep alive r n write on the socket modem sendd r n Serial println receiving while i lt 50 modem receive generalBuffer Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl L mci GM862 Arduino Shield User s Manual if strlen generalBuffer gt 0 Serial print buf Serial println generalBuffer Seri
5. User s Manual GM862 Arduino Shield Rev 1 3 MCI MA 0063 MCI Electronics www olimex cl Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info Qolimex cl 2 mici electronics MCI Ltda Luis Thayer Ojeda 0115 Of 402 Santiago Chile www olimex cl 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 Qa TTICI GM862 Arduino Shield User s Manual Page 3 of 13 INTRODUCTION rsr FF qFRRRRTTTTF TTT Fr UNDE db 4 FUNCTIONALITIES gum anuso o o E SSL KNA EER ko kn GG KUNIGA 4 DEVIGE PAFO Ossaka lo a e Eno eo do aao do kadas la QUICK INSTALLATION AND PROGRAMMING GUIDE FOR THE GM862 ARDUINO SHIELD ss sano moska MINE aa eG ao San ksa ee 6 GM862 SMS EXAMPLE SOURCE CODE eere 8 GM862 LOAD HTML EXAMPLE SOURCE CODE eernrmmmRIHR Ree 9 GM862 GPRS EXAMPLE SOURCE CODE eem 11 me ZH tm T 13 DOCUMENT HISTORY sone E EEE OERO E EEE oper epo Dee Gde Esos 13 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl Qo VICI 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
6. al println done modem closedConection digitalWrite ST LED pin HIGH modem switchOff while 1 Page 10 of 13 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl L MICI GM862 Arduino Shield User s Manual Page 11 of 13 electronics GM862 GPRS EXAMPLE SOURCE CODE e his example opens a TCP IP socket reads an analog input and sends data to configured server in realtime e o upload the example source code open this file scketchhGM862 GPRS GM862 GPRS pde e Search function modem settolnternet APN user Replace APN user name and password for the configuration used by your mobile internet provider e Upload program to Arduino e f 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 www olimex cl include lt NewSoftSerial h gt include lt string h gt include GM862 h define BUF LENGTH 100 define txGprs pin 3 define rxGprs pin 2 NewSoftSerial ser rxGprs pin txGprs pin GM862 modem amp 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 lt 4
7. 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 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 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 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl D VICI GM862 Arduino Shield User s Manual Page 5 of 13 DEVICE PARTS ADC Jumper GSM Antenna LED PWR Connector LED STAT es LED USER ON OFF Button Arduino Reset GM862 Modem Button Connector ArduinoShield WWW olimex cl MCI TOD 00733 AO
8. o olimex cl www olimex cl Qo rci GM862 Arduino Shield User s Manual Page 13 of 13 PORT MAPPING GM862 Arduino Shield port mapping Pin DIGITAL 0 DIGITAL 1 DIGITAL 2 DIGITAL 3 DIGITAL 4 RESET EAR _HF EAR HF MIC HF MIC HF GPIOS GPIO6 GPIO7 GPIO8 GPIO9 GPIO10 GPIO11 GPIO12 ADC 3 8V Name Function Serial RX Serial TX SoftSerial RX SoftSerial TX ON OFF Modem RESET Ard Handset ear output phase Handset ear output phase Handsfree microphone input phase nominal level 3mVrms Handsfree microphone input phase nominal level 3mVrms Configurable general purpose I O pin GP I O pin or ALARM output pin GP I O pin or Buzzer output pin Configurable general purpose I O pin Configurable general purpose I O pin Configurable general purpose I O pin Configurable general purpose I O pin Configurable general purpose I O pin ADC input 3 8V regulated voltage DOCUMENT HISTORY Revision Date Edited by Description Changes 1 0 August 12 2010 Initial document version 1 1 September 22 2010 E Martin software Serial Port usage example code is included update July 21 2011 M Campos Includes new examples improvements Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl
9. ode open this file scketch GM862_SMS GM862_SMS pde e Search function modem sendSMS 569phone_number message And replace phone number and message e Upload program to Arduino e f you open Serial monitor configured to 9600bps you can see the procedures executed by Arduino e The source files can be downloaded from the author website or from www olimex cl File GM862 SMS pde Author Mois s Campos MCI Electronics www olimex cl id include NewSoftSerial h include lt string h gt include GM862 h define BUF LENGTH 100 define txGprs pin 3 define rxGprs pin 2 NewSoftSerial ser rxGprs pin txGprs pin GM862 modem amp 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 Luis Thayer Ojeda 0115 Of 402 Santiago Chile Tel 56 2 3339579 info olimex cl www olimex cl L mci electronics GM862 Arduino Shield User s Manual Page 9 of 13 GM862 LOAD HTML EXAMPLE SOURCE CODE Fi 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 scketcehhGM862 LOAD HTML GM862 LOAD

Download Pdf Manuals

image

Related Search

Related Contents

pdf - 7,76 Mo - Ville de Vincennes  Our commitment: excellence  GRILS ENCASTRÉS  D-Link DGS-2208 Switch  Rapida introduzione al tastierino: descrizione dei campi e  Craftsman 486.243201 User's Manual  warning - Elektronický katalog Schneider Electric  

Copyright © All rights reserved.
Failed to retrieve file