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

Design and implementation of a Remote Data Acquisition System based on SMS

Md.Shafiqur Rahman, Susmita Ghose, Zamshed Iqbal Chowdhury,Abu Al Beruni,


Md.Enamul Haque Chowdhury
Applied Physics,Electronics & Communication Engineering
University of Dhaka
Dhaka, Bangladesh
Email-shafiqrahman50@yahoo.com

Abstract—Data acquisition plays an important role in the field world. In the work presented here, a technique has been
of modern industry control. In many cases, remote data should developed to calculate voltage, current or temperature from a
be transferred to monitor center which is far from the remote area automatically using the existing GSM networks
manufacturing field. Traditional data acquisition system by for cellular phones. This technique can be applied for
wired means could not meet the needs. This paper presents a humidity, wind flow, etc as well. The sensors send its sensed
remote voltage, current and temperature measurement data values like voltage, current, temperature, etc. by SMS to a
acquisition and analyzing system based on the SMS/GPRS central server. The central server then stores the information
technology, so the wireless real-time transmission of the remote in database for analysis.
monitoring data was achieved. The result of the experiment The SMS based data collection can be done very quickly
shows that system works well for data acquisition and wireless and efficiently. Data can be collected after any desired time
transferring based on GPRS rapidly which has a reference
interval such as hourly, daily, weekly, or monthly basis. By
value for remote diagnosis, remote monitoring and so on. As a
applying complex encryption algorithms on the data SMS,
low cost, good expansibility and high performance data
acquisition system, this type data acquisition system can also data security can be ensured. Though, the development cost
be applied in the fields of hydrological processes, environment of the SMS based remote data acquisition system will be
and air pollution monitoring and control. higher than conventional system, any industry or company
should implement this system because it will eliminate the
Keywords-Remote unit; Central receiving unit, SMS, GPRS; possibility if corruption done by the data collector.
Sensor; Microcontroller.
II. SYSTEM DESIGN AND ARCHITECTURE
I. INTRODUCTION The proposed SMS based remote data acquisition system
composed of remote unit and a central receiving unit as
The conventional data acquisition system for voltage, shown in fig1.The remote unit is installed from where the
current, or temperature is that an assigned person visits process is actually monitored. It gathers required data about
selected area and calculate the values of different sensors
the process and exchange information with the CRU by
manually. Then the collected values are used for further
calculation. This manual process can become very time SMS using GSM networks for cellular phones. The CRU is
consuming and tiresome. It can cause human error and can heart of the system and is centrally located under the
open an opportunity for corruption done by the human data operator's control.
collector. Thus the conventional system can become III. REMOTE UNIT
inaccurate and inefficient [7].
The recent advances in the field of information The remote unit mainly consists of data acquisition unit, a
technology have made the exchange of information fast, LCD display, RS232 serial port, a microcontroller unit and a
secured and accurate. The digital revolution caused the rapid GSM modem
drop of digital devices such as computers and A. Data Acquisition Unit
telecommunication devices. Circumstances that we find
This section consists of
ourselves today in the field of microcontrollers[2] had their
beginnings in the development of technology of integrated Temperature sensing circuit.
circuits. These integrated circuits contained both processor Current sensing circuit.
and peripherals. That is how the first chip containing a Voltage sensing Circuit.
microcomputer, or what would later be known as a For temperature sensing circuit we use LM35 and a non-
microcontroller came about. Nowadays microcontroller is inverting amplifier. The LM35[4] are precision integrated-
widely used in almost all electronic devices such as DVD circuit temperature sensors whose output is linearly
drive, washing machine, mobile station etc. In the field of proportional to the Celsius temperature. The current sensing
hardware controlling there is no better alternative than circuit consists a sensing part and amplifier. For voltage
microcontroller. sensing circuit we use simply resistors and capacitor.
Communication networks like the internet, GSM
networks, etc. are available almost all the countries of the
.
Fig1: Block diagram of SMS based remote data acquisition system.
routines for calculation, display, data SMS frame creation,
B . LCD DISPLAY etc. Application Layer calls different routines of the Driver
The display is a standard LM020a[1] which displays 2 Layer to access hardware peripherals.
lines of 16 characters (16×2). Each character is of 5×10 D. RS 232 Serial Port
pixels. The display receives ASCII codes for each character
at the data inputs (D0–D7). The data is presented to the RS232 is the most known serial port used to interface and
display inputs by the MCU, and latched in by the pulsation transmit the desired data in communication. Though the serial
of the E (Enable) input. The RW (Read/Write) line can be port is hard enough to program than the parallel port, this is
tied low (write mode), as the LCD is receiving data only. the most effective method in which the data transmission
The RS (Register Select) input allows commands to be sent requires less wire (only three links – transmit, receive and
to the display. RS = 0 selects command mode, RS = 1 data common ground) that yields the low system cost. The two
mode. The display itself contains a microcontroller; the pins TxD & RxD are used for transmit and receive data
standard chip in this type of display is the Hitachi HD44780. between the communication devices. There are some other
It must be initialized according to the data and display lines in this port which are set as default[1].
options required.
E. Modem
C. Control Unit
A GSM modem is interfaced with the micro-controller's
This is the main part of the remote unit. It controls each serial (RS232) port for sending and receiving SMS. Using
individual section of the remote unit. It is also called the FBUS protocol, the microcontroller sends different
microcontroller unit. The PIC16F876A[2] is used here. commands to the modem and receives data SMS frames
Because it belongs to the mid range family of the PICmicro from the GSM modem[6] The serial communication with the
devices. It is one of the most popular microcontrollers in the modem is full duplex 8 bits, no parity, 1 stop bit and at
world for its high performance, rich instruction set (MCS- 115200 bauds. We have used Grameen[3] Subscriber
51®), and low cost. It has two 8 bit ports, one 6 bit port total Identification Module (SIM) in the modem. The AT
22 I/O lines[5]. Different peripherals of the system are commands are the basic commands that communicate with
connected with its ports. It has 14.3KB of program memory the GSM mobile phone. Table1 indicates some common AT
and 256 byte of EEPROM. Full 8 Bit functionality on PORT commands necessary for SMS transmission and reception.
B-C and 6 bit functionally on PORTA. Port B is connected Detailed format of AT commands are available in ENFORA
to the LCD display. Port C is connected to the RS232 board. GSM modem’ guidelines.
For very fast operation (up to 20MHz) here we use a 4MHz Command Description
Crystal. It is possible to use Zero Insertion Force (ZIF) AT Attention Command
sockets with the control unit. ZIF sockets are useful where AT+CPMS Preferred Message Storage
the chips will be removed from the control unit many times. AT+CNMI New Message Indication to TE
The firmware inside the microcontroller’s program memory
AT+CMGR Read Message
is built using two layers – the Driver Layer and the
AT+CMGS Send Message
Application Layer. The Driver Layer contains protocols for
accessing different hardware peripherals such as LCD, Data AT+CMSS Send From Storage
acquisition unit, RS232 serial port, GSM modem, etc. On the AT+CMGW Write Message To Memory
top of the Driver Layer, the Application Layer contains AT+CMGD Delete Message
Fig: Schematic diagram of complete remote unit

