constructing intelligent home-security system design ... - IEEE Xplore

20 downloads 137859 Views 820KB Size Report
Jul 15, 2009 - most of advanced countries positively invested much money and manpower to ... In addition, host could use PC Anywhere [7] to monitor.
Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009

CONSTRUCTING INTELLIGENT HOME-SECURITY SYSTEM DESIGN WITH COMBINING PHONE-NET AND BLUETOOTH MECHANISM CHUN-LIANG HSU1, SHENG-YUAN YANG2, WEI-BIN WU3 1,3

2

Department of Electrical Engineering, St. John’s University, Taiwan, R.O.C. Department of Computer and Communication Engineering, St. John’s University, Taiwan, R.O.C. E-MAIL: [email protected]

Abstract: This paper was exploring one of serial issues which derived from mankind life greatly adopting 3C products everywhere when entering 21th century. At present for the purpose of insuring more security and convenience of daily life, most of advanced countries positively invested much money and manpower to research and develop home-security system with hi-tech and have achieved great success. Taiwan owned many such hi-tech implemented by related manufacturers and those benefits coming along with this business created the environemnt in which more advanced techniques and mechanisms for morden home-security were developed to satisfy the need of people. There are two divisions of security system: (1) commerical-security system (2) home-security system. Since the commerical-security system usually needed too much cost to meet the expenditure of ordinary family, the paper tried to develop DIY home-security so as to cost down the expenditure as well as to improve the mechanism of traditional ones with brand-new techniques co-constructed with phone-net, speech-function, and Bluetooth modules.

Keywords: Home-Security System, Bluetooth, Phone Net, Remote Monitoring. 1.

Introduction

The current home-security service system in market included preventing thieves from intruding, monitoring and control system, fire control etc. Even though all of them were comprehensive, yet there still were some defects among them such as the consumers must construct cooperative relationship with security supplier, and this condition resulted in high expenditure for service quality as well as much difficulty in maintain and discriminating of responsibility. In this paper researcher tried to develop one set of home-security with easy-operated, DIY form, and intelligent system [1], in which the Bluetooth wireless transmitting interface replaced traditional ones to make circuits more simple and less cost[2], and combined with auto dialing and answering phone-net system, alarm system,

and speech echo function, all those design were in simple process in order to make consumers easily set up in living space and built a entirely perfect and valid security system. In this research we used BT combined with sensors, phone-net, and remote control & monitoring system with graph interface to construct the DIY home-security system. The phone-net was used to start the security system outdoors after host leaving the house or off-line the security when returning home. Sensors were designed to set up onto every door and window and they would start to alarm when thieves intruding the house. The system would simultaneously notice the host and police nearby with auto dialing system through phone-net, and the respond signals of sensors would be transmit to servo computer of remote control & monitoring system that would be monitored by host through computer or PDA far away. All these design not only to cost down the manufacturing expenditure in the traditional methods so as to let ordinary people DIY, but also implement the latest communication techniques into home-security system to upgrade the safety and insurance of whole security system. The techniques adopted in this study included intelligent monitoring and control system in home, signals processing generated by sensors, UART data transmitting interface embedded in wireless BT modules, multi-modules net communication among master and slave BT, decoding technique of transmitting data package of BT, remote control system in phone-net, auto-dialing and answering system, and speech recording and broadcasting system in phone-net. The content of this paper exampled with “ Design intelligent DIY home-security system”, in which the wireless communication technique of BT was embedded and some sensors was applied so as to solve problems as much indoors wired work, difficulty for building and maintain, and validity and accurate for data transmitting in traditional construction; furthermore, first time tried to design home-security system combining with auto-dialing-answering system in phone-net for scaring

978-1-4244-3703-0/09/$25.00 ©2009 IEEE 3316

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009 away thieves when sensors setting in home-security system were touched off and alarmed, and then the system would send warning information to monitoring and controlling servo computer, which would execute the mission of notifying host, through BT wireless transmitting interface [6]. In addition, host could use PC Anywhere [7] to monitor the condition appearing in servo computer in home through cabled or wireless net. 2.

3.

Hardware and software design of security system

3.1 Structure design of alarm system

Related works

