online remote control of a wireless home automation...

14
ber2009 nd Networking ':117 MSc degree France. fie is of the Nef1.1!ork '1d as direction :erland. She is Jrking, qualit y )c Networking conferences in vorks. She has ndation (£SF) vla gazin e, and )1' Networks of laJ bl' £/s eviel; us Com puting .ATC) both by lnd Networks, cations Maga- and QoS EE PERCOM :shop chair of WONS 2005, 10P and ACM rc Po/several as weLL as fiJI' Society, ACM hoc networks, International Journal of Ambient Computing and Intelligence, 1 (3), 39-52, July-September 2009 39 Online Remote Control of a Wireless Home Automation Network John Wade, University of Ulslel; UK Jose Santos, University of UK Noel Evans, University 0IU/s lel; UK ABSTRACT Embedded systems within home appliances are not usually l1Ianufacrured to operate in a networked environment; connectinK sZlpplementary hardware/software ::,yst el7l S through a 'wireless, PC-controlled medium is n ecessCII)I to enable jitll, efficient conlrol of their fimclionsfrom a remote location. Access 10 the central PC may be ga in ed via a 10call,veb giving Internet- based control from almost anvwhere in the world The proposed syslem constitules a significonl improvement over those discuss ed in the lirerature /() dale, and revi ewed here. It enables complex-appliance control in a secure andre liable portable-I1'ireless environment, andYl'as developed LlsingASPNet. Th e system was assessedfo r Received Signal Strength ( RSS) il1 on environment more radio-hosrile Ih an thatfound in a typical household The minimum RF lel'el/Ound al a transfer rate of 9.6 kbps was 8 dB above the receiver:S quoted sensitivity of - j 03 dBm: this jc/ding margin will in crease in a nor mal hOlls e hold environment. [Aliicle copie s are available for purchase from Info Sc i-on-Demand. co l11] Keywords: Home Automation Network; Microcontrollers: Wireless Sensor Network INTRODUCTION are embedded increasingly into every day household items, e.g. microwave As the cost of electronics components ovens, toasters, televisions and wash- and microprocessors decrease, they ing machines. Unfortunately it is still I Globol Copy right < [j 200Sl, IGI Glob,,! Copy ing 01 dtstril.Hlliof in prill t or elec tronic fOllllS without wntten pennl $SJOll or IGI Globa l is prohibil ed.

Upload: duongliem

Post on 09-Jul-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

ber2009

nd Networking 117 MSc degree France fie is

ofthe Nef11ork

1d as direction erland She is Jrking quality )c Networking conferences in vorks She has

ndation (poundSF) vlagazin e and )1 Networks of laJ bl poundseviel us Com puting ATC) both by

lnd Networks cations Magashy~ing and QoS EE PERCOM shop chair of WONS 2005

10P and ACM rcPoseveral as weLL as fiJI Society ACM hoc networks

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 39

Online Remote Control of a Wireless Home Automation

Network John Wade Universi ty of Ulslel UK

Jose Santos University of Ulsfel~ UK

Noel Evans University 0IUslel UK

ABSTRACT

Embedded systems within home appliances are not usually l1Ianufacrured to operate in a networked environment connectinK sZlpplementary hardwaresoftware ystel7lS through a wireless PC-controlled medium is necessCII)I to enable jitll efficient conlrol of their fimclionsfrom a remote location Access 10 the home~ central PC may be gained via a 10callveb servel~ giving Internet-based control from almost anvwhere in the world The proposed syslem constitules a significonl improvement over those discussed in the lirerature () dale and reviewed here It enables complex-appliance control in a secure andre liable portable-I1ireless environment andYlas developed LlsingASPNet The system was assessedfor Received S ignal Strength (RSS) il1 on environment more radio-hosrile Ihan thatfound in a typical household The minimum RF lelelOund al a transfer rate of 9 6 kbps was 8 dB above the receiverS quoted sensitivity of - j 03 dBm this jcding margin will increase in a normal hOllsehold environment [Aliicl e copies are available for purchase from InfoSc i-on-Demandco l11]

Keywords Home A utomation Network Microcontrollers Wireless Sensor Network

INTRODUCTION are embedded increasingly into every day household items eg microwave

As the cost of electronics components ovens toasters televisions and washshyand microprocessors decrease they ing machines Unfortunately it is still

