REMOTE ALARM AND COMMAND SYSTEM FOR RESIDENTIAL DOMOTICS TROUGH GSM - SMS Mafalda Seixas1, João Palma1,2 1

Instituto Superior de Engenharia de Lisboa, DEEA, CEEI Av. Cons. Emídio Navarro,1949-014 Lisboa, Portugal. E-mail: [email protected], [email protected] 2

Laboratório Nacional de Engenharia Civil, CIC Av. do Brasil, 101, 1700-066 Lisboa, Portugal.

ABSTRACT The conception of an electronic system for alarm monitoring and remote command devices, through GSM mobile net using short messages (SMS) is described. It was developed as a low cost solution based on a common mobile phone and an Intel 8751 microcontroller. A prototype was built with a versatile configuration for residential domotics, including 6 binary inputs and 6 binary outputs, allowing to be associated to 4 different users (mobiles phones). The main characteristics of the hardware and protocol used for communication are described. The system was conceived in order to get an adequate performance, which came to be confirmed with the prototype. Reference is also made to other known systems for similar functions. KEYWORDS: alarm monitoring, home domotics, mobile phone, SMS.

1. INTRODUCTION The evolution of micro-electronics and communications technologies, brought many innovations in different automation areas, in particular in Domotics, where the technology of industrial processes was adapted to routine domestic tasks. Domotics is the technology for integrating automated process in buildings, at comfort level, safety, energy saving and communications. An increase of receptivity to residential domotic solutions is being noticed lately, reflecting the users wakening for the need and utility of personalized management solutions for the devices and equipment already available in the majority of homes [1]. New technological opportunities are appearing that can contribute to simpler forms of implementation of domotic scope functions, namely, the wireless nets, the detectors and sensors and the mobile communication systems. This last aspect is important because part or all home users usually move to sometimes great distances, and

eventually for long periods, thus motivating the investment in the present study. The proposed system is intended for device state monitoring in a residence, for sending alarms, and also for remote command of equipment, by using simple messages in a mobile, trough GSM ("Global System for Mobile Communications") net, using the Short Message Service (SMS) [2,3]. The mobile phone is a natural choice, since it is a communication resource generally available by people, which makes them practically always contactable and capable to send commands to operate home systems. SMS is a globally accepted wireless service that enables the transmission of alphanumeric messages up to the limit of 160 characters between mobile subscribers via SMS Center (SMSC). All GSM operators provide the Short Message Service. It is low cost, easy to use and a relatively safe media, with sufficient message dimension and rhythms of transaction for the normal functions in residential domotics; it may also assure late deliverance in case of momentary communication breaks. The most important limitation on this type of solution results from the need of signal coverture by the mobile operator at the installation place.

2. CURRENT SOLUCTIONS FOR LONGDISTANCE COMMUNICATION BY GSM Some devices of this type can be already found in the market, which, although not very diverse, is quite interesting in terms of functionalities and application potentials. Some commercial assignments are referred: Spider Sms, Auto Bleep, Anino Sms, Comsat. Such devices have, in general, inputs to which external alarm systems are connected and outputs through which

house equipment can be commanded. The inputs are cyclically checked; the occurrence of a change of state triggers the sending of one or more messages by SMS with the event information. The interface with the command devices is guaranteed, normally, with electromechanical relays, operated by the reception of a specific SMS message. One common characteristic of the studied equipment is its manufacturers’ concern with actualisations, referring to new functionalities, which suggests that this type of solutions is still in an active phase of research and technological development. Two types of solutions for communication may be found in the local (fixed) command unit: one is based on the incorporation of an ordinary mobile phone, through a data cable, while the other one uses a specific modem (modulator-demodulator) for this type of communication. The use of a modem has advantages in terms of data handling and the use of protocols defined by the user; it is usually a good solution for large scale data transfer, normally using GPRS (General Packet Radio Service), but having a high cost for typical residential automation applications. The advantage of using a mobile phone in this type of system is its low cost, due to large-scale production, and general availability. It also assures automatic reconnection mechanisms to the cellular net, even after service or transmission occasional interruptions. However they require the knowledge of serial communication protocols established by the manufacturers that, in general, are not freely available. Regarding the analysed systems it was decided to work on the development of a low cost system that fits the typical needs of an urban residence with medium level functionalities.