As mentioned above there are two home-security network systems and according to its operating function we could divide into cabled system and wireless system. In literature [15] mainly explored the methods for conducting data transmitting with power lines in home environment. In spite of the less expenditure and easy construction, the transmitting quality was easily disturbed by noise, therefore, the method would be difficult to keep the data complete and accurate and cause problems in safety. In literature [16] mainly explored the methods for constructing home-security network with TCP/IP standard communication protocol layout of wires of which was too complicated to meet the demand for modern home. In literature [17] mainly explored the methods for constructing home-security network in which combined GSM/GPRS system with infrared rays fire detecting system. In literature [18] mainly explored the methods for constructing home-security network with ZigBee wireless sensor network combined with kinds of sensors and digital electronic door-locks. From the literatures of home-security systems mentioned above, the modern design tends to wireless structure on account of easy construction and cost down. Recently owing to the techniques progress of wireless communication and consume electronic [3], the wireless sensor network was born under unite of both techniques which posses functions of communication, data transmitting, and sensor. Bluetooth modules were one of them and embedded into all popular 3C products such as PDA, cell phone, Notebook. The operating frequency of BT is 2.4GHz and adopted ISM wireless hoping-frequency system that defined 79 hoping-frequency (1600/per sec) channels with 1MHz interval in Time-Division Duplex (TDD). With such special design, BT could guarantee the safety and accurate of data transmitting so that it could replace the transmitting interface with in-convenient and dangerous power line [4] and infrared-rays RF ways that easily disturbed by noise [5].

Figure1. Practical work of alarm system

The content of this study were divided into three parts; the first one was manufacturing the practical work of alarm system including the sensors detecting the intruding of windows or doors by strangers in home. The alarm system was consisted of magnetic lead-switches, buzzers, transmitting modules made of BT as shown in Fig. 1. The core of alarm system was Atmel 89C51 single chip [8]. The magnetic lead-switches was used to detect whether the doors or windows were intruded by strangers and if they were really intruded, then the signals would be detected by 89C51 and the microprocessor would command IO active to start the buzzer operating aloud as indicated signals to warn the host. Meanwhile the transmitting interface made of the BT module Linkmatik2.0 embedded in alarm system would link to servo-PC to generate warning information to host through auto-dialing-answering system. The LED shown in Fig.1 indicated power, linking state of BT, and whether the alarm system was working. Fig. 2 indicated the system blocks of alarm system in which at first user needed to decide to set the alarm-system on and the sensors attaching on doors or windows would transmit the signals to core CPU in case of being intruded by thieves, and then CPU would judge if the condition was corresponding to start alarm system and send the warning information to monitoring and control servo-PC and phone-net system to notify host or police station.

Figure2. Circuit blocks of alarm system

3317

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009 transmitting module connected by servo PC through RS-232 UART interface [11]. Fig. 6 was Circuit blocks of BT wireless transmitting in servo PC, in which PC controlled BT with software through level-shifting IC MAX232 without extra hardware control IC for purpose of cost down.

Figure3. Practical work of phone-net control system

The second part was phone-net control system that was consisted of auto-dialing-answering system, speech echo system [9], receiving wireless transmitted signals system made of BT, LCD for phone No. indicator [10] as shown in Fig. 3. The main core Atmel 89C51 [8] combined DTMF decoding IC CM8870 and HT9200 IC indicating the auto-dial-answering system and receiving phone No. The IC ISD1420 was used as speech recording function and it could be recorded the warning information of alarm triggered signals previously so as to automatically notify host that someone was intruding the house. All the communication data was transmitted by BT wireless net. Fig. 4 showed the circuit blocks of phone-net control system. The host (user) could dial the preset codes by phone to start the auto-dial-answer system (after leaving the house) or directly input the phone No. installed into EEROM lest the No. should be missed in case of power off. All operating statuses would be displayed on LCD and receive or transmit control code through BT wireless net. Host could hear the warning speech or answering present operating status from his own phone set.

Figure5. Practical work of BT wireless transmitting module connected by servo PC through RS-232

Figure6. Circuit blocks of BT wireless transmitting in servo PC

3.2 The hardware and software of alarm system

Figure7. Operating steps of alarm system Figure4. Circuit blocks of phone-net control system

