Вы находитесь на странице: 1из 3

Hardware Imp plementation of GPRS En nabled ver for Remote Access Terminal Embedded Serv T

Abhishek N. Tripathi
Department of ECE BIST, Bhopal (M.P.)

Utkarsh Sharma
Department of IT LNCT, Bhopal (M.P.)

Deepak Simaiya
Department of CSE TIT T & Science, Bhopal (M.P) II. ARCHITECTURE OF O SERVER

AbstractWireless Packet Data Networks, su uch as GPRS, hold great promise for applications that rely on ma achine to machine (M2M) communication. The rapidly ad dvancing mobile communication technology and the decrease in costs make it possible to incorporate mobile technology into home automation systems. Based on an SMS/GPRS (Short Message Service/General Packet Radio Service) mobile cell module and a microcontroller, a home automation server can be established, of most home and Powerful microcontrollers are used as parts o office appliances of today. Integrating web servers to these m over the Internet intelligent devices will aid in controlling them and also in creating effective user interfaces in n the form of web pages. This paper presents the development of A AT modem driver, text based command processing software, out tput for an Atmel micro-controller to facilitate in sending and rec ceiving data via the cell module. The proposed design is im mplemented using SMS(commonly known as text messages) and d GPRS (Internet based protocol) as the main communication pro otocol .
KeywordsRemote access terminal (RAT), UAR RT, AT Command, AVR, GM862 Board, Modem. I. INTRODUCTION

The Remote Access terminal consist t of two modules, first one is GSM modem mounted on Mikro oElektronica SmartGM862 Board with GPRS and GPS capabil lities [7] and ATmega-328 [8] controller having Transmission and reception capabilities on serial port. The embedded controller (Atmega-328) interfaced with GM862 Board to make m basic design of the server. The data to and from the t embedded controller platform, can be transmitted and rec ceived via GSM modem to cellphone and vice versa. Basical lly, This Remote Access Terminal communicates to a cell phone p which can support JAVA application, developed on it, to access web pages through GPRS [4].

Remote control via the Internet is not a new w feature and used in home automation systems [1, 4]. Howe ever, providing a mechanism for interaction between d devices in this environment is quite challenging. The In nternet has been mostly used to connect personal computers s so far, but shortly all kinds of appliances with embedded computers will massive number of exchange information over the Internet. A m microcontrollers are available in todays devi ices which can be linked to the Internet. If these intelligent app pliances could be connected to the Internet at low cost, the wa ay we control and manage their functions would change entirely. An embedded web server [2, 4] should use the HTTP pro otocol to transmit Web pages from the embedded system to the web browser and to transmit form data back to the embedded s system attached to the appliance. The embedded system req quires a network interface, such as Ethernet, a TCP/IP protocol stack, embedded web server software and static a and dynamic web pages that form the user interface for that specific device. To make communication AVR microco ontroller board is used. It can talk over a wide range of net tworks- Ethernet, Bluetooth, Wi-Fi, XBEE and GPRS. This paper is deploying GM862 module interface with AVR, having g GPRS and GPS capabilities [6], both accessible with AT Co ommands [7] and can act as a CPU to communicate between we eb servers.

Fig. 1 The Architecture of the Prototype.

III.

SYSTEM DE ESIGN

A. Power Control Power control between these mod dules is very crucial thing because GM862 Board [7] and Atmega-328 A controller [6] works on different voltage level. In order to communicate these modules, we need to control the t power on input logical pins of GM862 Board through the lo ogical pins of Atmega-328 controller. The logical pins of the GM862 can accept only CMOS 2.8 Volt. For that reason, we e will use a voltage divider in the Tx line from Atmega-328 co ontroller to GM862 Board.

978-1-4673-5999-3/13/$31.00 2013 IEEE

Both, Rx and Tx lines should be pulled up t to the PWR_CTL line of the module because these pins dont t have an internal pull up resistor. The GM862 Board is power red by a LiPo cell (3.7 V with 2000 mAh) and AVR board is s powered by the USB port but it is resolved by using pulled up p resistor. B. Hardware Connections We provided connection between ATm mega-328 [6] to GM862 Board [7]. so ATmega-328 can com mmunicate through the modem (Telit) mounted on GM862 Bo oard. For this, we just need simple four connections betwee en these modules shown in fig 3 and Table I.
TABLE I CONNECTION BETWEEN ATMEGA-328 TO GM M862 BOARD Serial No. 1 2 3 4 ATmega-328 Tx Rx POWER_5v POWER_GND G GM862 TXD RXD Vcc GND