I Globol Copyright lt[j 200Sl IGI Glob Copying 01 dtstrilHlliof in prill t or electronic fOllllS without wntten pennl $S JOll or IGI Globa l is prohibil ed

40 International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

not possible to communicate ith these appliances via a network be that from vithin 01- outside th e home Although the appl iances have embedded micloshyPj()ccssors to help contrul theironboard systems they do not have the capabilshyity to cOllllllunicate witll a network of any kind Thi s is because there are no communication devices pre-installed and as yet no clear leader exists in home automation network protocols Unti I this happens true home automashytion networks cannot be full y reali sed Til is hove ver does not Iim it the abil ity to remotel y control appl iances in the home To do thi s domestic app liances can be grouped as

I Appliances that can only be turned on and off (Group I) Appl iances that can be controlJed in a more functional manner sLlch as televisions DVD players and HiFi equipment (Group 2)

Thele are many reasons why the ability 10 remotel y control1he home is an ad antage In modern times security and time management have become important issues Houses may give 311 impression of occupation through controlled lighting and have their alarm system monitored~ kitchen tasks may be stand remotely from a work location sav ing time after the daily commute A control netvvork could al so gi ve [he e lderl y and disabled a more independent way of life

In section two a background review of ptevious research into this topic

is presented Section three discusses the hardware design for the system investigated Section four explores the software design for both the Internet interface and thenrm ware for the mishycroprocessors Sectionfive discusses the testing protocol and results obtained from the system Finall y section six presents conclusions and suggestions for future work

COMPUTER CONTROLLED HOME AUTOMATION

There have been several approaches to computer controlled home automation what follows is a review of the most significant and recent contributions

AI-AliAR ampA[-Rousan M (2004) developed a system built from a Java based L1ser interface that was accesshysi ble through the World Wide Web The system allowed the user to tum a cooker light bulb or a fan on and off This system used direct wiring from the computer to the appliances to exercise control over them this approach is very costl y due tothe amount ofcable needed to connect all the appliances found in a modern house Also appl iances that fall into Group 2 could not be implemented in thi s system and introduction of new appliances inLothe household will result in further integration costs

Sri skantllan N (2002) proposed a system that controll ed home applishyances from a PC usi ng Bluetooth as the communications technology As before there was no consid eration for

t (I~I I ~ l n ( (11) I(jl ( iiohd Cop~ 11l ~ 0 1 dll nbllllg III prill or eI ~U f(U ) H jOIlIl ) I ilhollt v ritt en pell ll issio ll bull)f I( il G lobClIt

b lu pillitil ld

~r2009

~ discusses the system xplores the he Internet for the mishy~ discusses Its obtained section six uggestions

LED

)roaches to utomation f the most ibutions 1M (2004) om a Java vas accesshy~ide Web r to turn a )n and off

19 from the to exercise ach is very bleneeded found in a es that fall plemented ion of new I will result

proposed )l11e applishyuetooth as ology As eration for

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 41

those appliances that faU into Group 2 and could not be controlled over the Intemet By using Bluetooth there is also a limit to the number of appliances that can be controlled According to Stallings (2002) up to eight devices can communicate in a small network called a piconet and up to ten piconets can coexist in the same coverage range of a Bl uetooth radio This permits up to 80 appliances to be connected Although a significant number at present in the future this may become a limitation on the system Another disad vantage of Bluetooth is that it allows ad-hoc networking This enables an appliance

that is Bluetooth enabled to establish an instant connection with another Blushyetooth enabled appliance in the network when it comes into range The main implication of this statement is that as new appliances are introduced into the home the PC software has to be able to identify the appliance and either accept it or rej ect it automatically

Bigio P amp Cucos A amp Corcoran P amp Chahil C amp Lusted K (1999) deshysigned and implemented a non-standard means of wireless networking suitable for home automation Their system consisted of a low-power RF network broadcasting on 433 MHz which again is license-free as it falls in the Industrial Scientific amp Medical (ISM) band according to the European Radio Commission Committee (2005)

The system is based on a master slave topology and is composed of a base station relay units and slave units The base disti nguishes between appJicashy

tion requests and functions application requests remain transparent to the radio system and therefore only the function of the appliance is broadcast These broadcasts consist of framespackets which have headers body trailer and a blockframe check for error cbecking The relay units are used to extend the range of the base station which has a range of 150 m This range is sufficient in most homes and therefore the relay units are not nonnally needed The slave units are used to relay the inforshymation provided by the base station to their appliance The network manager software controls all communications

of the Radio Frequency (RF) network it runs as a background service on the PC and is also responsible for granting or denying access to recently arrived slave units depending on the unit being a legal part ofthe network This system whilst providing clear advantages over those previously proposed still does not provide support for control over the Internet However it does show how useful and powerful using a nonshystandard RF network for the commushynications medium can be by allowing the designer full flexibility over the communications protocol

Thomas R (2000) designed a sysshytem that could decode signals from remote control units using the RCS protocol which is used by Philips and the SIR C protocol used by Sony This work highlights the problems that arise when trying to capture decode and recreate remote control protocols This system only dealt with two ofthe more

Global Copyn~hl lbi 2009 rO Global Copying or dlstnbl1tillg in prlllt or electronic ronn~ without wrttten perlllissi on of IG I Globrtl is prohibited bull

42 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

common protoco ls th ere are num erous others from a variety of manufacturers Try i ng to prod uce a sys tem that can recreate all protocol s is not feasi ble for tVlO reasons Fi rstly from an economic point llf view a very vide range of remote controls from various manushyfacturers Vvould need to be available s() that signa ls may be captured and recreated Secondly_the time needed to do thi s accurately is prohlematic other vvorkel-S dedicate III uch etfOl1 in this area [Iet 1I1110lech Systems] Therefore it was considered more practical here to adopt a pre-desiglled universal remote contro l in the design

Guan R amp Pruehsner WR amp Enderle J0 (2000 ) designed u system which used a GUI (Graphical User Interface) running on a PC 10 address the control problem presented by appl iances that fall into Group 2 User input from a graphical representation of a remote control in the GUI se nt data wirelessly to a PIC microconlroll er via the se rial port of the Pc This dala vvas theri transshytormed inlo special control commands fexvarded to a P P400 1 Ull iversal remote control JC this is preprogrammed to control mO SI brands of appliances that

Figurl I DUll unit hock diuJlwl1

have Infra Red OR) remote controls Although this approach negates the need to design a custom decoder again there was no facility for control overthe Internet and the PP400 I is expensive

By extend ing the elements discussed above it became possibJe to implement a system that is capable of co ntrolling both groups of appliances over the Internet thus providing a reliable and secure connection to all appliances within a wireless home network from almost anywhere in the world

HOME AUTOMATION NETWORK HARDWARE IMPLEMENTATION

The Home Automation Network is broken il1to 3 different sub-systems the control unit (Base Unit) the Group 1 receiver units (G Pl Units) and the Group 2 receiver units (GP2 Units)

Base Unit

As shown in Figure] the Base unit is the main control center forihe system it communicates with tIle host PC (home

n77 Multipl~xoa

ltll1 II ~~ hl l ~l HI(J ]( il (jlnhal ( t)pYlll1 ()I dlSlnlllJJlllg III prill t or ekCII()I1IC JorillS wi lhuul wn nt ll pcrlllis~I(J ll ur JGI Global 1- plOinhllld

- 2009

controls gates the Jder again oloverthe xpenslve discussed Hiplement ontrolling

over the liable and tppliances Nork from Id

etwork is )-systems the Group ) and the ~ Units)

ase unit is ~ system it PC (home

]

Global

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 43

PC) via a serial port connection The main computational element that conshytrols communications is a PIC 16F877 microcontroller which has a USART (Universal Synchronous Asynchronous Receiver Transmitter) built in This receives data from the PC and is also responsible for RTS (Request to Send) handshaking between the Base unit and the Pc This ensures that no data is lost during communications due to buffer over-runs All communications between the microcontroller and the PC use a MAX233 as an intermediate signal level converter

Once data has been received by the microcontroller it verifies that a full packet is present and the data is correct data and packet structure wi 11 be discussed further in section 4 Once deemed correct the microcontroller decides which group of appliances the data is intended for and processes it accordingly either passing it to the Group 1 encoders or sending it through the USARTto the Group 2 encoder and on to the transmitter

If the microcontroller decides that the data is intended for the Group 1 appliances it firstly selects the approshypriate input line of a digital multiplexer (Mux) this ensures that only data from the Group 1 encoders is sent to the transshymitter Then the data is output on ports A and C of the microcontroller which are connected to the Group 1 Manchester encoders (RF600E) These communishycate with 4 decoders (RF600D) one on each GP) unit Matching the encoders to the decoders ensures that no other

appliances outside ofthe system can be activated unintentionally and aids sysshytem security The new encoded data is then sent via the Mux to the RTFQ 1 (433 MHz FSK transmitter) [rfsolutionsJ this has an estimated radiated power of 5 dBm when using a )J4 antenna The companion receiver has a sensitivity of -103 dBm for 96 kbs operation This implies that a maximum path loss of ) 08 db may be tolerated

If the microcontroller decides that the data is intended for the Group 2 appliances then once again the correct input line to the Mux is chosen and the data is relayed via the USART to a seshyrial encoder (RF600T) This is a serial version of the previous encoder which also Llses Manchester encoding The Enshycoder encapsulates the data into its OVil1

transmission packet which consists ofa 76 bit preamble a 4-bit sync pattern 1 start bit 8 cOJ1U11and bits the data bits (size depends on the data sent from the microcontroller) and 8 checksum bits This ensures that all data is received cOlTectly by the decoder (RF600T) on the GP2 unit This new encoded data is then sent to the FSK transmitter

GP1 Units

The GP 1 unit block diagram is shown in Figure 2 Each ofthe units is responsible for receiving control infom1ation from the Base unit and controlling the Group 1 appliances connected to them Each Gr 1 unit can control I appliance

When data is received by the FSK receiver the RF600D decodes it if the

Copyrigh t laquo) 200lt) IGI Global COP)Hl or distributing 111 pi illl or electronic forms vilholli wrill en penn iSSIOIl of IG I l i lobfl i IS piohlbil ed -

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 2: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

40 International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

not possible to communicate ith these appliances via a network be that from vithin 01- outside th e home Although the appl iances have embedded micloshyPj()ccssors to help contrul theironboard systems they do not have the capabilshyity to cOllllllunicate witll a network of any kind Thi s is because there are no communication devices pre-installed and as yet no clear leader exists in home automation network protocols Unti I this happens true home automashytion networks cannot be full y reali sed Til is hove ver does not Iim it the abil ity to remotel y control appl iances in the home To do thi s domestic app liances can be grouped as

I Appliances that can only be turned on and off (Group I) Appl iances that can be controlJed in a more functional manner sLlch as televisions DVD players and HiFi equipment (Group 2)