The third part was graph interface system (GIS), designed with Visual Basic6.0, appearing on the screen of servo PC [13] shown in Fig. 14. Host could directly judge the security condition of home from screen or monitor the condition from his own PDA screen that was synchronous with the screen of servo PC through PC-Anywhere software. Fig. 5 showed the practical work of BT wireless

Fig. 7 showed the flowchart of hardware of alarm system in which first users could start or close the alarm system through pushing keyboard as Fig. 3 or through cell-phone outdoors. In Fig. 1, the yellow LED lighting on meant the alarm system was started while distinguished meant alarm system close. If users were in the house, he or she could push key “1” to start the alarm system while “2” to close the system. If users want to start the alarm system outdoors (actually, most of condition was in this mode that

3318

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009 host left the house then to start the alarm system outdoors), first users ought to enter into phone control system and then push “9” on his own cell phone to start the system while “0” meant close the system. Only if when the alarm system was started and so was the lead-switches sensors triggered, the alarm system would transmit the preset control phone codes to auto-dial-answering system and automatically call host to receive warning information.

the alarm information was shown In Fig. 10, in which the phone would stand by to wait for the alarm information after being set, and if the phone received alarm information, then the auto-dial-answer system would immediately and automatically call the user’s cell phone or the police station near by when user didn’t answer the phone. Anyone who received the warning phone call from phone-net system could hear the echo information in speech to remind the host something wrong with his house or being intruded.

Figure8. Hardware of alarm system

Fig. 8 was the circuit of alarm system hardware structure in which the core processor 89C51combined with BT module and lead-switch sensors. There were 4 lead-switch sensors that would detect the signal state of doors and windows, supposing that stranger intruded the house and triggered the lead-switch then the output signal would be high(+5V), and all output signals were OR wired to IC-74LS32 which receiving any one high signal would trigger alarm system; meanwhile, the BT module would link to BT module mounting on auto-dial-answer system according to presetting ID, eventually, alarm system sent control code to auto-dial-answer system to proceed necessary action through BT wireless communication. 3.3 Hardware &software of phone-net control system

Fig. 9 indicated the flowchart of alarm control system set by phone call when users (host) leaving home outdoors through the phone-net. The procedures were that user first dialed the phone No. of phone in his own house, and after the line was connected, user input the password preset by himself and if the password was correct then user would be able to enter the home-security system [12]. After all the procedures were completed, user could input the operation code『9』 to start the home-security , 『0』 to close it, or 『#』to offline the system. The flowchart of the procedures when phone received

3319

Figure9. Alarm-setting procedures by phone-net

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009

Figure11. Circuits for decoding DTMF and auto-dial-answer system Table 2. DTMF of keys on phone panel

Low frequency

Figure10. Flow-chart of phone receiving alarm information

Fig. 11 showed the circuits of decoding Dual-tune Multi-Frequency (DTFM) in phone system and auto-dial-answer system. The decoding part was designed with IC CM8870 which was especially designed to decode DTMF signals which were used two different frequencies to encode the keys information on phone dialing panel as shown in Table 2. When users dialed the key on phone panel, the DTFM signal would send to phone receiver in house, and the IC CM8870 in the phone of house would decode the signals back to its original BCD codes and could be recognized by the core CPU 89C51. Since there were none in the house, the phone would not be picked up and the phone was not connected and the controlled codes could not be sent to the phone-net control system, so, the pulsed transform ST-71 was design as simulated load to replace the resistance of house phone (about 300 Ohms). When phone was at stand-by condition, the line voltage between two lines of phone-net was DC 46 V~DC 50 V and when phone was called in, the voltage would change to Vpp =100V, 16HZ, sine wave. That meant we could design ring-detected circuit which used a rectifier to get up-period of sine wave and wave shaped into squared-wave circuit (combined with Q4 and PC817) then send to T1 pin of core 8051 to count to 160 and if still none picked the phone then the simulated load would be connected into phone-net to let the phone-net connected so as to proceed the next procedures (sending all control-codes by user far away the house).

697HZ 770HZ 852HZ 941HZ

1209HZ 1 4 7 *

High frequency 1366HZ 1477HZ 2 3 5 6 8 9 0 #

1633HZ A B C D