A. AT Command The AT is an ATTENTION comma and and is used as a prefix to other parameters in a string. The AT A command combined

The UART input line TXD (rx_uart) of the GM862 Board is not internally pulled up with a resistor. So, a an external 47K pull-up resistor is required. If this internally p pull-up register is not used, then transmission is possible but a problem arises in modem [7]. the reception of data on the controller from m

Fig. 3 A Snapshot of instal llation System.

with other parameters can be set up u in the communications package or typed in manually as a command line instruction through HyperTerminal. B. GPRS Using GPRS as the main commu unication protocol for the server would improve the system, as it would become more accessible to other devices and prot tocols via the internet and also it would allow more affordabl le data transfer within the cellular system.
V.
IMPLEMENTED FE EATURES

By using Software serial library con nnection [8] is established and following features are implemen nted: Starting and stopping the module. m Initialisation. Sending/Receiving of SMS. Opening a socket, writing and reading (used to talk HTTP) over GPRS. After Parsing of AT commands, log g, that recorded within the IDE. GM862 monitor switching on done initializing modem ... AT ->ok AT+IPR=9600

Fig. 2 Connections between ATmega-328 an nd GM862.

IV. TECHNIQUES USED

The GSM modem (Telit) needs to be set t-up to send and receive SMS messages, this is done by sending the AT commands. It will communicate to any cell ph hone on a cellular network through GPRS.

sending SMS ... AT+CMGF=1

->ok AT+CMGS="6245" ->not ok: AT+CMGS="6245" hello done initializing GPRS ... AT+CGDCONT=1,"IP","internet","0.0.0.0",0, 0 ->buf: +CMGS: 35 OK AT+CGDCONT=1,"IP","internet","0.0.0.0",0, 0 OK AT#USERID="" ->buf: AT#USERID="" OK AT#PASSW="" ->buf: AT#PASSW="" OK done switching GPRS on ... AT#GPRS=1 ->buf: AT#GPRS=1 +IP: 10.37.146.251 OK Done After uploading the web page, It is used to command the intelligent devices through ATmega-328.

leads to a breakthrough in the way we interact with our homes. Therefore, users can control and manage the intelligent appliances using a GPRS network over the internet. If we use SMS or GPRS services for controlling the intelligent devices we just need to pay per use. The overall cost for data services on GSM as compared to other network such as Ethernet will be reduced by a great amount. The operation of embedded server is controlled by the data coming from clients. The adaptability of the embedded server is enhanced by making it possible to accept request from a number of clients having diverse working platforms. REFERENCES
[1] Hasan, K. S., Rahman, M., Haque, L. A.,Rahman M. A., Rahman, T. and Rasheed, M., (2009), Cost Effective GPS-GPRS Based Object Tracking System, Proceedings of International Multiconference of Engineers and Computer Scientists, March 2009, Vol-I. T. Lin ,H. Zhao ,J. Wang ,G. Han and J. Wang , An Embedded Web Server for Equipment ,School of Information Science & Engineering, Northeastern University, Shenyang, Liaoning, China. Z. Ye, Y. Ji, and S. Yang,Home Automation Network Supporting Plugand-Play, IEEE Transactions on Consumer Electronics, 174 Vol. 50, No. 1, FEBRUARY 2004. S. Sharma, G. Chitranshi, B. Mahato, A.K. Srivastava, N. Gupta, B. P. Singh,Control of Home-Appliances through IR interface using web (GPRS) enabled Mobile Phones, International journal of advanced engineering Sciences and technologies . Vol. No. 6, Issue No. 2, pp. 242 245. T. Chikaraishi, T. Minato, H. Ishiguro, Development of an Android System Integrated with Sensor Networks, International journal on intelligent robots and systems, sept. 22-26, 2008. AVR Tutorials: http://www.extremeelectronics.co.in/avr-tutorials. GM862 Datasheet and AT Command Tutorial: http://www.telit.com. Arduino Docs: http://arduino.cc/en/Guide/HomePage

[2] [3] [4]

[5] [6] [7] [8]

Fig. 4 Sending and Receiving of Message: on Serial monitor.

VI.

CONCLUSION

A system for remote access terminal using GPRS enabled embedded server is designed in this paper. Using cellular services such as SMS and GPRS to control remote devices

Вам также может понравиться