3. SYSTEM DESIGN The developed system consists of a home unit with: on one hand, 6 binary inputs for equipment monitoring (e.g. intrusion, fire detection, etc.) which triggers the delivery of warning or alarm SMS messages to specified mobile phones; on the other hand, 6 output binary (relay) devices (e.g. for air conditioning, light control, irrigation, etc.), to be actuated by remote command, through coded SMS messages by authorised mobile phones. The system block structure is presented in fig. 1.

messages, the delivery of other messages, the removal of read messages, etc.). The inputs are connected to external alarm systems, through optocouplers and the outputs are connected to external devices by relays for better disturbance rejection. Inputs

Optoc.

Outputs

Relays

Power supply/ accumulat.

Microcontroller

driver

External memory

RS-232 115,2 kb/s

Figure 1 – General structure of the home (fixed) unit A.

System Functions

When a change of state occurs in one of these inputs a protocol byte sequence is transmitted through the serial port to the fixed mobile phone, corresponding to a command of sending an SMS to a specific number of mobile phone with a previously defined warning text. Similar messages are sent to other specific mobiles, up to a total of 4. When a communication of this type takes place, the microcontroller waits until the mobile acknowledges the command reception. If an acknowledgement is not received the command is sent again up to three attempts. Conversely, an SMS reception by the dedicated mobile causes a byte sequence transmission trough the serial interface. This sequence is analysed by the microcontroller and, if valid, it actuates the corresponding output relay to turn on/off the device to which is connected. By sending a specific enquiry SMS message, from an authorised mobile number, the user can get the overall input and output state as a reply message in his/hers phone. Any mobile allows a limited number of messages to remain in memory, beyond which it does not accept new messages. In order to avoid that, every message is automatically deleted from the memory card, preventing a memory overflow.

An ordinary mobile phone, in this case the NOKIA 3310 model, was chosen as the dedicated (fixed) device to perform the communication tasks. However, the user’s mobile phones can be from different manufacturers.

An MSWindows application was elaborated to allow an easy configuration of up to four accepted numbers of mobile phones, making possible to specify, for each number, which input (warning) messages are to be sent and which outputs are authorized to be operated.

