You are on page 1of 4

2009 International Forum on Computer Science-Technology and Applications

A Smart Home Security System Based on 3G

Yongqiang Zhang Guozhen Zhao Yongjian Zhang


College of Information and Electrical College of Information and Electrical College of Information and Electrical
Engineering Engineering Engineering
Hebei University of Engineering Hebei University of Engineering Hebei University of Engineering
Handan , China Handan , China Handan , China
zdh03_233@126.com 276779604@qq.com 120030009@qq.com

Abstract—This paper introduces a Smart Home Security media, which can also provides many kinds of information
System based on the technology of ARM9 and 3G services, such as web page browsing, conference call and e-
communication. It uses S3C2410 hardware platform and commerce. In order to provide such services, the wireless
Embedded Linux Operating System to implement the real-time network must be able to support different data transmission
display of the video images on the development platform. It speed, which means that it must respectively support the
presents the structure and work principles of the system, puts transmission speed of 2Mbps (megabit / second),
emphasis on the hardware processing circuits and design of 384kbps(kilobits/ second) as well as 144kbps in the indoor,
video image software as well as the foundation of 3G remote outdoor and vehicular environments at least[2]. In current,
communication. Another ,It carefully analyzes and studies
the 3G mobile phones (3G handsets) have three kinds of
Video data compression of USB digital camera and the 3G
standard criteria in the world. They are the WCDMA
network transmission. Thus, a design of a convenient and
economical device on real-time video capture and transmission standard in Europe, the CDMA2000 standard in America and
is realized. the TD-SCDMA standard, which is produced by Chinese
scientists. The three mainstream wireless interface standards
Keywords- ARM; 3G; S3C2410; Linux; video monitoring of 3G communication determined by International
Telecommunication Union (ITU) is respectively W-CDMA
I. FOREWORD (Wideband Code Division Multiple Access), CDMA2000
(code division multiple access 2000), and TDS-CDMA
With the continuous improvement of people's living (Time Division-Synchronous CDMA).
standard, people pay more attention on their own personal
safety and property security; Contemporary, The rapid III. THE STRUCTURE AND WORK PRINCIPLES OF
development of the economy along with the city's population THE SYSTEM
sharp increasing, add a new problem to the city social order, The system is mainly composed of alarm input, control
to protect the security of personal property and prevent unit, video processing, 3G wireless communication and
thieving incident happened, every family must have its own alarm output, and its working principle as shown in Figure 1.
security system. In their traditional family system anti-theft when the system works, the control unit detected circulate
alarm, fire alarm, and gas leak alarm subsystems’ function door magnetic sensor installed above the door, infrared,
are single , false alarm rate is higher, it can only achieve smoke, gas sensor, once there is illegal personnel have
local alarm, can not achieve remote alarm in real time to intruded, gas leak or firing, etc., it will immediately issue a
reduce losses, but also record evidence of a crime for later warning signal to the CPU[3]. CPU will determine which
inspection. To resolve these shortcomings and scarcity, and and where the alarm is, the scene immediately sends a sound
meet people's needs for intelligent home, therefore, adopting and light alarm and takes emergency treatment, by
image processing technology and 3G communication controlling the camera to capture video images, and then put
technology the paper studies and designs smart home collected video image data into buffer, and then run the
security system based on ARM9 and 3G[1]. image display program which is transplanted to Embedded
II. 3G NETWORKS target platform, for processing and displaying the buffer zone
of the image data. Further, which can be saved into a data
3G is the abbreviation of the 3rd Generation, which file format and labeled UDP packets, through the 3G
refers to the third generation mobile communication network send images to the remote user mobile phone. In
technology. Relative to the first generation analogue phones addition, even if the host is away, he may master the
(1G) and the second generation GSM, TDMA digital mobile situation at home through the 3G network, and set defending
phones (2G), in generally speaking, the 3G mobile phones or withdrawing mode to achieve remote monitoring function.
refers to a new mobile communication system which
combine the wireless communication with the multimedia
communication such as the international internet. It can
process the images, music, video stream and other forms of

978-0-7695-3930-0/09 $26.00 © 2009 IEEE 291


DOI 10.1109/IFCSTA.2009.193
V id eo a p p lic atio n

V ide o4 L in u x

Figure 1. Work principles of the system

E q u ipm en t d riv e r
FLASH SDRAM

Camera Video V id eo c o lle ctio n


3G
video processing mobile e qu ip m e n t
signal module network
ARM
(S3C2410) Figure 3. Video collection sketch map

Sensors’ Alarm alarm