users..To interface the modem with the MCU, an RS232


IV. CENTRAL RECEIVING UNIT Module is used in between them. This module converts the
The central receiving unit mainly consists of a GSM TTL logic levels compatible with the Computers’ COM1
modem, MCU, RS232 serial port and Computer. The GSM port. The MCU routinely interrogates the modem to look for
Modem TC35 is used to receive SMS. TC35 is introduced by new SMS messages sent from the remote unit. SMS
SIEMENS which is a dedicated modem, the module messages are then downloaded, decoded and then cancelled
integrates the radio frequency circuit and base-band circuit, from the modem memory. The communication between the
and it provides the standard AT command interface to users. PC and the MCU is implemented using the RS232 module
The module provides fast, reliable and secure transmission and the decoded SMS is displayed on Microsoft hyper
for data, voice, short messaging and fax, and it can terminal. The schematic diagram of central receiving unit is
convenience the application development and design for shown in fig below:
to send the real time data to the central
V. DESIGN OF THE SYSTEM SOFTWARE receiving unit.
The system is focused on resolving the remote wireless
communication between the central monitoring station and Microcontrollers are programmable devices. They do exactly
remote monitoring station. The data communication between what they are told to do by the program, and nothing else! A
the above equipments is realized by using GSM wireless program is a list of instructions, along with any data needed to
communications module TC35 which is controlled by AT carry them out. Flowcode allows us to create simple
commands. Short message mode is adopted to transmit data. microcontroller applications by dragging and dropping icons
on to a flowchart to create simple programs. These programs
A SOFTWARE DESIGN OF REMOTE UNIT can control external devices attached to the microcontroller
The main tasks of the remote unit include: such as LED's, LCD displays etc.Once the flowchart has been
to convert and deal with the data collected by designed, its behavior can be simulated in Flowcode before
the remote unit through the A/D converter. the flowchart is compiled, assembled and transferred to a
to show the measured Voltage, Current and Chip. The program flowchart for remote unit is shown below:
temperature on LCD.