The interpretation and elaboration of messages is done by a microcontroller. It manages the information bidirectional flow between the mobile phone and the microcontroller (namely the detection of arrival

This is the only situation when a computer should be connected to the unit, in order to initialize the system. A RS232 serial cable is used to make the connection. The main configuration window is shown in figure 2.

C.

System Hardware

The system is based in a single Intel 87C51FA microcontroller [6], appropriately configured to work at 115,2 Kbits/s, using a 14.7456 MHz oscillator. The considerable amount of data from messages being processed requires the use of an external memory, since the microcontroller only has 256 bytes data space. A data cable that contains electronic processing to convert the mobile phone 3V signals into RS-232 type signals completes the mobile phone and microcontroller connection. Electrical connections between output relays and input optocouplers and external devices are schematically shown in figure 3. Entradas

Saídas

12V

NA C NF

F 230V

NA C NF

24VDC

N

Figure 2– Main window of the configuration program Alarm messages as well as the remote command messages that allow operating the external devices, are previously defined and may not be changed. B.

0V

0

12V

Communication Protocols

To establish the connection between mobile and SMSC a communication protocol based on ETSI rules, is used [4]. However to establish the connection between the microcontroller and the dedicated mobile phone the used protocol is an ETSI adaptation, the F-Bus protocol, from the manufacturer NOKIA [5].

0V

Figure 3– External interface schematics

The signal elaboration is NRZ type, with asynchronous serial full-duplex data transmission, organized in octets. The baud rate is 115,2 kbit/s, using 8 data bits, 1 stop bit and no parity bit.

D.

In general terms the communication sequence established between the dedicated mobile and the microcontroller is processed in the following way: • microcontroller sends a command package • mobile sends an acknowledge command • mobile sends a reply package, reporting successfully delivery • microcontroller sends an acknowledge command.

Its broad structure consists of two main routines, one for sending the sms messages and another for reading and processing the incoming messages.

When this last acknowledge command does not arrive at the mobile, the protocol interprets this situation as a communication fail and retransmits the reply package up to three times.

System Firmware

Details of the microcontroller program developed for this system are described on the flowcharts of figure 4 and figure 5.

The firmware is stored in the 8 Kbyte internal EPROM program memory of the microcontroller.

BEGIN

INPUT STATE CHANGE?

NO

YES

SEND ALARM MESSAGE TO DEFINED NUMBER

NO

SUCCESS?

THIRD ATTEMPTED?

NO

YES

YES

YES

OTHER DEFINED NUMBERS?

Fig. 6– Developed system photo 4. CONCLUSIONS

NO

Fig. 4– Alarm monitoring/sending routine BEGIN

The developed system accomplishes the objective of good performance and low cost, as intended, as well as showing good immunity against the interference of strange agents, given the strict recognition made to the authorized numbers of mobile phones. Major limitations consist of the reduced number of users, unchangeable message contents and need of signal coverture by mobile net operator.

INCOMING MESSAGE?

NO

YES

VALID MESSAGE?

NO

YES

VALID DEFINED NUMBER?

NO

YES

OPERATE EXTERNAL DEVICE

DELETE MESSAGE

Fig. 5– Remote command routine E.

Developed System

The developed prototype board, connected to the dedicated mobile, is shown in figure 6. Experimental tests carried out with the system confirm the expected performance.

This type of solution brings an important contribution for security and comfort aspects in residential domotics. However it still has potential for other applications in industry and services requiring a moderate debit of message transactions. Looking at other commercial systems some interesting solutions were found, capable of performing similar functions, although with different characteristics, and in general with relatively high cost.

REFERENCES [1] Pragnell, M., Spence, L. and Moore, R., The Market Potential for Smart Homes, York Publishing Services Ltd, 2000. [2] Peersman, G., Cvetkovic, S., “The Global System for mobile Communications Short Message Service”, IEEE Personal Communications, June 2000, pgs 1523. [3] Collesei, S., Di Tria, P., Morena, G., “Short Message service based applications in the GSM network”, Proc. 5th IEEE International Symposium on Personal, Indoor and Mobile Radio Communications, 1994, pgs 939-943. [4] ETSI TS 100901. Digital cellular telecommunications system (phase 2+); Technical realization of the Short Message Service (SMS) Point-to-point (PP), 3GPP TS 03.40 version 7.50 release 1998. [5] Peacock, W., Nokia F-Bus Protocol, http://www.embedtronics.com/nokia/fbus.html [6] Intel Corporation, MCS 51 Microcontroller Family User’s Manual, 1994.

remote comand system four residential domótica by gsm-sms - aedie

SMS is a globally accepted wireless service that enables the transmission of ... inputs to which external alarm systems are connected and outputs through which ... The use of a modem has advantages in terms of data handling and the use of ...

242KB Sizes 2 Downloads 47 Views

Recommend Documents

remote comand system four residential domótica by gsm-sms - aedie
SMS is a globally accepted wireless service that enables the transmission of ... The advantage of using a mobile phone in this type of system is its low cost, due ...

MENU PRINCIPAL Comand Id, 1. system configuration
Comand Id, 2. system status. Comand Id, 3. system manager list ... Comand ID 8. System download. Comand ID 9. System management access ...

100.REMOTE WIRELESS AUTOMATIC METER READING SYSTEM ...
100.REMOTE WIRELESS AUTOMATIC METER READING SYSTEM BASED ON GPRS.pdf. 100.REMOTE WIRELESS AUTOMATIC METER READING SYSTEM ...

Remote, aircraft, global, paperless maintenance system
Dec 4, 1998 - communication system for subsequent reception, analysis, storage and generation of aircraft ?ight, safety, fuel e?i ciency and maintenance advisories at a Central Ground. Based Processing Station (CGBS). Whenever an airplane crashes, au

NORCONTROL manual part1 ( Automation Remote Control System ...
NORCONTROL manual part1 ( Automation Remote Control System. Part.1 .Eng. ).pdf. NORCONTROL manual part1 ( Automation Remote Control System.

Relis-G: Remote Library Install System for Computational Grids
Relis-G: Remote Library Install System for Computational Grids ... When a grid user installs the library which is used by the ..... of the build file of Apache Ant[1].

Secure, Remote Access with a Portable USB Operating System White ...
higher levels of security access than these PCs allow, and most of these workers already have their own .... uploading to the cloud. • Windows to Go ... computing on a given PC, such as using locally installed applications while accessing Intel ...

( Automation Remote Control System. Part.2. Eng.).
NORCONTROL system description part2 ( Automation Remote Control System. Part.2. Eng.).pdf. NORCONTROL system description part2 ( Automation Remote ...

System and method of network independent remote configuration of ...
Sep 30, 2005 - Patent Documents. Reissue of: (64) Patent No.: Issued: Appl. No.: Filed: Int. Cl. G06F 15/16. 6,629,145. Sep. 30, 2003. 09/516,386. Mar. 1, 2000. (51). (2006.01). (52) US. Cl. . ... (74) Attorney, Agent, or FirmiDouglas Grover. (57) ..

Secure, Remote Access with a Portable USB Operating System White ...
conditions, especially in regions where bandwidth is poor. The user experience, especially in ... a hassle-free experience. .... helps monitor and address day-.

Remote Sensing Image Segmentation By Combining Spectral.pdf ...
Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Remote Sensin ... Spectral.pdf. Remote Sensing ... g Spectral.pdf. Open. Extract. Open with. S

Residential Bldg
1 pad certification due at submittal or finish floor elevation certificate due prior to ... 2 pre-engineered truss drawings with hangar hardware called out if used. 5.

man-145\mercedes-benz-comand-aps-manual.pdf
man-145\mercedes-benz-comand-aps-manual.pdf. man-145\mercedes-benz-comand-aps-manual.pdf. Open. Extract. Open with. Sign In. Main menu.

man-69\comand-aps-ntg2-secret-menu.pdf
man-69\comand-aps-ntg2-secret-menu.pdf. man-69\comand-aps-ntg2-secret-menu.pdf. Open. Extract. Open with. Sign In. Main menu.

Cheap Wireless Bluetooth Remote Control Multimedia Remote ...
Cheap Wireless Bluetooth Remote Control Multimedia Remote Music Control Camera Shutter for Smartphone.pdf. Cheap Wireless Bluetooth Remote Control ...

Harmony Residential C/O FirstService Residential -
Jun 23, 2015 - ST CLOUD FL 34773 Other - Storage ... The Harmony Residential Board of Directors is dedicated to protecting the investments made in your ...

man-152\comand-aps-manual-download.pdf
man-152\comand-aps-manual-download.pdf. man-152\comand-aps-manual-download.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ...

Natural gas residential and
Feb 8, 2016 - Natural gas residential and business rebate programs continue in 2016. Dayton ... “Energy efficient products and services deliver substantial.

Residential Movers.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Residential ...Missing:

Harmony Residential C/O FirstService Residential -
Jun 23, 2015 - ST CLOUD FL 34773 Other - Storage. Inspection Date: June 23, 2015 ... Please remove potted plants/personal items from walkways, front ...