Thele are many reasons why the ability 10 remotel y control1he home is an ad antage In modern times security and time management have become important issues Houses may give 311 impression of occupation through controlled lighting and have their alarm system monitored~ kitchen tasks may be stand remotely from a work location sav ing time after the daily commute A control netvvork could al so gi ve [he e lderl y and disabled a more independent way of life

In section two a background review of ptevious research into this topic

is presented Section three discusses the hardware design for the system investigated Section four explores the software design for both the Internet interface and thenrm ware for the mishycroprocessors Sectionfive discusses the testing protocol and results obtained from the system Finall y section six presents conclusions and suggestions for future work

COMPUTER CONTROLLED HOME AUTOMATION

There have been several approaches to computer controlled home automation what follows is a review of the most significant and recent contributions

AI-AliAR ampA[-Rousan M (2004) developed a system built from a Java based L1ser interface that was accesshysi ble through the World Wide Web The system allowed the user to tum a cooker light bulb or a fan on and off This system used direct wiring from the computer to the appliances to exercise control over them this approach is very costl y due tothe amount ofcable needed to connect all the appliances found in a modern house Also appl iances that fall into Group 2 could not be implemented in thi s system and introduction of new appliances inLothe household will result in further integration costs

Sri skantllan N (2002) proposed a system that controll ed home applishyances from a PC usi ng Bluetooth as the communications technology As before there was no consid eration for

t (I~I I ~ l n ( (11) I(jl ( iiohd Cop~ 11l ~ 0 1 dll nbllllg III prill or eI ~U f(U ) H jOIlIl ) I ilhollt v ritt en pell ll issio ll bull)f I( il G lobClIt

b lu pillitil ld

~r2009

~ discusses the system xplores the he Internet for the mishy~ discusses Its obtained section six uggestions

LED

)roaches to utomation f the most ibutions 1M (2004) om a Java vas accesshy~ide Web r to turn a )n and off

19 from the to exercise ach is very bleneeded found in a es that fall plemented ion of new I will result

proposed )l11e applishyuetooth as ology As eration for

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 41

those appliances that faU into Group 2 and could not be controlled over the Intemet By using Bluetooth there is also a limit to the number of appliances that can be controlled According to Stallings (2002) up to eight devices can communicate in a small network called a piconet and up to ten piconets can coexist in the same coverage range of a Bl uetooth radio This permits up to 80 appliances to be connected Although a significant number at present in the future this may become a limitation on the system Another disad vantage of Bluetooth is that it allows ad-hoc networking This enables an appliance

that is Bluetooth enabled to establish an instant connection with another Blushyetooth enabled appliance in the network when it comes into range The main implication of this statement is that as new appliances are introduced into the home the PC software has to be able to identify the appliance and either accept it or rej ect it automatically

Bigio P amp Cucos A amp Corcoran P amp Chahil C amp Lusted K (1999) deshysigned and implemented a non-standard means of wireless networking suitable for home automation Their system consisted of a low-power RF network broadcasting on 433 MHz which again is license-free as it falls in the Industrial Scientific amp Medical (ISM) band according to the European Radio Commission Committee (2005)

The system is based on a master slave topology and is composed of a base station relay units and slave units The base disti nguishes between appJicashy

tion requests and functions application requests remain transparent to the radio system and therefore only the function of the appliance is broadcast These broadcasts consist of framespackets which have headers body trailer and a blockframe check for error cbecking The relay units are used to extend the range of the base station which has a range of 150 m This range is sufficient in most homes and therefore the relay units are not nonnally needed The slave units are used to relay the inforshymation provided by the base station to their appliance The network manager software controls all communications

of the Radio Frequency (RF) network it runs as a background service on the PC and is also responsible for granting or denying access to recently arrived slave units depending on the unit being a legal part ofthe network This system whilst providing clear advantages over those previously proposed still does not provide support for control over the Internet However it does show how useful and powerful using a nonshystandard RF network for the commushynications medium can be by allowing the designer full flexibility over the communications protocol

Thomas R (2000) designed a sysshytem that could decode signals from remote control units using the RCS protocol which is used by Philips and the SIR C protocol used by Sony This work highlights the problems that arise when trying to capture decode and recreate remote control protocols This system only dealt with two ofthe more

Global Copyn~hl lbi 2009 rO Global Copying or dlstnbl1tillg in prlllt or electronic ronn~ without wrttten perlllissi on of IG I Globrtl is prohibited bull

42 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

common protoco ls th ere are num erous others from a variety of manufacturers Try i ng to prod uce a sys tem that can recreate all protocol s is not feasi ble for tVlO reasons Fi rstly from an economic point llf view a very vide range of remote controls from various manushyfacturers Vvould need to be available s() that signa ls may be captured and recreated Secondly_the time needed to do thi s accurately is prohlematic other vvorkel-S dedicate III uch etfOl1 in this area [Iet 1I1110lech Systems] Therefore it was considered more practical here to adopt a pre-desiglled universal remote contro l in the design

Guan R amp Pruehsner WR amp Enderle J0 (2000 ) designed u system which used a GUI (Graphical User Interface) running on a PC 10 address the control problem presented by appl iances that fall into Group 2 User input from a graphical representation of a remote control in the GUI se nt data wirelessly to a PIC microconlroll er via the se rial port of the Pc This dala vvas theri transshytormed inlo special control commands fexvarded to a P P400 1 Ull iversal remote control JC this is preprogrammed to control mO SI brands of appliances that

Figurl I DUll unit hock diuJlwl1

have Infra Red OR) remote controls Although this approach negates the need to design a custom decoder again there was no facility for control overthe Internet and the PP400 I is expensive

By extend ing the elements discussed above it became possibJe to implement a system that is capable of co ntrolling both groups of appliances over the Internet thus providing a reliable and secure connection to all appliances within a wireless home network from almost anywhere in the world

HOME AUTOMATION NETWORK HARDWARE IMPLEMENTATION

The Home Automation Network is broken il1to 3 different sub-systems the control unit (Base Unit) the Group 1 receiver units (G Pl Units) and the Group 2 receiver units (GP2 Units)

Base Unit

As shown in Figure] the Base unit is the main control center forihe system it communicates with tIle host PC (home

n77 Multipl~xoa

ltll1 II ~~ hl l ~l HI(J ]( il (jlnhal ( t)pYlll1 ()I dlSlnlllJJlllg III prill t or ekCII()I1IC JorillS wi lhuul wn nt ll pcrlllis~I(J ll ur JGI Global 1- plOinhllld

- 2009

controls gates the Jder again oloverthe xpenslve discussed Hiplement ontrolling

over the liable and tppliances Nork from Id

etwork is )-systems the Group ) and the ~ Units)

ase unit is ~ system it PC (home

]

Global

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 43

PC) via a serial port connection The main computational element that conshytrols communications is a PIC 16F877 microcontroller which has a USART (Universal Synchronous Asynchronous Receiver Transmitter) built in This receives data from the PC and is also responsible for RTS (Request to Send) handshaking between the Base unit and the Pc This ensures that no data is lost during communications due to buffer over-runs All communications between the microcontroller and the PC use a MAX233 as an intermediate signal level converter

Once data has been received by the microcontroller it verifies that a full packet is present and the data is correct data and packet structure wi 11 be discussed further in section 4 Once deemed correct the microcontroller decides which group of appliances the data is intended for and processes it accordingly either passing it to the Group 1 encoders or sending it through the USARTto the Group 2 encoder and on to the transmitter

If the microcontroller decides that the data is intended for the Group 1 appliances it firstly selects the approshypriate input line of a digital multiplexer (Mux) this ensures that only data from the Group 1 encoders is sent to the transshymitter Then the data is output on ports A and C of the microcontroller which are connected to the Group 1 Manchester encoders (RF600E) These communishycate with 4 decoders (RF600D) one on each GP) unit Matching the encoders to the decoders ensures that no other

appliances outside ofthe system can be activated unintentionally and aids sysshytem security The new encoded data is then sent via the Mux to the RTFQ 1 (433 MHz FSK transmitter) [rfsolutionsJ this has an estimated radiated power of 5 dBm when using a )J4 antenna The companion receiver has a sensitivity of -103 dBm for 96 kbs operation This implies that a maximum path loss of ) 08 db may be tolerated

If the microcontroller decides that the data is intended for the Group 2 appliances then once again the correct input line to the Mux is chosen and the data is relayed via the USART to a seshyrial encoder (RF600T) This is a serial version of the previous encoder which also Llses Manchester encoding The Enshycoder encapsulates the data into its OVil1

transmission packet which consists ofa 76 bit preamble a 4-bit sync pattern 1 start bit 8 cOJ1U11and bits the data bits (size depends on the data sent from the microcontroller) and 8 checksum bits This ensures that all data is received cOlTectly by the decoder (RF600T) on the GP2 unit This new encoded data is then sent to the FSK transmitter

GP1 Units