Fig: Program Flowchart for remote unit

B. Software design of central receiving unit VI Result and Discussion


Its main functions have:
to receive SMS sent by the remote unit
to decode the downloaded SMS from GSM Different kinds of data acquisition unit like Voltage,
modem Current, and Temperature are connected to the ADC0,
to display the receive data by Microsoft hyper ADC1, and ADC2 pin of the microcontroller. A
terminal 16*2character LCD (HD44780) is interfaced with the
The program flowchart for central receiving unit is shown in microcontroller PORTB using 4 data wire mode. Different
fig below: reading like Voltage, Current and Temperature are
sequentially displayed here. The RS232 module is
connected to PORTC of the microcontroller and GSM
modem is interfaced with the RS232 module by DB9
Fig: Program Flowchart for receiving unit
connector. When the microcontroller commands the GSM unit and one central server have been conducted. Our future
modem thorough RS232 module the modem start sending work includes interfacing a General Packet Radio Service
message from the remote unit.The central receiving unit (GPRS) modem with the internet connection so that faster
receive the SMS from remote unit. Using the Microsoft and continuous data can be received in the central server.
Hyper terminal from Computer we read the SMS send by Applications can be implemented using classical TCP/IP
remote unit. Finally the received data is saved to a database. programming techniques or using DTSP protocol in a Data
An SMS based remote data acquisition system prototype is Socket connection. The advantage of using of Data Socket
developed here and several experiments have been technology in remote monitoring over the network or
conducted. We developed one remote unit and one central internet is the easy way of implementation of
server. The total time taken to get a data SMS from the communication between applications leaving the
remote unit to the central server is approximately 30 programmers to focus on the measurement and data
seconds. This time may vary a little bit depending upon the processing operations, and not to the communication
GSM network condition. The data collection can be done at
any time or periodically such as hourly, daily, weekly or REFERENCES
monthly basis. Sometimes SMS massages are not delivered [1] http://www.matrixmultimedia.com/
by the GSM network. We have developed the protocol such [2] http://www.microchip.com
that if data SMS is not received after one minute, the server [3] Grameen Phone, http://www.grameen-info.org
tries again to read the message. In this way, the server [4] Embedtronics, http://www.embedtronics.com
makes total three attempts. If data SMS is not received in [5]Microcontrollers & Embedded System Designs,
three attempts, the server shows network error massages. In http://www.ucdevelopers.page.tl/
our experiment, for 95% cases, data SMS was received [6] Siang, B.K.; Bin Ramli, A.R.; Prakash, V.; Bin Syed
successfully by one attempt. For the remaining 5% cases, Mohamed, S.A.R., ―SMS gateway interface remote
data SMS was received after second or third attempt. monitoring and controlling via GSM SMS‖,
Telecommunication Technology, 2003. NCTT 2003
VII. CONCLUSION proceedings. 4th National Conference on Volume, Issue 14-
In this paper, an SMS based remote data acquisition system 15, Jan.2003 Page(s): 84 – 87
has been proposed. Different hardware and firmware unit of [7] L. Cao, J. Tian and D. Zhang, ―Networked Remote
the remote unit is described. The central server’s different Meter ReadingSystem based on Wireless Communication
modules and the communication protocol with the remote Technology‖, proc. of IEEEInternational Conference on
unit is also shown. Several experiments with one remote Information Acquisition, China, August2006

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