Fig. 12 showed the core 89C51 combined with BT module which was responsible for sending control codes of alarm information or setting the alarm system. IC 74LS244 was responsible for sequentially switching two group I/O, one was push-button of recording, and the other was encoding and decoding for speech signals, and they were sharing P2 of 89C51 together. BT module transmitting data with TXD and receiving data with RXD which were connected to 89C51 and there was set a LED as the indicator shown the signals of linking or offline with receiving module. Fig. 13 showed the circuits of how to record the host’s speech and broadcast it afterwards. IC ISD1420 was a selected speech function IC including record and broadcasting and it offered 20 seconds for record; moreover, it offered users some certain section keys matching of speech-selected and that meant users need not to record some repeated sections. The recorded sections and time (seconds) could be determined by program. The recorded speech could be amplified by LM386, an audio amplifier IC, combined with speaker to broadcast the speech through phone. In Fig. 13 the audio signals output VO was connected to the output of simulated load in Fig. 11 and when the phone was connected the users could hear the echo speech from electricity microphone. REC (PIN-27) was record-control pin and it must set to low-level voltage when starting recording while high-level ceasing recording. The condition of being recorded was judged by RECLED (PIN-25), which was low-level voltage, the LED connected to it would be flashing and that meant it was recording. PLAYL (PIN-23) or PLAYLE (PIN-24) were pins used to control

3320

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009 broadcasting, which should be set “LOW” when started broadcasting and if the section of speech finished broadcasting, the RECLED (PIN-25) would become “LOW”, successively, setting PLAYL ( PIN-23) or PLAYE (PIN-24) “HIGH” to turn off the speech broadcasting. A0~A7 were used to address the speech sections. A6 (PIN-9) and A7 (PIN-10) could set as operated mode or speech addressing mode. When one of A6 and A7 was “LOW”, it was regarded as speech addressing mode and this condition would change to operated mode when appearing falling edge of PLAYL (PIN-23), PLAYE (PIN-24), or REC (PIN-27). MIC (PIN-17) and MIC REF (PIN-18) were inputs of audio signals, and ANA IN (PIN-20) and ANA OUT (PIN-21) were audio coupled circuit. SP + (PIN-14) and SP − (PIN-15) were output pins of audio signals that combined with LM386 amplify the audio signals and to output speech volume through speaker.

directly selecting the buttons. If the condition comes into the alarm status, and that meant someone intruded the house and triggered the lead-switches on the door or windows, the detected signal would respond to 89C51 core on alarm system, the latter would send the information of alarm trigger to servo-PC through BT wireless communication net, and then there would be an echo information of yellow circle, indicated on screen of servo-PC as well as the screen on PDA of users anywhere. There were three different colors of echo status: white circle meant “alarm system not started or off-line”, yellow meant “alarm system was triggered and having notified the auto-dial-answer system”, and red meant “the alarm system was surely started and standby for detecting”. The responding system with color circles could replace traditional design with CCD images monitoring and cost down the expenditure effectively.

Figure14. Main screen of graph operating interface for home-security in servo-PC in home Figure12. Circuit of control core 89C51 combined with BT module

As mentioned above, users could monitor the status of home-security alarm system in his own house through the screen on his PDA or cell phone which have the synchronous screen as servo-PC in the house with pre-installing PC-Anywhere software into both servo-PC and PDA. That means users could control any facilities or appliance such forgetting turn-off oven or air-conditioning anywhere. The operating screen of PC-Anywhere was shown in Fig. 15 and 16.

Figure13. Circuit of Speech recording and broadcasting

3.4 The interface of system software on servo-PC The operating interface of software on servo-PC was shown in Fig. 14, in which the alarm system control setting was in the area marked by green line, and users (hosts) could set the alarm system starting or closing by mouse

Figure15. Internet remote control software of PC Any-Where on servo-PC

3321

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009

[4]

[5]

[6] Figure16. Synchronous control screen between Servo-PC and PDA after linking by PC Any-Where

4.

Conclusion

Nowadays, in our daily life the home-security system was popularly adopted, but in most occasions the security system was usually occupied or organized by big insurance companies or specific security companies. That means users need to pay higher money for management fee to protect the safety of their own houses. In this paper we develop another home-security system combining with some brand-new technologies such as wireless sensor network (BT) and speech recognition to design DIY home-security system that was not only easy to accomplish the security work of people’s houses, but also save much money . On the other hand, since the system owns the synchronous operation with servo-computer far away, it is easily used for intelligent system such as digital-house in the future [14].