The GP 1 unit block diagram is shown in Figure 2 Each ofthe units is responsible for receiving control infom1ation from the Base unit and controlling the Group 1 appliances connected to them Each Gr 1 unit can control I appliance

When data is received by the FSK receiver the RF600D decodes it if the

Copyrigh t laquo) 200lt) IGI Global COP)Hl or distributing 111 pi illl or electronic forms vilholli wrill en penn iSSIOIl of IG I l i lobfl i IS piohlbil ed -

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 3: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

~r2009

~ discusses the system xplores the he Internet for the mishy~ discusses Its obtained section six uggestions

LED

)roaches to utomation f the most ibutions 1M (2004) om a Java vas accesshy~ide Web r to turn a )n and off

19 from the to exercise ach is very bleneeded found in a es that fall plemented ion of new I will result

proposed )l11e applishyuetooth as ology As eration for

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 41

those appliances that faU into Group 2 and could not be controlled over the Intemet By using Bluetooth there is also a limit to the number of appliances that can be controlled According to Stallings (2002) up to eight devices can communicate in a small network called a piconet and up to ten piconets can coexist in the same coverage range of a Bl uetooth radio This permits up to 80 appliances to be connected Although a significant number at present in the future this may become a limitation on the system Another disad vantage of Bluetooth is that it allows ad-hoc networking This enables an appliance

that is Bluetooth enabled to establish an instant connection with another Blushyetooth enabled appliance in the network when it comes into range The main implication of this statement is that as new appliances are introduced into the home the PC software has to be able to identify the appliance and either accept it or rej ect it automatically

Bigio P amp Cucos A amp Corcoran P amp Chahil C amp Lusted K (1999) deshysigned and implemented a non-standard means of wireless networking suitable for home automation Their system consisted of a low-power RF network broadcasting on 433 MHz which again is license-free as it falls in the Industrial Scientific amp Medical (ISM) band according to the European Radio Commission Committee (2005)

The system is based on a master slave topology and is composed of a base station relay units and slave units The base disti nguishes between appJicashy

tion requests and functions application requests remain transparent to the radio system and therefore only the function of the appliance is broadcast These broadcasts consist of framespackets which have headers body trailer and a blockframe check for error cbecking The relay units are used to extend the range of the base station which has a range of 150 m This range is sufficient in most homes and therefore the relay units are not nonnally needed The slave units are used to relay the inforshymation provided by the base station to their appliance The network manager software controls all communications

of the Radio Frequency (RF) network it runs as a background service on the PC and is also responsible for granting or denying access to recently arrived slave units depending on the unit being a legal part ofthe network This system whilst providing clear advantages over those previously proposed still does not provide support for control over the Internet However it does show how useful and powerful using a nonshystandard RF network for the commushynications medium can be by allowing the designer full flexibility over the communications protocol

Thomas R (2000) designed a sysshytem that could decode signals from remote control units using the RCS protocol which is used by Philips and the SIR C protocol used by Sony This work highlights the problems that arise when trying to capture decode and recreate remote control protocols This system only dealt with two ofthe more

Global Copyn~hl lbi 2009 rO Global Copying or dlstnbl1tillg in prlllt or electronic ronn~ without wrttten perlllissi on of IG I Globrtl is prohibited bull

42 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

common protoco ls th ere are num erous others from a variety of manufacturers Try i ng to prod uce a sys tem that can recreate all protocol s is not feasi ble for tVlO reasons Fi rstly from an economic point llf view a very vide range of remote controls from various manushyfacturers Vvould need to be available s() that signa ls may be captured and recreated Secondly_the time needed to do thi s accurately is prohlematic other vvorkel-S dedicate III uch etfOl1 in this area [Iet 1I1110lech Systems] Therefore it was considered more practical here to adopt a pre-desiglled universal remote contro l in the design

Guan R amp Pruehsner WR amp Enderle J0 (2000 ) designed u system which used a GUI (Graphical User Interface) running on a PC 10 address the control problem presented by appl iances that fall into Group 2 User input from a graphical representation of a remote control in the GUI se nt data wirelessly to a PIC microconlroll er via the se rial port of the Pc This dala vvas theri transshytormed inlo special control commands fexvarded to a P P400 1 Ull iversal remote control JC this is preprogrammed to control mO SI brands of appliances that

Figurl I DUll unit hock diuJlwl1

have Infra Red OR) remote controls Although this approach negates the need to design a custom decoder again there was no facility for control overthe Internet and the PP400 I is expensive

By extend ing the elements discussed above it became possibJe to implement a system that is capable of co ntrolling both groups of appliances over the Internet thus providing a reliable and secure connection to all appliances within a wireless home network from almost anywhere in the world

HOME AUTOMATION NETWORK HARDWARE IMPLEMENTATION

The Home Automation Network is broken il1to 3 different sub-systems the control unit (Base Unit) the Group 1 receiver units (G Pl Units) and the Group 2 receiver units (GP2 Units)

Base Unit

As shown in Figure] the Base unit is the main control center forihe system it communicates with tIle host PC (home

n77 Multipl~xoa

ltll1 II ~~ hl l ~l HI(J ]( il (jlnhal ( t)pYlll1 ()I dlSlnlllJJlllg III prill t or ekCII()I1IC JorillS wi lhuul wn nt ll pcrlllis~I(J ll ur JGI Global 1- plOinhllld

- 2009

controls gates the Jder again oloverthe xpenslve discussed Hiplement ontrolling

over the liable and tppliances Nork from Id

etwork is )-systems the Group ) and the ~ Units)

ase unit is ~ system it PC (home

]

Global

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 43

PC) via a serial port connection The main computational element that conshytrols communications is a PIC 16F877 microcontroller which has a USART (Universal Synchronous Asynchronous Receiver Transmitter) built in This receives data from the PC and is also responsible for RTS (Request to Send) handshaking between the Base unit and the Pc This ensures that no data is lost during communications due to buffer over-runs All communications between the microcontroller and the PC use a MAX233 as an intermediate signal level converter

Once data has been received by the microcontroller it verifies that a full packet is present and the data is correct data and packet structure wi 11 be discussed further in section 4 Once deemed correct the microcontroller decides which group of appliances the data is intended for and processes it accordingly either passing it to the Group 1 encoders or sending it through the USARTto the Group 2 encoder and on to the transmitter

If the microcontroller decides that the data is intended for the Group 1 appliances it firstly selects the approshypriate input line of a digital multiplexer (Mux) this ensures that only data from the Group 1 encoders is sent to the transshymitter Then the data is output on ports A and C of the microcontroller which are connected to the Group 1 Manchester encoders (RF600E) These communishycate with 4 decoders (RF600D) one on each GP) unit Matching the encoders to the decoders ensures that no other

appliances outside ofthe system can be activated unintentionally and aids sysshytem security The new encoded data is then sent via the Mux to the RTFQ 1 (433 MHz FSK transmitter) [rfsolutionsJ this has an estimated radiated power of 5 dBm when using a )J4 antenna The companion receiver has a sensitivity of -103 dBm for 96 kbs operation This implies that a maximum path loss of ) 08 db may be tolerated

If the microcontroller decides that the data is intended for the Group 2 appliances then once again the correct input line to the Mux is chosen and the data is relayed via the USART to a seshyrial encoder (RF600T) This is a serial version of the previous encoder which also Llses Manchester encoding The Enshycoder encapsulates the data into its OVil1

transmission packet which consists ofa 76 bit preamble a 4-bit sync pattern 1 start bit 8 cOJ1U11and bits the data bits (size depends on the data sent from the microcontroller) and 8 checksum bits This ensures that all data is received cOlTectly by the decoder (RF600T) on the GP2 unit This new encoded data is then sent to the FSK transmitter

GP1 Units

The GP 1 unit block diagram is shown in Figure 2 Each ofthe units is responsible for receiving control infom1ation from the Base unit and controlling the Group 1 appliances connected to them Each Gr 1 unit can control I appliance

When data is received by the FSK receiver the RF600D decodes it if the