alarming
signals intput output B. video processing module
For video processing, Linux is achieved through
Video4Linux, which widely uses bus standard and provides a
wide range of interface functions for the application of Video
Figure 2. System hardware structure
equipment which includes the popular TV cards, video
capture card and USB camera and so on .For USB camera
IV. SYSTEM HARDWARE DESIGN itself,drive program need to provide basic I / O interface
functions including the achievement of open, read, write,
System hardware structure as shown in Figure 2: close, The interruption of processing, memory mapping
A. ARM master module function, as well as the control interface of the ioctl function
to achieve for I / O channel and so on[5]. Linux video
ARM main control module is composed of the ARM
collection sketch map as shown in figure 3:
controller, FLASH, SDRAM and related peripheral circuits.
The ARM controller's main functions are operating alarm C. Alarm input and output circuits
input and output I / O port and other parts , at the same time, All the detectors and alarm devices used by the system
achieving the acceptance and transmission of video data, are connected to controller through the GPIO to complete
GPRS network communication and other functions, alarm input and output functions. However, these input and
Therefore, the system need to choose more general-purpose I output signals have a very strong current, which has lager
/ O port and rich external resources for being easy to build effect(interference) on the system, so the system use
chips of peripheral circuits. So, select Samsung S3C2410 as respectively photoelectric isolation chip TLP521 and relays
the system’s processor, AM29LV160DB and 28F128J3A as for alarm input and output signals to minimize impact which
FLASH, which store separately bootloader guide code and an external signal produces on the system.
source code. And two HY57V561620 as SDRAM for
constituting the capacity of 64MB high-speed dynamic V. SYSTEM SOFTWARE DESIGN
random access memory.
System software mainly includes bootloader, operating
S3C2410 are the SOC chip based on ARM9T, low-
system, file system and user applications. Bootloader using
power, high performance, very suitable for embedded
VIVI, mainly used to initialize the processor and hardware
product development. With LCD controller, 3-channel
equipment, download system image and initialize the
UART, 4-channel DMA, IIC and SPI bus interface, 117
operating to be ready to implement. Operating System use
Universal I / O port, two USB host interface and a USB
Linux2.4 core with powerful network and excellent
device interface and other resources. These resources based
transplant and a powerful process, interrupt, memory, and
on S3C2410 can meet overall system requirements for the
equipment Penny rationale to support a variety of file
processor[4].
system, Built a complete TCP / IP protocol and the system
needed for a variety of devices such as the driver, used to
manage a wide range of applications software to achieve
real-time systems and multi-task. File system using EXT3
file system, the system all the files and directory tree
structure to the formation of the overall directory hierarchy
in order to facilitate system management of documents and

292
equipment. User applications to be completed by a series of a
function of the corresponding functional components, start
including alarm monitoring procedures, image acquisition
compression procedures, 3G communication procedures[6],
etc. So to all devices on the system to prepare the driver and Camera_open()
the corresponding user applications in order to achieve the
required system functions of the system, the main program Camera_get_capability()
flow shown in Figure 4:
Camera_get_picture()
A. Flow chart of Linux video collection as shown in figure
5:
Camera_grab_init()
B. Video compression
Comparing the advantages and disadvantages of the
Images processing
popular networks video encoding MPEG-4, H.264 in the Camera_grab_image() and application
market, the system uses a simple and efficient MPEG-4
algorithm. MPEG-4 (officially named 150/IEC14496) was
published in November 1998 with the characteristics of low
bit rate, transmission rate between 4.8 -64kb/s, the resolution N Whether stop video
of 176X144, which uses a very narrow frame of the collection?
reconstruction and data compression technology, with Y
minimal data in order to get the best image quality. MPEG-4
is based on the object content of the image compression Camera_close()
coding technology, and compared to the previous
compression standards, it was first introduced to study the colse
visual, visual objects, including video object, static texture
objects, mesh objects, objects such as human faces[7]. Figure 5. Flow chart of Linux video collection.
C. 3G Communication Program
3G communication flow subroutine in Figure 5 below: start

start
initialization
system
initialization parameter
configuration
system setup
whether there is N
Whether sensors is N alarm?
accept
abnormal ? message
Y
Y whether3 G is N Open Whether it intalls Y
send alarm remote camera
message parameter ?
monitoring
N
Y send control
Open the camera and end signal
collect
and compress video
Figure 6. 3G communication program flow

send to mobile 3G communication program with AT commands to


prepare, including 3G module initialization, 3G network
Figure 4. The system main program flow chart parameter configuration, alarm message to send, message
receive and make calls, such as part of the base TCP / IP
protocol to complete the wireless data transceiver. GPRS
module used to initialize + + +, ATV0, ATH and
ATE0V0Q0 such instructions, enter the command separately

293
to MC35i, data, hang up and return the results of the form of of the system to achieve the design requirement. The system
status. 3G network parameter configuration using AT + also can be used in banks, libraries and museums, such as
CGDCONT = 1, "IP", "CMNET" command, respectively, set required security and remote monitoring of the place.
up 3G network identifier PDP mobile scene IP, APN access
point for CMNET (China Mobile Net), the use of ATDT *** REFERENCES
********#: for dial-up settings. Short message and [1] ZhiWai Liu.Research of embedded image monitor system based on
telephone parts of AT +? =? And other commands to achieve ARM[D].Xi’an university of industry ,2006
the corresponding functions[8]. [2] http://www.c-ps.net/news/content/2009/7/28587.html
[3] Sheng Liao. Design of embedded remote monitoring system based on
VI. CONCLUDING REMARKS ARM[D]. Beijing University of Posts and Telecommunications,2006
ARM-based embedded, video processing technology and [4] YingHui Xu. Embedded system design of ARM9[M]. Beijing
University of and Astronautics Publishing house,2007
3G wireless networks Smart Home Security System, full use
[5] DianHong Yu. Image detection and processing technology[M].
of embedded in the image processing, network Xidian University,2006
communication on the advantages and the existing 3G [6] Hongming Qu. The Research of Digital Video System based on
network resources, not only achieve a rapid security alarm, Embedded Linux Operating System [D]. Dalian Maritime University
record evidence and features such as remote monitoring, and ,2008
high reliability, low False Alarm, cost-effective and less loss [7] XinShun Xu.Embedded linux application programming[M].
of advantage. At present, the system can also be hardware Mechanical industry publishing house,2006
and software upgrades and integration of new functional [8] Yong Zhang. Research and implementation of Embedded Internet
modules to meet the intelligent home security on the future based on GPRS[D]. University of Electronic Science and
development needs. Tested showed that the stable operation Technology,2004.

294

You might also like