Home
GSM I/O Relay board Users Manual
Contents
1. w zdcc bank oO wel BM v We bring the world to you ISO 9001 2000 rhydolabz com www rhydoLA BZ com E BASIC COMMANDSFOR SMS The Modem is controlled by the host controller using AT Attention Commands The format of an AT command from the HOST to the module shall be lt AT command gt lt cr gt If The format of the OK code from the module to the HOST shall be OK The format of the ERROR code from the module to the HOST shall be CME ERROR err COMMAND AT r n DESCRIPTION Check whether communication is established RESULT CODE ATEO R n Echo Off AT CMGF Iun AT CMGS Mobile Number r n Send SMS to the Mobile Number AT CMGR Sms Number r n Read the SMS with message index number stored in the SIM card CMGR REC UNREAD 919349750763 0 0 10 05 21 10 09 38 00 RESULT CODE Message Data AT CMGD Sms Number r n Delete the SMS with message index number stored in the SIM card Note lt cr gt lt If gt corresponds to Carriage Return and Line Feed ie Wn or 0x0d 0x0a Detailed AT Command set is given as a separate document MOODY INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you f rhydolabz com www rhydoLA BZ com E SAMPLE CODE FORINTERFACINGWITH MICROCONTROLLER This program module sends an SMS from the modem to a prefixed number i void main SerialPortl nit Serial Communication 9600 N 8
2. 1 Send2Gsm AT r n Transmit AT to the module Module sends OK DelayS 2 2 sec delay a Send2Gsm ATEOW n Echo Off T DelayS 2 2 sec delay i Send2Gsm AT CMGF 1 r n Switch to text mode DelayS 2 2 sec delay Send2Gsm AT CMGS 919447367176 r n Send SMS to a cell number DelayS 2 2 sec delay ii Send2Gsm TEST DATA FROM RhydoLABZ COCHI N Input SMS Data i SerialTx 0x1a Ctrl Z indicates end of SMS i DelayS 2 2 sec delay TI while 1 Function Description SerialPortInit Module to initialize serial communication parameters Send2Gsm Module to transmit a string of data through Serial Port SerialTx Module to transmit a byte through serial port INTERNATIONAL CERTIFICATIO FICATION ISO 9001 2000 We bring the world to you rhydolabz com www rhydoLA BZ com E GETTING STARTED Insert SIM card Open the SIM cardholder After inserting the SIM card lock the holder Connect Antenna Screw the RF antenna on the RF cable output provided Power Supply The board supports two power supply options Using a power adaptor 9 12V or from the screw terminal You can use any of the options Network Led The Network Led indicates the various status of GSM module eg Power on network registration amp GPRS connectivity When the modem is powered up the status led will blink every second After the Modem registers in the network takes 50 60 sec
3. Programmer Tools WEE Window Help nsu sme sawe Select Device Configuration Bits ID Memory Settings MOODY INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you A rhydolabz com www rhydoLA BZ com S E 4 Select the device as PICI6FS77A Select Device Device Family v ALL Microchip Tool Support Programmers PICSTARTPlus MPLABICD 2 Pickit2 PRO MATE II PICkit 1 MPLAB PM3 MPLAB REAL ICE Language and Design Tools ASSEMBLER COMPILER VDI 3 90 Debuggers MPLAB SIM MPLAB ICD 2 Pickit2 B MPLAB REAL ICE MPLAB ICE 2000 MPLAB ICE 4000 PcCm16xv0 No Module 5 Go to Programmer menu and Select Programmer as MPLAB ICD 2 MPLAB IDE v7 60 File Edit View Project Debugger Bg Tools Configure Window Help E in 8 EAL select Programmer wv None a a Se 1 PICSTART Plus L Untitled Wor Sele 2 MPLAB ICD 2 3 AM851 Quick Programmer Beta 4 PICkit 2 a MPLAB PM 3 Esk Find in Files MPLAB ICD 2 Connecting to MPLAB ICD 2 Connected setting Vdd source to target Target Device PICTBFO A4 found revision Rev Od Reading ICD Product I Running ICO Self Test Passed MPLAB ICD 2 Ready gt 7 Go to File Menu Click Import and Select the hex file you wish to download
4. SENT AS AN SMS 1 Read the Status of all Devices COMMAND DEV STA Read status of all devices digital value of ADC channels and send these data as DESCRIPTION an SMS to the Administrator Number GSM I O Board Output Devices Relay 1 OFF 2 OFF 3 OFF Dev1 OFF RESULT SMS Dev2 OFF Dev3 OFF Input Devices Dev1 ON Dev2 ON Dev3 ON Analog Pin 1 0082 2 0068 3 0069 rhydoLABZ p Relay LED Control RELIION Switch ON Relay 1 and LED 2RELLOFF Switch OFF Relay 1 and LED COMMAND DESCRIPTION 2REL2 ON Switch ON Relay 2 and LED COMMAND DESCRIPTION REL2 OFF Switch OFF Relay 2 and LED COMMAND DESCRIPTION 2REL3 ON Switch ON Relay 3 and LED COMMAND DESCRIPTION 2REL3 OFF Switch OFF Relay 3 and LED M O O D Y We bring the world to you CERTIFICATION ISO 9001 2000 rhydolabz com www rhydoLA BZ com d Device Control COMMAND DESCRIPTION DEVI ON Make PORTB Pin 1 RB1 High COMMAND DESCRIPTION DEVI OFF Make PORTB Pin I RB1 Low COMMAND DESCRIPTION DEV2 ON Make PORTB Pin 2 RB2 High COMMAND DESCRIPTION 2DEV2 OFF Make PORTB Pin 2 RB2 Low COMMAND DESCRIPTION DEV3 ON Make PORTB Pin 3 RB3 High COMMAND DESCRIPTION DEV3 OFF Make PORTB Pin 3 RB3 Low M O O D Y We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000 f rhydolabz com www rhydoLA BZ com Loo SOS TECHNICAL SUPPORT If you are experienci
5. com COTY MOODY We bring the world to you INTERNATIONAL TIFICATION ISO 9001 2000
6. connected to RDO will be ON for a few seconds at start up reset and will be OFF after the initialization is over gt The board responds to the SMS send from the Administrator number only The Administrator number is stored in the permanent memory The user can change overwrite the number by means of an SMS from his her mobile phone to the SIM in the GSM I O Board The SMS format for setting the Administrator Number is 7ADMIN Question Mark gt lt ADMIN gt lt Asterisk gt gt After setting the Administrator number the user can send SMS to the I O Board from his mobile phone There are various commands to ON OFF the output devices Also the user can monitor the status of all input and output devices including the converted digital value of the analog channels gt The format of the SMS commands send from the Administrator Mobile is as follows DEVICE NAME FUNCTION Question Mark gt lt DeviceName gt lt Exclamation Mark gt lt Function gt lt Asterisk gt POINTS TO NOTE Delete all SIM Messages SMS from the card before inserting it in the GSM I O Board The Administrator Mobile Number will be set by rhydoLABZ while testing the board Remember to change the number before you start testing the software The system accepts SMS data in Capital Letters only MOODY INTERNATIONAL CERTIFICATIOI FICATION ISO 9001 2000 We bring the world to you rhydolabz com www rhydoLA BZ com EXAMPLE COMMANDS TO BE
7. from the desired drive We bring the world to you ISO 9001 2000 f rhydolabz com 8 Set Configuration Bits from Configure Menu as listed below Wi Configuration Bits n Configuration Bits set in cade Address Value Category Setting 2007 3F3 Oscillator HS Watchdog Timer HET Power Up Timer Ort Brown Out Detect OrIf Low Voltage Program Disabled Flash Program Write Write Protection Off Data EE Read Protect Off SPEISgtet8t B Oft 9 Click the Program Button or Select Program from the programmer menu to download the hex code to the Board 10 Wait till programming finishes After the programming click Release from Reset button M MPLAB IDE v7 60 fl m File Edit View Project Debugger Programmer Tools Configure Window Help Oa mmsast toc amp O A RY Fite Release from Reset Connecting to MPLAB ICD 2 Connected Setting vdd source to target Target Device PICT5F8 A found revision Rev 0x8 Reading ICD Product ID Running ICD Self Test Passed MPLAB ICD 2 Ready Programming Target validating configuration fields Erasing Part Programming Program Memory 0x0 0x FF Verifying Program Memory Verify Succeeded Programming Confiquration Bits Config Memory Verifying configuration memory Verify Succeeded Programming succeeded 03 Sep 2010 10 09 45 MPLAB ICD 2 Ready MPLAB ICD2 X PIC16F877A
8. d toggle the status of any GPIO pin The Panic button and alarm inputs at your home office can dial your phone and report for alarm or to send you an SMS message FEATURES GSM GPRS Tri Band module 900 1800 1900Mhz Built in TCP IP Stack Onboard SMA Connector for Antenna PIC16F877A LQFP Quartz crystal 20Mhz Three relays 10A 250V AC Three Isolated Digital inputs Three Digital I O s Three 10 bit Analog input Analog I P Can convert to 4 20ma current measurement Switch Mode power supply for GSM Engine SV Voltage Regulator Relay Status LED indicator with LED Standoffs Power Adapter Battery Connector EXT connector for Digital IO Analog FR 4 1 5 mm 0 062 Red solder mask white Legend print Dimensions 100x80 mm 3 9x3 15 Four mounting holes 3 3 mm 0 13 ICSP ICD connector for programming and debugging M O O D Y We bring the world to you CERTIFICATION ISO 9001 2000 rhydolabz com www rhydoLA BZ com DIMENSIONS TOIU eo foo oo WAR o o 0 o ofo o 9 RL3 K2 1 87514 Cmm C 7 C12 L _JRI3 C15 eL s ii C2 Fogga STS RL3 RL2 DiO D9 D8 Et 35104 E gt BOARD FEATURES Input Pins The board has three pins in the connector K13 DIO1 DIO2 DIO3 that can be configured as Input Input Output Pins Three pins in the connector K8 RBI RB2 RB3 can be configured as Input or Output as per the user require
9. i rhydolabz com www rhydoLA BZ com IEEE ZCzx eeed 23d N E D ocument D atasheet Model GSM 1402 D ate 05 A pr 10 GSM I O Relay Board User Manual Rhydo Technologies P Ltd An ISO 9001 2008 Certified R amp D Company Golden Plaza Chitoor Road Cochin 682018 Kerala State India Jj Phone 0091 484 2370444 2371666 Cell 0091 99466 70444 L Fax 0091 484 2370579 E mail info rhydolabz com sales rhydolabz com WebSite http www rhydolabz com rhydo COITYY We bring the world to you INTERNATIONAL FICATION ISO 9001 2000 rhydolabz com www rhydoLA BZ com LT GSM I O Relay Board is a great development board for cellular and remote monitoring applications It is built with Triband GSM GPRS engine With it you can easily monitor and control your home from anywhere there is cell phone coverage with your GSM cellular account Insert any GSM SIM card and start accessing the board remotely over the cellular network via SMS GPRS Since it is built with powerful TCP IP Stack you can communicate with this board from anywhere in the world through internet also It is having 3 Relay ports 3 Optically Isolated Digital Inputs 3 Digital I O and 3 Analog I P 10 bit multiplexed with 3 nos 4 20ma current measurement channels Out of the box you can switch ON and OFF relays remotely by SMS Internet measure the Analog value like line voltage temperature at home monitor an
10. ment Relay LED The Relay and LED s uses the same pins RDO RDI RD2 marked RL1 RL2 and RL3 Voltage Current Measurement Three pins RAO RAI RA2 are used to measure voltage current They should be configured as input ADC Channels The input can be given at pins in the connector K3 For measuring current appropriate jumpers have to be inserted at J1 J2 and J3 Then the board converts current to respective voltage levels We bring the world to you RTIFICATION ISO 9001 2000 f rhydolabz com www rhydoLA BZ com POW ER SUPPLY e Use 12V AC DC Power Adaptor Input 100 240V AC or External power supply through Screw Terminal Condition Specification ET Minimum Maximum PROGRAMMING THE GSM I O BOARD The microcontroller in the GSM I O Relay Board is PIC16F877A from Microchip The hex files compactable for this microcontroller can be downloaded to the board The programmer connection is given below This session describes the programming steps using the MPLAB software The hex code is developed using MPLAB and Hi Tech PIC C Compiler from Microchip The trial version of this software can be downloaded from the Microchip website The programmer used is MPLAB ICD 2 from Microchip 1 Power the GSM I O Board Connect the programmer to ICSP ICD Connector of the GSM I O Board and open the MPLAB Software 3 Go to Configure Menu and Click Select Device a MPLAB IDE v7 60 Fie Edit View Project Debugger
11. ng a problem that is not described in this manual please contact us Our phone lines are open from 9 00 AM 5 00 PM Indian Standard Time Monday through Saturday excluding holidays Email can be sent to support rhydolabz com LIMITATIONS AND WARRANTEES This product is intended for personal or lab experimental purpose and in no case should be used where it harmfully effect human and nature No liability will be accepted by the publisher for any consequence of its use Use of the product software and or hardware 1s with the understanding that any outcome whatsoever is at the users own risk All products are tested for their best performance before shipping still rhydoLABZ is offering One year Free service warranty Components cost Shipping cost will be charged from Customer DISCLAIMER Copyright Rhydo Technologies P Ltd All rights are reserved Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner The information presented in this document does not form part of any quotation or contract 1s believed to be accurate and reliable and may be changed without notice Rhydo Technologies P Ltd An ISO 9001 2008 Certified R amp D Company Golden Plaza Chitoor Road Cochin 682018 Kerala State India E Phone 0091 484 2370444 2371666 74 Cell 0091 99466 70444 n Fax 0091 484 2370579 E mail info rhydolabz com sales rhydolabz com rhydo WebSite http www rhydolabz
12. onds approx led will blink in step of 3 seconds At this stage you can start using Modem for your application Baud rate The Baud rate supported by the modem is between 9600 and 115200 Make sure the microcontroller is set to the supported baud rate The GSM modem automatically sets to the baud rate of the first command sent by the host system after it is powered up So there is no need for setting the baud rate using commands Before you start using the GSM I O Board please make sure that the SIM card you inserted supports the needed features and there is enough balance in SIM M O O D Y INTERNATIONAL CERTIFICATION FICATI ISO 9001 2000 We bring the world to you rhydolabz com www rhydoLA BZ com Doo S E REMOTE CONTROL SOFTW ARE FOR GSM I O BOARD gt The software is supplied as a downloadable format hex Newly purchased boards will be pre loaded with this file The user can reprogram the board with his executable codes gt The configuration for the pins of PIC16F877A in the software are Output Pins PORTD 0 2 RDO RD1 RD2 for Relays and LED s PORTB 1 3 RB1 RB2 RB3 Input Pins PORTA 0 2 RAO RAI RA2 Current Voltage Measurement using ADC PORTD 4 6 RD4 RD5 RD6 gt Power on the GSM I O board after inserting the SIM card and wait till the modem registers in the network gt The system checks for the modem and initializes it by sending commands If this communication is OK the LED and Relay
Download Pdf Manuals
Related Search
Related Contents
Betriebsanleitung mzr-7255 Pinnacle ProKeys 88SX ID-TX50 - Shimano TAFCO WINDOWS NU2-262V-W Installation Guide USER GUIDE IKHEA©SERVICES Parte 2. CEX V7 Ultra Protective Sleeve for Tablet PCs up to 8" and all iPad mini - black-green Copyright © All rights reserved.
Failed to retrieve file