Copyrigh t laquo) 200lt) IGI Global COP)Hl or distributing 111 pi illl or electronic forms vilholli wrill en penn iSSIOIl of IG I l i lobfl i IS piohlbil ed -

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 4: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

42 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

common protoco ls th ere are num erous others from a variety of manufacturers Try i ng to prod uce a sys tem that can recreate all protocol s is not feasi ble for tVlO reasons Fi rstly from an economic point llf view a very vide range of remote controls from various manushyfacturers Vvould need to be available s() that signa ls may be captured and recreated Secondly_the time needed to do thi s accurately is prohlematic other vvorkel-S dedicate III uch etfOl1 in this area [Iet 1I1110lech Systems] Therefore it was considered more practical here to adopt a pre-desiglled universal remote contro l in the design

Guan R amp Pruehsner WR amp Enderle J0 (2000 ) designed u system which used a GUI (Graphical User Interface) running on a PC 10 address the control problem presented by appl iances that fall into Group 2 User input from a graphical representation of a remote control in the GUI se nt data wirelessly to a PIC microconlroll er via the se rial port of the Pc This dala vvas theri transshytormed inlo special control commands fexvarded to a P P400 1 Ull iversal remote control JC this is preprogrammed to control mO SI brands of appliances that

Figurl I DUll unit hock diuJlwl1

have Infra Red OR) remote controls Although this approach negates the need to design a custom decoder again there was no facility for control overthe Internet and the PP400 I is expensive

By extend ing the elements discussed above it became possibJe to implement a system that is capable of co ntrolling both groups of appliances over the Internet thus providing a reliable and secure connection to all appliances within a wireless home network from almost anywhere in the world

HOME AUTOMATION NETWORK HARDWARE IMPLEMENTATION

The Home Automation Network is broken il1to 3 different sub-systems the control unit (Base Unit) the Group 1 receiver units (G Pl Units) and the Group 2 receiver units (GP2 Units)

Base Unit

As shown in Figure] the Base unit is the main control center forihe system it communicates with tIle host PC (home

n77 Multipl~xoa

ltll1 II ~~ hl l ~l HI(J ]( il (jlnhal ( t)pYlll1 ()I dlSlnlllJJlllg III prill t or ekCII()I1IC JorillS wi lhuul wn nt ll pcrlllis~I(J ll ur JGI Global 1- plOinhllld

- 2009

controls gates the Jder again oloverthe xpenslve discussed Hiplement ontrolling

over the liable and tppliances Nork from Id

etwork is )-systems the Group ) and the ~ Units)

ase unit is ~ system it PC (home

]

Global

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 43

PC) via a serial port connection The main computational element that conshytrols communications is a PIC 16F877 microcontroller which has a USART (Universal Synchronous Asynchronous Receiver Transmitter) built in This receives data from the PC and is also responsible for RTS (Request to Send) handshaking between the Base unit and the Pc This ensures that no data is lost during communications due to buffer over-runs All communications between the microcontroller and the PC use a MAX233 as an intermediate signal level converter

Once data has been received by the microcontroller it verifies that a full packet is present and the data is correct data and packet structure wi 11 be discussed further in section 4 Once deemed correct the microcontroller decides which group of appliances the data is intended for and processes it accordingly either passing it to the Group 1 encoders or sending it through the USARTto the Group 2 encoder and on to the transmitter

If the microcontroller decides that the data is intended for the Group 1 appliances it firstly selects the approshypriate input line of a digital multiplexer (Mux) this ensures that only data from the Group 1 encoders is sent to the transshymitter Then the data is output on ports A and C of the microcontroller which are connected to the Group 1 Manchester encoders (RF600E) These communishycate with 4 decoders (RF600D) one on each GP) unit Matching the encoders to the decoders ensures that no other

appliances outside ofthe system can be activated unintentionally and aids sysshytem security The new encoded data is then sent via the Mux to the RTFQ 1 (433 MHz FSK transmitter) [rfsolutionsJ this has an estimated radiated power of 5 dBm when using a )J4 antenna The companion receiver has a sensitivity of -103 dBm for 96 kbs operation This implies that a maximum path loss of ) 08 db may be tolerated

If the microcontroller decides that the data is intended for the Group 2 appliances then once again the correct input line to the Mux is chosen and the data is relayed via the USART to a seshyrial encoder (RF600T) This is a serial version of the previous encoder which also Llses Manchester encoding The Enshycoder encapsulates the data into its OVil1

transmission packet which consists ofa 76 bit preamble a 4-bit sync pattern 1 start bit 8 cOJ1U11and bits the data bits (size depends on the data sent from the microcontroller) and 8 checksum bits This ensures that all data is received cOlTectly by the decoder (RF600T) on the GP2 unit This new encoded data is then sent to the FSK transmitter

GP1 Units

The GP 1 unit block diagram is shown in Figure 2 Each ofthe units is responsible for receiving control infom1ation from the Base unit and controlling the Group 1 appliances connected to them Each Gr 1 unit can control I appliance

When data is received by the FSK receiver the RF600D decodes it if the

Copyrigh t laquo) 200lt) IGI Global COP)Hl or distributing 111 pi illl or electronic forms vilholli wrill en penn iSSIOIl of IG I l i lobfl i IS piohlbil ed -

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 5: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

- 2009

controls gates the Jder again oloverthe xpenslve discussed Hiplement ontrolling

over the liable and tppliances Nork from Id

etwork is )-systems the Group ) and the ~ Units)

ase unit is ~ system it PC (home

]

Global

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 43

PC) via a serial port connection The main computational element that conshytrols communications is a PIC 16F877 microcontroller which has a USART (Universal Synchronous Asynchronous Receiver Transmitter) built in This receives data from the PC and is also responsible for RTS (Request to Send) handshaking between the Base unit and the Pc This ensures that no data is lost during communications due to buffer over-runs All communications between the microcontroller and the PC use a MAX233 as an intermediate signal level converter

Once data has been received by the microcontroller it verifies that a full packet is present and the data is correct data and packet structure wi 11 be discussed further in section 4 Once deemed correct the microcontroller decides which group of appliances the data is intended for and processes it accordingly either passing it to the Group 1 encoders or sending it through the USARTto the Group 2 encoder and on to the transmitter

If the microcontroller decides that the data is intended for the Group 1 appliances it firstly selects the approshypriate input line of a digital multiplexer (Mux) this ensures that only data from the Group 1 encoders is sent to the transshymitter Then the data is output on ports A and C of the microcontroller which are connected to the Group 1 Manchester encoders (RF600E) These communishycate with 4 decoders (RF600D) one on each GP) unit Matching the encoders to the decoders ensures that no other

appliances outside ofthe system can be activated unintentionally and aids sysshytem security The new encoded data is then sent via the Mux to the RTFQ 1 (433 MHz FSK transmitter) [rfsolutionsJ this has an estimated radiated power of 5 dBm when using a )J4 antenna The companion receiver has a sensitivity of -103 dBm for 96 kbs operation This implies that a maximum path loss of ) 08 db may be tolerated

If the microcontroller decides that the data is intended for the Group 2 appliances then once again the correct input line to the Mux is chosen and the data is relayed via the USART to a seshyrial encoder (RF600T) This is a serial version of the previous encoder which also Llses Manchester encoding The Enshycoder encapsulates the data into its OVil1

transmission packet which consists ofa 76 bit preamble a 4-bit sync pattern 1 start bit 8 cOJ1U11and bits the data bits (size depends on the data sent from the microcontroller) and 8 checksum bits This ensures that all data is received cOlTectly by the decoder (RF600T) on the GP2 unit This new encoded data is then sent to the FSK transmitter

GP1 Units

The GP 1 unit block diagram is shown in Figure 2 Each ofthe units is responsible for receiving control infom1ation from the Base unit and controlling the Group 1 appliances connected to them Each Gr 1 unit can control I appliance

When data is received by the FSK receiver the RF600D decodes it if the

Copyrigh t laquo) 200lt) IGI Global COP)Hl or distributing 111 pi illl or electronic forms vilholli wrill en penn iSSIOIl of IG I l i lobfl i IS piohlbil ed -

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 6: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