[7] [8] [9]

[10]

[11] [12]

Acknowledgement This research was sponsored by Education Minster of Taiwan under the “2008 Subsidizing for Colleges & Institutes Integrated Program of Enhanced development”Plan of Integrating Advanced Electrical Energy Techniques & Engineering.

[13] [14]

References [1]

[2]

[3]

Z.Y. Zhou, “Design of Self-developed Home-security and Anti-disaster System”, Master Thesis, Dept. of Electrical Engineering, National Cheng-Kong University, Tainan, Taiwan, 2002. P.L. Lai, “Bluetooth-Resolution for Short Distance Communication”, Master Thesis, Dept. of Electronic Engineering, National Taiwan University of Science and Technology, Taipei, Taiwan, 2007. H.Y. Liu, “The Study of Equalizer in Wireless Communication System”, Master Thesis, Dept. of Electrical Engineering, National Cheng-Kong

[15]

[16]

[17]

3322

University, Tainan, Taiwan, 2003. K.H. Tsai, “The Design of Control System for Home Information-Appliance through Power-Line”, Master Thesis, Dept. of Electrical Engineering, National Cheng-Kong University, Tainan, Taiwan, 2001. I. B. Liao, “Infrared Remote Control Based on LCD Displayer and Speech Synthesizer”, M.S. Theses of Electronic Engineering Dept., National Taiwan Technology and Science University, 2007. I.G. Liu, “The Event-driving for Communication Net of Integrated Mobile Phone and Wireless Sensor Net work”, Master Thesis, Dept. of Information Engineering, National Chiao-Tung University, HsinChu, Taiwan, 2003. Symantec Crop. PC Anywhere 12.1 Data-book., 2009 C.L. Hsu and F.S. Chen, 8051/8951 Theory and Application in Practical Projects, Chuan-Hwa Technology Bookstore, Taipei, Taiwan, 2004. S.T. Lin, “The Implementation of Hardware for Speech Enhancement System Based on Micro-wave Transferring”, Master Thesis Dept. of Electrical Engineering, National Cheng-Kong University, Tainan, Taiwan, 2005. D.H. Chang, “The Improvement for Blinking Phenomenon of Mini-scaled LCD Displayer”, Master Thesis Dept. of Electrical Engineering, National Cheng-Kong University, Tainan, Taiwan, 2007. I.C. Fang, “Serial Communication Control of RS-232 Interface with Visual Basic”, Wen-Kuei Information Bookstore Ltd. Corp., Taipei, Taiwan, 2007. S.L. Wu, “Implementing Group Robots into Home-Security System”, Master Thesis, Dept. of Electrical Engineering, National Yun-Lin Technology University, YunLin, Taiwan, 2007. I.P. Tzu, “Mastering in Visual Basic6 - Basic Design”, Ru-Lin Bookstore Ltd. Corp., Taipei, Taiwan, 2007. B.C. Chang, “The Study of Security & Service System in Digital Home Based on UPnP Techniques”, Dept. of Information Engineering, Shu-Te Technology University, Kaohsiung, Taiwan, 2007. V. Chunduru and N. Subramanian, “Effects of Power Lines on Performance of Home Control System Power Electronics, Drives and Energy Systems,” Proc. of International Conference on Power Electronics, Drives and Energy Systems, Delhi, India, 2006, pp. 1-6. I.K. Hwang and J.W. Baek, “Wireless Access Monitoring and Control System based on Digital Door Lock,” IEEE Transactions on Consumer Electronics, 53(4), 2007 pp. 1724-1730. S.M. Tsai, P.C. Yang, S.S. Wu, and S.S. Sun, “A

Proceedings of the Eighth International Conference on Machine Learning and Cybernetics, Baoding, 12-15 July 2009 Service of Home Security System on Intelligent Network,” IEEE Transactions on Consumer Electronics, 44(4), 1998, pp. 1360-1366.

[18] Y. Zhao and Z. Ye, ”A Low Cost GSM/GPRS Based Wireless Home Security System,” IEEE Transactions on Consumer Electronics, 54(2), 2008, pp. 567-572.

3323