44 Internationa l Jou rnal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

Figure l (P I IIl7il Mock diugrol71

claw is inknded 101 thaI Llilit then the decode aCliCltes or deactivates an iso lating relay_ which in turn co ntw ls the I-e levant A C ma ills-connected apshypi iance rhe decoder has two modes or opera ti on momentary and latched here the latter mode is used Each time data is recei ved and ve rifi ed fo r that specific decoder lhe output of the deshycoder is sw itched to the opposi te state_ ie ifit - as on - then it will be svitched to otT _ and vice-versa Thi s implies lhat the same data is transmitted for on and off This element is pan of the software design and A il l be di sc ussed in section 4

GP2 Units

f igure J shows a GP2 uniL responsibl e for recei ving control information fro m the Base and con tro ll ing the aPPlOpriate Gro up2 arpl iance rcmote contro l Eac h GP2 unit can control onc remote

When data is recc ived by the FSK rccei vcr the decoder (RF600T) ensures sleeri ng to that part i cul m uni t and on to

Figure 3 crJ IIni hiock diugrwlI

a p[e 16F877 microcontroller for furshyther veriflcation that it originated from the registered Basel fthis is so the Pl C out puts the data on ports Band D These are co nnected to 4 separate 4016 quad bi lateral switch banks These switches are in turn hardwired to a Philips RU252 Uni ve rsal Remote ControL which has the ab ility to control both televisions and VHSDVD playersrecorders from a wide number ofmanufacturers up to 16 buttons on the remote may becontrolled In the prototype 15 were used for proof ofconcept Al132 remote switches cou ld be controlled with a few changes to the software and the addition of another 4 4016 devices

HOME AUTOMATION NETWORK SOFTWARE IMPLEMENTATION

The software required to control the system was broken down into th ree difshyferent programs to enablecommunicashytions to the home server via a webs ite to con trol the microcontroll er on the Base

( lp~ nl middotmiddot i JY j 1( 1 (1111111 lt (llly lll (II dl lllhlll l middot l~ I II Prlill ti l tkUrD lll l [Olin Wi thout wrlllell pCrlIlIS~i()1l 0 1 lei l ( Inbll pl olInkd

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 7: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

2009

T for furshylted from ) the PIC D These 016 quad switches

JsRU252 vhich has levisions ersfroma upto 16 mtroIIed for proof hescould ges to the ~U1other 4

Introl the three dif-ImuDlcashyebsite to L the Base

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 45

unit and to control the microcontroller on the GP2 units

Website Software

The website used to access the system from a remote location is programmed in ASPNet which forms part of the Visual StudioNet package and the Net framework It allows the creation of Web applications and services that run under IIS (Internet Information services) IrS host Web applications on the Windows server which in this case was based on the home Pc It manages the application passes requests from clients to the application and returns the applications responses to the client ASP Net is one of the most complete platforms for developing Web applicashytions making creation debugging and deployment straightforward as noted in Webb J (2002)

Figure 4 System home page

Grlllljl J -lJlpli3IlCes j I 10 ) I

(I1111I1 StM I Nv StfltP J--~ D ipi UJl ICt 1 o App m I sectGsect1~ OApr ham f ~ O Arpclt~

QOQIo ApLu c 3 O Ap~LlJ 1 C 3

OAlplJm D ArFt~ ( c---l GJ~10 C Anmiddotallv Otqplbullbullnrt ~

DAppl~ 6 O AHmiddotLmltt 0GJ[D O A l-pllatue 7 O AppLwce7 ~l C I _ l t~Jrll- g OJmiddot I ~I (UI( e3

CO)))l lght ~( 2009 IGI Global Copying 01 dislllblilin g 111 print 01 electron ic forms Yltlloul wnllen penn lssloll or IGI Global is prohibit ed bull

When the user first accesses the website the Login screen is presented Here the user is required to enter a user name and password authorized user information is stored in a configuration file on the server If the user is verified he she is redirected to the home page shown in Figure 4 When the Home page is loaded it accesses a database on the server that contains the current state of the Group 1 appJ iances on the system and displays this information under the Cunent State check boxes If a check box is ticked then the appliance is on and vice-versa The user can then update the state of the appliances by making adjustments to the New State check boxes Once the user is satisfied with tbe changes the Update Appliances button is pressed this sends the New State check boxes information back to the server which then calculates two sets of data from tbis information

Grlllljl 2 Appliance I

obal

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 8: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

46 International Journal of Ambient Computing and Intelligence 1(3) 39-52 July-September 2009

Firstly the New Slilte information needs to he con verred into tvo nLlill bers each set rallgillg fOm () t() 16 ie a 4-hit nihhle This is carried out as follows aprliances I to 4 represent the first set of data where app liance 1 is the least significant hit and appliance 4 is the most significant bil [f an appliance is se t to on then the corresponding hit is set otherwise it is cltared The same procedLire is carried out far appliances 5 to 8 Once thi s set or data has heen genera ted it is the necessa ry to prod Lice another two nLimbers from the Current State check boxes The two sets of data are then XOR ed with one another and the result stored as FUllction bytes 0 and I This ensures that iran appliance changes state then tile corresponding bit fClI OLltpLit wi II he set a Ilowing the Base unit to drive the encoders correctly as discussed in sec tion 31

This data is then sent to the ser ial port where it is added to the transmi sshysion packet and transmitted to the base This packet is made lip of a startbyte = () address byk = 1 and th e two funcshytioll bytes as showil ill Table 1 The datahase is Llpddtcd with the New State checkbox information ~l1d display in the CUITellt StatLiS check boxes on the refnshcd page

fUhe fi-ul7JIi lsiul1 JUcket jim]

Sf ITer III hose 111 il

11 II ~ I

I0UImiddot 11 11

oo oe tbullbull JIll

The user also has the option of controlling a Group 2 appliance via the onscreen remote control by firstly selecting the area where the remote control is located from a dropdown li st hox The address ofthe remote is defined by adding two to the index of the area selected in the list and is sto red When the Llser presses a button the address is sent to the serial port and forms part of the transmission packet Each button has its own function defined for conshytrolling the remote control and the two function bytes are exclusively defined within these functions The Function 0 byte controls the first 8 switches and the Function I byte controls the next 8 switches The screen is then refreshed The transmission packet is simi lar to the transmission packet for the Group one appliances Table 2 shows an example of tile sitting-room remote control beshying accessed with the number 1 button pressed Figure 5 shows the two function bytes and the corresponding switches that each bit controls

If the Program button is pressed then buttons 1 and 3 are simultaneshyollsly accessed on the remote control this allows the remote to enter program mode where a new device number may

Tuhf 2 TfO1sl71issol1 pockefor CP2 Un iI

0000 0000

00000010

FUflClioll Byt t 0 00010000

OOOO L 00

lt-- 1 ) I ~11 d l1 ~I ljll ) Hd (dllhd l IIP l ilt- III lt11 111 b l II lilt I II plllll IH e leCII()llic [()lJIl Ililolit wril(cil pellllissiOll or IGI G lobal 1- Pldlllhltld

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 9: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

2009

)ption of lance via by firstly e remote down list isdefined fthe area ed When Iddress is ns part of h button I for conshyld the two y defined unction 0 tches and the next 8 ~efreshed

1ilarto the rroup one 1 example ~ntrol beshyr I button o function switches

s pressed imultaneshye controL r program mbermay

lor GP2

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 47

Fjgure 5 Function bytes and their corresponding srvifches

be added and hence allow the remote to control a new appliance On compleshytion Log off permits a return to the Login screen

Base Unit Microcontroller Firmware

When the microcontroller is started it clears the Request to Send (RTS) line leaving it ready for reception and waits until a byte has been received The RTS line is then set stopping all transmission from the Pc If this byte is OxOO then it stores it as the Start byte clears the RTS line and walts for the next byte otherwise the byte is ignored the RTS line cleared and the next byte checked for OxOO The process continues with the next three bytes stored as Address Function byte 0 and Function byte 1 respectively When the complete transmission packet has been recei ved the program then checks which group of hardware has been addressed by subtracting 1 from the Address byte If the result is 0 then Group 1 has been addressed otherwise the system is adshydressing a Group 2 appliance

If Group 1 has been addressed then Function byte 0 is passed to PortA which controls the first encoder and the Mux line is cleared A short delay of 05 sis called to allow the transmission of the

signal after which the port is cleared Function byte 1 is then output on Port C and another delay of 05 s is called before the port is cleared

If Group 2 has been addressed then the Mux line is set the Start byte Adshydress byte System ldentification Numshyber(SID)and the two function bytes are transmitted via the onboard USART to the serial encoder chip and then onto the RF transmitter The SJD number is preshyprogrammed into the microcontroller and consists of 4 bytes that provides up to 2 ] different combinations It is used as a unique system identifier for all the Group two remote controls This ensures that only GP2 units registered with the same SlD number as the base unit can be controlled by that base unit thus preventing another system fro m accessing the GP2 units

GP2 Unit Microcontroller Firmware

The stmi of the GP] microcontroller program is similar to that in the Base unit but with 4 extra bytes ofdata to be received before a complete transmission packet is collected these are stored as SID 0 to 3 When the full packet has been received the microcontroller verifies that it has been addressed by subtractshying the pre-programmed address from

Copyfl ghl ~ I 2 ()09 IG I Global COPYIllg or distributing in print or electl Ollie form s Wlihulit Wrlttell pell lllSsi ol1 0[ IGI Glob1Jlohol is proh ibited bull

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 10: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

48 In lernationa l Journa l of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009

the address rece ived If the result is 0 its carries on othervvise the packet is ignored and the microplocessor resets read y for another tlansmission

fhe next step is 10 verify that the SID number received matches the preshyprogrammed SI D in memory if so it continues otherwise it again resets ready for another transmission Once it has verified that the data is intended for 1he GP2 unit it checks if the program buLlon was pressed on the website This is done by subtracting the function 0 byte from Ox50 The result of pressing the program button is that Function byte 0 = Ox50 If the result is 0 then it enters the Program routine Here Funcshytion byte 0 is passed lo Port 8 and a delay 013 s is called befo re clearing the port This acti81es buttons 1 and 3 on the remote contlO I and makes it enter programming mode Jrlhe resu lt is not () then --FlI1clion 0 byte is passed to Port B for 05 s and the port cleared ThiS is followed vith Function byte 1 bei ng passed to pOrl 0 for 05 s before the port is cleared Ports Band D are connecled to qlIad bi lateral switches that are Iwrdvired to the remole conlrol In towl 253 Gf)2 units can be addressed by the Base unit

SYSTEM TESTING

Hardware 1ests were eJrried out using a program written in V86 that allowed the StartAddress and Function bytes to be explicitly entered as numbers before accessing the serial port Transmi ss ion

range in a hostile radio envonment was eval uated and software tests were carshyried out on the website

Transmission Characteristics Test

Transmission range was tested by locating the transmitter and recei ver units along different paths with a varishyety of obstacles giving a significantly more radio-hostile environment than that found in a typical household and measuring the Received Signal Strength (RSS) in each case Figure 6 shows the location ofthe transmitter and receivers along with the relevant obstacles in the path The walls and columns are made ofreinforced concrete with metal platshyting The floor and ceilings are made of concrete the overhang ceiling is made of mineral fiber tiles the stud wall is made of a wooden frame covered in gypsum plaster board and the elevator shaft wall is a red-brick construction

As noted in Table 3 tbe fecei ved input level never fell below -94 2 dBm giving an 88 dB margin above the man u facturer s q 1I0ted sensi ti vity of -1 03 dBm for a transfer rate of 96 kbps The fading margin in anormal doshymesti c si tuati on (wi th thinner concrete absorbers) is expected to be significantly greater

Hardware Test amp Software Tests

To test the hard ware a prototype system was constructed Three GP 1 units were implemented using two encoders the

C(p~ I I1 1I I ]( lIl l) ( II (dohar (tlP~ l ll ~ 0[ dl-IIIIllllll~ III plllil OJ dCtl l OlllL [(lrtlI S withnul w rilltll P1111isSltlll 01 K i l (jlohal I pn ~lI hlltd

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 11: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

er 2009

mmentwas ts were carshy

eristics

j tested by nd receiver with a varishyignificantly Inment than Isehold and nal Strength 6 shows the

nd receivers tacles in the ms are made h metal platshyj are made of ngismadeof wall is made d in gypsum tor shaft wall l

the received )elow -942 largin above d sensitivity ~r rate of 96 anormal doshy

mer concrete significantly

ware Tests

otype system PJ units were ~ncoders the

International Journal of Ambient Computing and Intelligence 1 (3) 39-52 July-September 2009 4 9

Figure 6 Transmitter and receiver locations (or RSS evaluations

bull Rx8 Shaft

bull Rx9 - 11 I Siud VIall

r-----------------Mr---------------~--~-nD~x3o----r-shybull F 4

bull Ta ns n llttel ____bull_RJltG _ _________ _ 2nd Floor OVerhang

oo Column

bull Rlt7

Nol es F(3 and R4 aie lo ealed rn Ihe 2nd Floor VIall Glass

Fx9 RxW and R11 were localed inside an elevatol with the doors closed and located at level1 and 2 Iloors down with respe ct 10 the T)~

Table 3 Received signal strength measurements

R x No

RSS (d8 m )

Propagati on Path D irect Length

Path

-57 52 Around Square Coluilln (x 01 ) 9111

2 -527 T hrough G lass Panel (direct Line of Sigh t) 10 III

3 -533 2 Through Overhang Ceil ing 3m

4 -8809 Overhang Ceiling and 2 Walls 17m

-6 1 Through Wall 115 III

6 -7289 Through 2 Walls 19 111

7 -8575 Through 2 Wall s 23 III

8 -6680 Through 2 Stud Walls 10111

9 -9330 Elevator Shaft 135111

10 -933 8 Elevator Shafl- I Floor DOWJl 142 01

II -94 20 Elevator Shan - 2 Floor Down 16 2 III

first encoder addressed 2 units and the second addressed one unit The intention was to prove that more than 1 decoder could be addressed by the same encoder and operated independently and that the signal from the two encoders were separate ie if the first appliance was

operated by the first encoder then the first appliance on the second encoder should not be operated at the same time as the signals should be different The GPI units were operated individually and then simultaneously by sending

IGI Global CopY rl g ht ~) 2009 IGI Glob(ll CopY ing or dl SlriUli tingjn prillt or elcclro1l1c orms withotll writt en pennissi() ll of IGI Gl ob)1 s prohi bited

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 12: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

50 Internationa l Journal of Ambient Computing and Inte lligence 1 (3) 39-52 July-September 2009

the appropriate co mmand s fro m the tes t progra m

During testing the only problem that occurred was that if tvo sets of puckets were sent Olle immediately aft er the othel one of the two encodshyels wou ld lock up this resulted in the base Ull i t Il eed i ng to be reset to correct th e problem However this will not l-cplestnt a plOblcm vhen the system is CO lltn) ll eu through the website as it provides adeq uate time between packet transmissions due to page loading and reft-e shing

The PlOtolype also included a single (J P2 unit Correc t operation was conshyhnned usinga test program and the unit was a lso tested to verify that it wou ld not respond to an address that was difshyferent to that stored in memory and that it ou ld not respond to a packet with rhe incorrec t Sf D number Thi s last test ias ac hi eved by rep lac ing the microshycontlo ll er in the base unit with another one with a di tfe rent SID number

The web-based appl ication program as fl Is t tested ill a stand-alone mode for access sec urity LInd forcolTect updating of the dCltabase with the New States when the update button was pressed on the application then the prototype was full y connected to the host-PC and fu ll control was achieved fOm the web-se lmiddotve r

CONCLUSION

The system cle e lo[ed is a ve l) powshyerfu l home aut Olll3t ion network that

can be accessed fro m remote locations through the World Wid e Web and opershyates in a wireless environment within tlle home It consists ofa website which is located on a home server and associshyated hardware also connected to the server The hardware is comprised of a Base unit that receives signals from the website and relays them on to the receiver units which are connected to the appl iances At present the system can control 8 appliances that can be turned 011 and off (GP J) and 253 appliances thGlt are accessed via a remote control (GPn Only ll1inor software changes are needed to permit significant expansion The system can operate in radio-hostile en vironments whi Ie maintaining a data rate of 96 kbps

Although the system as described is not a full y-definitive home automation solution it does serve as useful protoshytype There are mallYimprovements that could be made eg the implementation ofduplex communications between the Base and rece iver units The rece ivshyers could then inform the Base and ultimately the use r via th e Web that commands have been received and executed This negates the need for the database as the receiver uni ts could relay their status when the website is accessed A related improvemen t is to grant llserS loca l control of the Group I appliances with duplex links updatshying their Current State res ulting from local switch changes within the home The ebsite program might al so be enhanced to i ncl L1d e a planlayo ut ofthe home where each controlled app li ance

01 11 11 ( Olll I( il I(lhal Cop IIh~ 0 1 di-lll htllHl ~ til print iJ r elCCltlIliC (onll ~ w ilhout written p~nni s5 j o ll or IGI Cj lobal - plIIIIII I1 -d L shy

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 13: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

2009

bulllocations and opershynt within site which nd associshyted to the 1prised of nals from on to the

mected to ystemcan beturned

lppliances te control hangesare xpanSlOn lio-hostile ling a data

~scribed is ltomation ful protoshymentsthat mentation ~tween the le recelVshy3ase and Web that ived and need for

nits could vebsite is ment is to he Group lks updatshyting from the home J also be loutofthe appliance

ltl obal

International Journa l of Amb ient Computing and Intelligence 1(3) 39-52 July-September 2009 51

is shown in its properphysicallocation~ this decreases search time on user acshycess by eliminating the need to search through check boxes and dropdown lists Finally the system developed can save time help improve home security and in general bring a better way oflife to the end user

REFERENCES

AI-Ali AR amp AI-Rousan M (2004) Java-Based Home Automation System IEEE Transact ions on ConsulI1er Electronshyics 50(2) 498-504

Bigioi P Cucos A Corcoran P Chah i I eamp Lusted K (1999A ugust) Transparshyent Dynamically Configurable RF Network Suitable For Home Automation Applicashytions IEEE Transactions on Consumer Electronics 45(3) 474 - 480

European Radio COJ11missions Committee (2005) Frequencies and Standards (onshyline) http wwwerodk doc98official

pdf REP083PDF433050000 Accessed 5th Jul y 2005

Guan R Pruehsner WR amp EllderlelD (2000 Apri I) The Comp uterized Environshymental Remote Control Proceedings ofthe IEEE 26th Annual Northeast Bioengineershying Conference (pp 147-148)

RFSolution s (2006) RTFQl Data Sheet (on-I ine) httpwwwrfso I u tion s col k acatalogDS069-7pdf

Sriskanthan N amp Tan K (2002) Blueshytooth Based Home Automation Systems Journal ojMicroprocessors andlvIicrosvsshytems 26 281-289

Stallings W (2002) Wireless Communicashytions and Networking New Jersey USA Prentice-Hall

Thomas R (2000 September) Remote Con trol IR Decoder Everydov Practical Electronics 29(9)698-701

Webb J (2002) Developing Web Applicashytions With Microsoft Visual Basic Ne and MicrosoftVisuaICNet Washington USA Microsoft Press

Copyright (j 2009 IGI Glollal Copyi1lg 01 dr striblilill in prlill Of electronic (onn s wirhout vdi ll en pellnlsslOll of IGI Glohal IS prohibited bull

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d

Page 14: Online Remote Control of a Wireless Home Automation Networkuir.ulster.ac.uk/...Control_of_a_Wireless_Home_Automation_Network... · Online Remote Control of a Wireless Home Automation

52 Inlernational Journal of Amblenl Computing and Intelligence 1 (3) 39-52 July-September 2009

11111 J 1 el g(leIILled iiOIl7 Ihl Ioil) Wesl Imlitule oj FlliIel lnd Higher Educatiun

1 JIIFH EJ in ()()I Iilh ( Cree HID in Ileclricul und electr()nic engineerillg fiVadl is Ih e

holdel oj uhI cl1II IWl7uII deglcc ill electronic Clnd compuling Iilh Jlj)lol71C1 il1 imillstriul

Slifeill I D IS) llhic he (lhlwnecl frOJ7 Ihe Uni1lrlill 0 Uisia in JOO-l In l005 he obloined an

IIl in (()1II1J( ling (7(1 inlelligenl II llemsI um Ihe Universit) IlUlstet Wade is currenl ] Zlnshy

dergoin ( IJhD in inleligenl ITslems (II Ihe Universil ] oIUlsler ~ Intelligenl Slstel7ls Research

(lnlle (ISR( J ll herc he isi(JcIIsillg un de l eluping (J b iulugicalll insp ired training algorilhmi)r

slliking Jleulul II I ori1 - leI 111 neural nelworks IFade~ 7uin areas olinterest are wireless

clllllll7lfniculi()m ((nd i l lelligenl ITSleIJIS

lose - SUlIill ohluined his eeclmnic engincering degreeio1 the Unil ers idad Simon Bulivar

ill (UI(lC(I I cncllelu in I ltJltJ) his fJhD in electmllic enKinlcrinSji()177 Ihe Universil] ulUlslel

tV(Jhell7 Inclullci Uf il7 ] ())] und ( PgC11 in hiKher Idllclion te(lching jiul7I the Universi

oj Uisier ill 1))3 f-e is ( I lcillll il7 Ihe Schuul ulClIl77puring oml Il7telligent S)SlemS al Ihe

11ltlgee (U IIIlIII oj Ihe UniFrsin or (lisler since lOO He is also ( 1711177her oj fhe Ambienl

IlIlelligenct Reseurch Umup 11hicll il I)Url ojthe Intelligenl Slslems Resealch Clnlre (lSRC) al

Ih c Ullicl1 0 (Jslel f-is 1Lleurch il1llt(Its liln il1 Ihe (reu uumbienl intelligence RF and

I) irclels SISlellll ensol I1CiWlIlkl hi(lteellr lind b iomedical ysleI77S

Noel E [ 11Ins lecLi1cd Ihe IJSc deglee 117 1973 ol1d Ihe MSc dlgrel il7 1974 Fom Ihe Queen~middot

Unil ltIili 1IlJdfirll lortliltl11 II(u1( U K HI obluined ( PhD degreeji-()17I Queen~ in 1977

Iii Iulk IIIl j7mgllll77ll1uhie Ilul7IIerlulilt lrs buill using il1lracell chwge-cuupled devices Folshy

1()IilllIillli11 (I(urch iI7l IlIlUl()II-gOll C( Ds al Queen s he toughl unologlle ellclronics ond

((J llIlI7l1l1inllio1l ul lite U1IlISII1 o(Ulsl erfrom J980-20()6 Here he also deve loped resealch

jllugl ul77l7les illl(l hi(ll77lltiiclll il1slrll l7lll1lulilll7 hlll77al1 ol7d ani17101 p7lsiol()gical sigl1a acquisishy

liltJlI IllIIg ulLliu jiecllel7C Inhl1icuel ulld eieclwl77ogl1efic 11 ( e 1)()pugClliul7 01 jieqllencies

nNI1c1illg ucms1 Ihe H F- (H f-- huntil He I1UW Horkl as on il1Ciltpel7cien cUl1sullon il1 comm1lshy

ni (l l i(II11 lt1)(1 Icel(rl

lt l I Il 111 11 I IIIIIJ It I (10 (111 lt middot I P~ III ) II I h ll htl ll ll f l pI lilt I I (middotI~C II O IlI C tltlrln s Wlli o tll n llt 1l pl n l) l ~~ i () 1l or IG I Globa l I p f IlI Il I II H d