TELKOM
NIKA
, Vol.13, No
.2, June 20
15
, pp. 678 ~ 6
8
5
ISSN: 1693-6
930,
accredited
A
by DIKTI, De
cree No: 58/DIK
T
I/Kep/2013
DOI
:
10.12928/TELKOMNIKA.v13i2.1309
678
Re
cei
v
ed
De
cem
ber 1
0
, 2014; Re
vi
sed
April 9, 2015;
Accept
ed Ap
ril 22, 2015
Home Appliance Control with Publish Subscribe in
Social Media
Sabrians
y
a
h Rizqika
Akb
a
r*
1
, Eko Setia
w
an
2
, Ach
m
ad Basu
ki
3
Univers
i
t
y
Of Bra
w
ij
a
y
a
Jl. Veteran Mal
ang, East Java
, Phone:
+
62 0
341 5
5
1
611/ F
a
x:+
6
2 034
1 5
654
20
*Corres
p
o
ndi
n
g
author, e-ma
i
l
: sabria
n@u
b
.ac.id
3
, ekosetia
w
a
n@
ub.ac.i
d
2
, abazh@
ub.ac
.id
3
A
b
st
r
a
ct
Now
adays, Int
e
rnet soc
i
al
me
dia h
a
s e
n
rich
e
d
t
he w
a
y pe
o
p
le to co
mmun
i
cate an
d interr
act each
other. Will it be
possib
l
e for p
eop
le to inter
a
ct w
i
th
their home a
p
p
lia
nces
aroun
d? This
pap
er pro
pose
s
a
new approach in s
m
art hom
e system
that made
possible for
people to remotely
interact with their
appliances
using s
o
cial
m
e
dia networks. In this
paper, we pr
esent
a s
m
art
home pr
ototype system
that
lever
ages T
w
itter
’
s A
ppl
icati
o
n Progr
am Int
e
rface (
API) to re
mottely co
ntrol h
o
me a
p
p
lia
nces
over
the
Internet. Experim
ent results s
h
owed t
hat the
system
imm
ediately res
ponds
to remo
te comm
ands s
ent ov
er
a soc
i
al
m
e
dia account to contro
l
hom
e
appliances. T
he
system resp
onds the command
in 3672.96
m
s
.
Publ
ish-su
bscri
be metho
d
w
o
rk better in mas
s
anno
unc
eme
n
t commu
n
ic
ati
on system. Ho
me syste
m
cou
l
d
notice all
hous
eholders in les
s
t
han
6 s independenly from
num
b
er of householder. Our
proposed
m
e
thod
gives a
l
ternativ
e soluti
on to bu
ild rel
i
a
b
le, fast and si
mp
le co
ntrol metho
d
.
Ke
y
w
ords
: Pu
blish S
ubscri
b
e
,
Smart Ho
me,
Socia
l
Medi
a
1. Introduc
tion
Smart hom
e
have several importa
nt uti
litites
and
se
rvices
pa
rame
ter to be
con
s
ide
r
ed
su
ch a
s
auto
m
ation hom
e
applian
c
e
s
control a
nd
re
mote acce
ss
[1]. Rece
nt developme
n
ts
in
home a
u
tom
a
tion have
si
gnifica
ntly improved living
of the hou
se
holde
rs to e
a
s
ily intera
ct with
their home
applianc
es
to
adjus
t temperature,
lighting and other
devic
es
[2],[3]. The interaction
with the h
o
m
e
applia
nces can
even b
e
perfo
rme
d
remotely ove
r
the Internet
or some
G
S
M
netwo
rks. Th
e previous ap
proa
ch
es i
n
h
o
me a
u
to
mati
on for
co
ntroll
ing ap
plian
c
e
s
u
s
ually u
s
e
a
client-se
r
ver
system; wh
ere a client sen
d
s a
messa
g
e
and the se
rver do action
upon re
ceivi
ng
the messag
e
.
The serve
r
must be al
ways o
n
to resp
on
se to the messa
ge.
Short Message
Service
(SM
S
) gate
w
ay a
nd Hyp
e
rtext
Tran
sfe
r
Prot
ocol
(HTTP)
are the
two
common
way
s
in
sen
d
ing
messag
e of
client
-se
r
ver sy
ste
m
[2]. Even thoug
h SMS
provide
s
a si
mple
solution
of
comm
uni
cati
on ways
with
out the Intern
et con
n
e
c
tion
, its message type is limited to text only (no
picture/video
). While the HTTP offers th
e
multimedia
message d
e
livery service
,
it depends
o
n
an al
way
s
-o
n
We
b
se
rver
with a
sta
b
le
Internet
con
n
e
ctivity. More
over, HTTP t
hat u
s
ed
TP
C/IP
netwo
rk
pro
v
ides mo
nito
ring a
nd co
ntrolling fun
c
tion ea
sily
and wo
rld
w
ide a
c
ce
ss [4].
Availability, secu
rity, and
co
sts a
r
e
so
me of is
sue
s
in their de
pl
oyments b
e
cause we
sh
o
u
ld
provide a
nd
maintain the i
n
frast
r
u
c
ture
by ourself.
No
wad
a
ys, S
m
artph
one
s
and Inte
rnet
so
cial m
edia
have ea
se
d
and e
n
ri
ch
ed
the way
peopl
e com
m
unicate [5]. Social net
work are po
pular tool u
s
ed to co
nn
ect with frie
nds,
colle
ague
s a
nd/or family. Internet soci
a
l
media en
ab
les pe
ople to
easily excha
nge multime
d
i
a
data [6]. Ba
sed
on th
at
fact, we
pro
pose a
r
chit
e
c
ture
of inte
ractive h
o
me
automatio
n
tha
t
leverag
e
s Internet
social
media
platform, su
ch
a
s
Twitter. In this
recent
time, Twitter are
not only
use
d
as a co
mmuni
cation
media bet
we
en huma
n
to human, but also h
u
man t
o
machi
ne a
nd
machi
ne
to
machi
ne.
Mi
croblo
ggin
g
to
ols su
ch Twit
ter
a
r
e now able
to use as an
inte
ra
ction
media
betwe
en hu
man
an
d ro
bots [7] a
nd ho
use h
o
l
d
heatin
g
system [8]
.
Twit
t
e
r so
cial
m
e
d
i
a
netwo
rk i
s
a
publi
s
h-su
b
s
cribe
syste
m
that
offers better
way
of comm
uni
cation th
an t
he
traditional
cli
ent-serve
r sy
stem. Our p
a
per ma
de
sm
art home
system to act as publisher
wh
ile
the hou
seh
o
l
der is
su
bscri
ber with th
e Twitter comm
unication me
cha
n
ism. Bot
h
of the publi
s
he
r
and sub
s
crib
er are havin
g Twitter a
c
counts a
nd “f
ollow” ea
ch
other. To ma
ke the publi
s
her
(sm
a
rt ho
me
system
) a
c
co
unt se
cu
re, we create a
n
a
c
count
with cl
ose
d
f
eatures and if we
wa
nt
to control the
sma
r
t home
system
we
sho
u
ld
follo
w the publi
s
he
r acco
unt an
d the pu
blish
e
r
sho
u
ld
acce
p
t
it. Afterward
s
, the
publi
s
h
e
r
will i
n
form
their follo
we
rs if h
a
ve
an i
n
formatio
n a
b
out
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Hom
e
Applia
nce
Control with Publish Su
bscrib
e in So
cial Medi
a (S
abria
nsya
h Ri
zqi
k
a A.)
679
the ho
me
co
n
d
ition, an
d th
e sub
s
crib
er
can
s
end
a
h
o
me
applia
nce control m
e
ssag
e via
Twit
ter
Dire
ct m
e
ssage
s a
pplica
t
ions. Sin
c
e
the
sub
s
cr
i
ber
ca
n h
a
ve informatio
n sent fro
m
the
publi
s
he
r wit
hout req
u
e
s
t to it, the subscrib
er do
es
n’t have to wait
for notificatio
ns [9]. With our
sma
r
t home
comm
uni
cati
on infra
s
tru
c
t
u
re, we a
r
e n
o
t need an al
ways-on
We
b serve
r
an
d the
comm
uni
cati
on infra
s
tru
c
t
u
re a
r
e provided by
third p
a
rty so
cial ne
twork service
s
.
Twitter, a so
cial media plat
form, provide
s
A
pplication Program Interface (API) th
at gives
privilege
to
acce
ss u
s
er
data via
HT
TP form
at.
We
use two
kin
d
of
account in
ou
r
home
automation
p
r
ototype: a
h
ousehol
der a
c
count a
nd
a
home
sy
ste
m
acco
unt. T
he ho
me
syste
m
accou
n
t is
co
nne
cted to a
home
autom
ation p
r
otot
ype
,
ma
in
ly a
mic
r
oc
omp
u
t
er
w
i
th
low
-
po
we
r
pro
c
e
s
sor,
Rasb
erry-Pi. We p
r
op
ose
to us
e mi
crocomp
u
ter t
hat com
b
ine
s
compute
r
and
microcontroll
er functio
n
to communi
cat
e
over
TCP/IP network [4]. The prototype is equip
p
e
d
with
a
Passi
v
e
Infrared (PIR) sen
s
o
r
as a
mo
tio
n
detecto
r
a
n
d
a High Defi
nition
(HD) USB
came
ra to ca
pture the ho
me environ
m
ent. An elec
trical load i
s
also co
nne
cted
to the prototype
to emulate the control syst
em of home a
u
tomation.
Overall, ou
r home automati
on is able to
receive contro
l message fro
m
househol
d
e
r and
forward the
response to
the
control devices. Our
home au
tom
a
tion prototype will
send a
notification to
the house
h
o
lder a
c
coun
t if some
mo
tions we
re d
e
tected by PIR sen
s
o
r
. The
hou
seh
o
lde
r
is al
so abl
e
to control th
eir ho
me ap
plian
c
e
s
by sen
d
ing
cont
rol me
ssag
e and
respon
ded
by the ele
c
trical
load. Recent
home
co
n
d
ition
could be monitored
by sen
d
ing req
u
e
st
captu
r
ed
-ima
ge to
sy
stem
acco
unt. Fin
a
lly ou
r
rese
arch
com
p
a
r
ed the
compl
e
xity of pa
cket
transmissio
n
and th
e feat
ure
of ou
r
smart h
o
me
communi
catio
n
me
cha
n
ism with
the
client-
s
e
r
v
er
mo
de
ls
.
2. Rese
arch
Metho
d
We de
sig
ned
smart ho
me
system prototy
pe to implement Twitt
e
r publi
s
h/
su
bscrib
e
intera
ction
s
. The prototyp
e
con
s
ist of microcom
put
er
Ra
spb
e
rry pi [10]
eq
uip
ped
with
sev
e
ral
input output
device a
nd the co
mput
e
r
netwo
rk inte
rface. Th
e in
put
output d
e
vice sele
ction is
based on th
e
sma
r
t home
monitorin
g
d
e
vice cat
ego
rized a
s
sen
s
or, physi
ologi
cal devi
c
e, a
nd
multimedia d
e
vice
[1].
Err
o
r!
Referen
c
e sour
ce n
o
t found.
de
scribed
ou
r in
p
u
t output d
e
vice
categ
o
ri
zed
a
s
sen
s
o
r
and
multimedia
d
e
vice.
We
put
Passive Infra
r
ed
Sen
s
or (PIR) a
nd
ena
ble
Gene
ric Purp
ose In
put O
u
tput (GPIO
)
a
s
a
digital
sw
i
t
ch an
d el
ectric loa
d
d
r
iver
swit
ch [11]. O
u
r
prototype is
also e
quipp
e
d
with HD
ca
mera
for h
o
m
e monitor
and captures an image e
v
ent.
GPIO is
used
for
simulatio
n
pu
rpo
s
e.
L
a
ter o
n
we
p
u
t an
appli
c
at
ion an
d T
w
itter A
c
count in
side
the prototype
to make ho
use
hold
e
r ab
le to re
mote the sma
r
t home system
s
via Twitter. PIR
s
e
ns
or s
i
mulate if there is
intruder.
In Applicatio
n
desig
n, a progra
m
co
de
must be
p
r
efi
x
ed with initi
a
lizatio
n of the Twitter
API using user toke
n and
secret code
. Comm
uni
cation betwee
n
the autom
ation system
is
desi
gne
d by usin
g so
cial
media data
stream
s t
hat alway
s
listen
to messa
ge
s se
nt on so
cial
media. If there is me
ssag
e
sent via dire
ct mess
a
ge t
o
the hou
se
h
o
lder
acco
unt
, the system
will
respon
d with
the spe
c
ified
comm
and. Th
e flow di
ag
ra
m for the software is sho
w
n in Figure 2.
Figure 1. Smart Hom
e
Pro
t
otype
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 2, June 20
15 : 678 – 68
5
680
St
a
r
t
Us
er
To
k
e
n
an
d
Se
c
r
e
t
Cod
e
I
n
i
t
ia
li
z
a
t
i
o
n
AP
I
T
w
i
tte
r
Us
e
r
St
r
e
a
m
Me
ss
a
g
e
Re
c
e
i
v
e
d
?
Ru
n
Co
n
t
r
o
l
Co
m
m
a
n
d
Tr
u
e
Fa
l
s
e
Mo
t
i
o
n
De
t
e
ct
i
o
n
C
a
pt
ur
e
&
Tw
e
e
t
Tr
u
e
Fa
l
s
e
Figure 2. Smart Hom
e
System Twitter API
To ena
ble T
w
itter pu
blish
and
sub
s
cri
be sy
stem,
we
cre
a
te pu
blish
e
r a
nd
subscri
b
e
r
Twitter
acco
u
n
t insi
de
the
system
environment.
Subs
cr
ib
er
is th
e h
o
u
s
e
h
o
l
de
r T
w
itte
r acc
o
u
n
t
and pu
blisher is sma
r
t hom
e system
s a
c
cou
n
t. As
sho
w
n in Figu
re
3, we nam
ed
@smah
o
m3
as
our
sma
r
t ho
me syste
m
s
Twitter a
c
cou
n
t. For the h
ousehol
der
we give @hah
an @ekost
wn as
their acco
unt
. Publisher
will inform all sub
s
crib
ers wethe
r
there
is conditio
n
cha
nge in smart
home
syste
m
. We
simul
a
ted the
condit
i
on
cha
nge i
n
sm
art
hom
e sy
stem
s in
GPIO, if there i
s
trigge
r from
swit
ch o
r
pa
ssive inf
r
are
d
sen
s
o
r
, the sma
r
t ho
me system
s will publi
s
h
the
informatio
n to the
sub
s
cri
bers. The
su
bscrib
ers
will
also
abl
e to
cha
nge
the
con
d
ition
s
G
P
IO
swit
ch
and
a
n
ele
c
tri
c
lo
a
d
by
sendi
ng
dire
ct m
e
ssage to
the
smart h
o
me
systems. F
o
rmat
messag
e is shown in Tabl
e 1.
Table 1. Publi
s
he
r Me
ssag
e Form
at
Input
Event
#home kamera o
n
Capture
an imag
e from attached
camera and pu
blish the picture to
all used
#home kontak1 o
n
#home kontak1 o
ff
#home kontak2 o
n
#home kontak2 o
ff
Remotel
y
chang
ed status in
electronic load driver sw
itch GPI
O
#home info
Ask the sy
stem a
bout recognized
message format
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Hom
e
Applia
nce
Control with Publish Su
bscrib
e in So
cial Medi
a (S
abria
nsya
h Ri
zqi
k
a A.)
681
Su
b
s
c
r
i
b
e
r
1
(Ho
u
s
e
h
o
l
d
e
r
)
@h
a
h
a
n
Su
b
s
c
r
i
b
e
r
2
(Ho
u
s
e
h
o
l
d
er
)
@e
k
o
s
t
w
n
Pu
bl
i
s
he
r
(Sm
a
r
t
Ho
m
e
Sy
s
t
e
m
s)
@s
m
a
h
o
m3
Tw
i
t
te
r
Net
w
o
r
k
s
Ho
m
e
Co
n
d
it
io
n
In
f
o
r
m
a
t
i
o
n
Ho
m
e
C
o
n
d
it
io
n
In
fo
r
m
a
t
i
o
n
Su
bsc
r
i
b
e
r
1
(Ho
u
s
e
h
o
l
d
er
)
@
h
ah
an
Su
bsc
r
i
b
e
r
2
(Ho
u
s
e
h
o
l
d
er)
@e
k
o
s
t
w
n
P
u
bl
i
s
he
r
(S
m
a
r
t
Ho
m
e
Sy
st
e
m
s
)
@s
m
a
h
o
m3
Tw
i
t
te
r
Ne
t
w
o
r
k
s
Re
c
e
i
v
e
Ho
m
e
Ap
p
l
i
a
n
c
e
Co
n
t
r
o
l
Me
s
s
a
g
e
Co
n
t
r
o
l
Ho
m
e
App
l
i
a
n
c
e
Vi
a
Tw
i
t
t
e
r
Di
r
e
c
t
Me
s
s
ag
e
Figure 3. Smart Hom
e
systems Publi
s
h
and Sub
s
crib
e Scena
rio
3. Result a
n
d Analy
s
is
To validate
our
system,
we buil
d
a p
r
ototype in o
u
r lab
o
rato
ry
as sho
w
n i
n
Error!
Referen
ce s
ource n
o
t fo
und.
. The sy
stem con
s
ist
of Ra
spb
e
rry-Pi as mi
cro
c
ompute
r
, GPIO
interface
circuit, home
ap
plian
c
e,
USB we
bcam,
PIR
s
e
ns
or
and
p
u
s
h
-
b
u
tton
s
a
s
in
pu
t. G
P
IO
interface ci
rcuit relay the low voltage of
micro
c
o
m
put
er logi
c to hig
h
voltage of h
o
me ap
plian
c
e.
Usi
ng the interface circuit
,
micro
c
omp
u
ter ca
n con
t
rol home ap
plian
c
e in different voltag
e.
Microcomput
er wa
s
conn
e
c
ted to the in
ternet net
wo
rk via Ethernet cabl
e.
Figure 4. Smart Hom
e
systems prototype
The h
o
me
sy
stem
worke
d
on Li
nux op
erating
sy
ste
m
enviro
n
tm
ent. Flow
dia
g
ram
of
system
wa
s i
m
pleme
n
ted i
n
Python lan
guag
e whi
c
h
prog
ram
ed o
n
Ra
sp
berry Pi. Python library
gene
rate HT
TP messag
e
format whi
c
h acco
rding
to Twitter API. Webcam
was h
andl
e
d
by
ffmpeg appli
c
ation. Overall
prog
ram i
s
l
i
nke
d
ea
ch o
t
her by ba
sh
comm
and.
Bash
comm
a
nd
execute
auto
m
atically
wh
en the
sy
ste
m
bootin
g-up
. Hen
c
e,
by
turning
on
th
e ha
rd
wa
re,
all
program
will run automati
c
ally.
3.1. Executio
n
Time
To get the i
n
formatio
n ho
w fast the sy
stem
wo
rks,
we co
ndu
ct a
home
remote
cont
rol
scena
rio an
d
measu
r
e ex
ecutio
n time. In the scen
a
r
io, hou
seh
o
l
der send a
n
intructio
n
to the
system
via Di
rect
Message
of Twitter. Home
system
will respon
d
by stream
data to the T
w
it
ter.
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 2, June 20
15 : 678 – 68
5
682
Twitter a
s
a “bro
ke
r”, will send a notifica
t
ion to
the home system. A
t
t
he next step, home sy
stem
will p
a
rse th
e
me
ssa
ge, d
e
c
ap
sul
a
tion
a
nd exe
c
ute
b
a
se
d
o
n
com
m
and. Hom
e
system
publi
s
h
an notificatio
n via Twitter and all
su
b
c
rib
e
rs, wh
o
are
all hou
seh
o
lde
r
s,
wi
ll receive recent
informatio
n a
bout hou
se
condition
witho
u
t reque
st in into system.
We exa
m
ine
d
execution t
i
me by cond
ucting
10 tri
a
ls. Each cont
rol p
r
o
s
e
s
co
nsi
s
t of
three
main
seque
nces. Home system
che
c
k
th
e
ne
w m
e
ssag
e,
execute
me
ssag
e a
nd
pu
blish
the rep
o
rt to
all su
bscri
bers. The h
o
me
syst
em o
n
ly need ave
r
a
g
e
time 367
2.96 ms to
re
a
d
,
execute an
d repo
rt to all
hou
seh
o
lde
r
. The
experi
m
ent sho
w
that the publi
s
h and
sub
s
crib
e
mech
ani
sm
o
n
ly nee
d 1
4
3
4
.33 m
s
average time
fo
r get
ne
w data as sh
own
in
Table
2.
Ta
bl
e
2
sho
w
s the d
e
tail of execution ti
me pe
r process. T
he exe
c
utio
n
t
i
me f
o
r ch
e
ck
ne
w me
ss
age
gaine
d from code sho
w
n in
Figure
5
. We measu
r
e the
time betwee
n
the messag
e come to ou
r system, pa
rsing the
string a
s
vari
able
s
and turn on ACT led
as an indi
cat
o
r wh
ethe
r a messag
e sta
r
ted with ‘#ho
me
”
format had a
r
rived.
Figure 5. Execution Tim
e
Cod
e
for Ch
e
ck
Ne
w Message
We al
so me
asu
r
e the av
erag
e time n
eede
d to execute a
relay
switch. The
execute
comm
and ex
ecutio
n time cod
e
sh
own in
Figure
6
. For example, u
s
er
sen
d
a m
e
ssag
e with format “#
hom
e konta
k
1 o
n
”
then an
ACT led
will
be a
c
tivated
and the
n
rela
y will on.
We
con
n
e
c
t the relay with a
n
eon b
u
lb to
check
the relay
stat
us. We me
asure th
e proce
ss
after
the
messag
e format are
pa
rsed until
we g
e
t the
‘on’ s
t
ring and ac
tivate the relay.
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Hom
e
Applia
nce
Control with Publish Su
bscrib
e in So
cial Medi
a (S
abria
nsya
h Ri
zqi
k
a A.)
683
Figure 6. Execution Tim
e
Cod
e
for Execute Comma
nd
Table 2. Execution time per process
No. Of
trial
Process exe
cuti
on ti
me
(ms
)
Total
executi
on
time (ms
)
Check ne
w
message
Execute the
command
Publish the
status
1 1471.80
1180.68
1067.10
3719.58
2 1419.97
1187.61
988.59
3596.17
3 1430.10
1176.12
1022.29
3628.51
4 1404.67
1188.89
1041.04
3634.60
5 1449.48
1284.12
1007.52
3741.12
6 1399.18
1190.31
1046.64
3636.13
7 1471.45
1185.02
992.96
3649.43
8 1400.98
1292.42
1041.04
3734.44
9 1444.71
1194.59
1089.35
3728.65
10 1450.97
1156.49
1053.50
3660.96
A
v
e
r
age
1434.33
1203.63
1035.00
3672.96
Figure 7. Use
r
interfa
c
e in IOS and Android
We al
so ex
amine the p
ublish and
subscri
be respond time i
n
multiple u
s
er. Th
e
experim
ent hold in several
smartp
hone
s. One user
will sen
d
a comman
d
to the home sy
stem
accou
n
t via d
e
fault Twitter
appli
c
ation
o
n
sm
artph
o
n
e
. Hom
e
sy
st
em will
execu
t
e the comma
nd
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No. 2, June 20
15 : 678 – 68
5
684
and pu
blish
the repo
rt
by mentione
d all user
.
Some notification will re
ceived o
n
u
s
er
sma
r
tpho
ne. We test on IO
S and Androi
d operating system sma
r
tp
hone, sho
w
n
in
Figure 7. Ti
m
e
r
start to
be
cou
n
ted
wh
e
n
first user
se
nd comm
and.
Timer
sto
p
when all
use
r
alre
ady received the notification.
Error! Re
fer
e
nce sou
r
ce
not found.
s
h
ow
c
o
r
r
e
l
a
t
ion
betwe
en exe
c
ution time o
n
use
r
-sid
e a
nd numb
e
r of
user.
Figure 8. Time respon
se in
multiple sub
s
crib
er
Table 3. Clie
nt-se
r
ver a
n
d
publish-sub
s
crib
e co
mpa
r
i
s
on
No
Feat
ure
Client
-ser
v
e
r
Publish
-
su
bscri
b
e
1 Alw
a
y
s
-on
host
Required. Al
w
a
ys-on host must e
x
ist
as server. When
client send request,
ser
v
er
must be on or
it
w
ill lost the
infor
m
ation
Not compulsor
y
.
Ow
ne
r can sent
command even h
o
me s
y
stem is off. The
command
w
ill be stored in broker
and it
w
ill automatically
do
w
n
loaded
wh
en home
sy
stem is on.
2 IP
public
Required. Se
rver
or home s
y
stem
must have unique IP public to be
able receive requ
est
Not requir
ed. IP
address can be changed
d
y
namicall
y
. Hou
s
eholder can send
command even t
he IP address is changed
3
Net
w
ork
maintenance
Require pe
riodic maintenance.
Alread
y
ha
ndled
b
y
third p
a
rt
y bro
k
er.
4
Time of transfe
r
Depend on
numb
e
r of client. Man
y
householders
w
ill require much ti
me
to transfer
Short and n
o
t de
pend on househ
older.
S
y
stem can send
to householder
at the
same time
5 Securit
y
S
y
stem design can determime th
e
level of its se
cur
i
ty
Net
w
ork securit
y
depent on b
r
oker
management
Ba
s
e
d on
Err
o
r!
Re
fer
e
nc
e sou
r
ce
no
t fou
nd.
, it sho
w
tha
t
th
e nu
mb
er
o
f
su
bs
cr
ib
er
did not take e
ffect on execution time. Publish su
bscri
be syste
m
de
liver t
he sh
ort
execution ti
me
for multiple u
s
er. In
creme
n
tal of execut
ion time
wa
s
not slightly di
fferent betwe
en ea
ch n
u
m
ber
of user. T
h
is
happ
en d
ue t
o
pa
rallel
pro
c
e
s
s at e
a
ch
use
r
. On
e u
s
er in
pu
blish
sub
s
crib
e
system
cre
a
ted
con
n
e
ction to the
“broker” se
paratelly
. Every process
wa
s han
dle
by Twitter a
s
a
“broker”. Ho
me system al
so create its
own
con
n
e
c
tion to Twitter.
When
some
update o
c
cu
red
by home syst
em, every user wa
s notif
ie
d the cha
nge
by Twitter pa
rallely.
Finally
,
Ou
r
r
e
se
ar
ch
c
o
m
pare
client
-
s
e
r
v
e
r
sy
st
e
m
t
o
pu
blis
h-
sub
s
c
r
ibe
sy
st
e
m
.
E
a
ch
point of view
is de
scrib
ed
on Tabl
e 3.
Based
on
Ta
ble 3, the pu
blish
-
sub
c
rib
e
mechani
sm
give
more advant
age
s
than cli
ent-serve
r.
Publish-
sub
c
ribe provide a
better
com
m
unication
way.
Publish
-
sub
s
crib
e ha
s hi
g
h
-de
pen
dentl
y
to the “b
ro
ker” system. Selection of
better
an
d
st
able
“broker” will
ensure
lifetime sy
stem lo
n
gger.
C
lie
nt-server sy
stem
is m
o
re
ind
e
pend
ent sy
st
em
than publi
s
h
-
sub
c
ri
be. Ou
r pro
p
o
s
ed
method
sho
w
the better system in
handli
ng ma
ss
comm
uni
cati
on.
4. Conclusio
n
In this pape
r,
a con
c
ept of
publish-sub
s
crib
e me
cha
n
i
sm in sm
art
home inte
ra
ction wa
s
pre
s
ente
d
. It wa
s shown
that publish
-
su
bcrib
e
ha
s re
al-time
resp
on
se. Th
e system
co
uld
respon
d user in 3.7 s average
d.
The p
ublish-sub
c
ribe system
show the be
st
way in hand
ling
mass d
a
ta
communi
catio
n
. The
data
coul
d be
di
stributed
spre
a
d
ly in a
sh
ort time. From
the
comp
ari
s
o
n
to client-server, pu
bli
s
h-su
bcri
b
e
propo
se l
a
ck of maintenan
ce, simple
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
Hom
e
Applia
nce
Control with Publish Su
bscrib
e in So
cial Medi
a (S
abria
nsya
h Ri
zqi
k
a A.)
685
infrast
r
u
c
ture
with high ca
pability in handling ma
ss comm
uni
cati
on. Selection
of good bro
k
e
r
servi
c
e is ve
ry important in
publish-sub
s
crib
e lifetime.
As p
a
rt of
fu
ture
re
sea
r
ch
, data e
n
cryp
tion in
publi
s
h-sub
c
ri
be
should
be
con
ducte
d.
Building en
cription sy
ste
m
will keep
secret data
flowing in publi
c
syste
m
. Learnin
g
the
behavio
ral
of hou
seh
o
lde
r
via its p
ubli
s
h
will p
r
ovid
e a
sma
r
t sy
stem. Th
e h
o
me
system
will
unde
rsta
nd d
e
sire witho
u
t saying a
n
ything.
Referen
ces
[1]
MR Alam, MBI Reaz, MAM
Ali. A Review
of Smart Ho
mes—Past, Present,
and Future.
IEEE
T
r
ansactio
n
s On Systems, Ma
n, and Cyb
e
rn
etics.
2012; 4
2
(
6): 1190-
12
03
.
[2]
V Ahmed, S
L
adh
ake.
No
ve
l L
o
w
C
o
st Rem
o
te Mo
ni
to
ri
ng
System
fo
r
H
o
m
e
Au
tom
a
ti
o
n
u
s
i
n
g
Ce
ll
Phon
e
. Intern
a
t
iona
l C
onfer
e
n
ce
on
Comp
uting
Intell
ig
en
ce a
nd
Comm
unic
a
tion
S
y
stem, G
w
a
l
i
o
r.
201
1.
[3]
M Cha
n
, D E
s
tève, C Escri
ba, E C
a
mpo.
A revie
w
of
smart homes
—Present stat
e an
d futur
e
chall
e
n
ges.
Co
mp
uter Metho
d
s
and Progr
a
m
s in Bio
m
e
d
ici
n
e.
2008;
91(1): 55-81.
[4]
Ashari. D
i
strib
u
ted Mo
nitor
i
n
g
an
d C
ontrol
l
i
ng
Us
in
g Micr
ocontro
ller
an
d Virtua
l Inter
net Protoc
ol.
T
E
LKOMNIKA T
e
leco
mmunic
a
tion C
o
mput
i
n
g Electron
ics a
nd Co
ntrol.
20
10; 8(2): 28
5-2
92.
[5]
Ross EO, M Sisic, J Arsenea
ult, M Simmering, R
Orr. Persona
lit
y
and m
o
tivatio
n
s asso
ciated
w
i
t
h
F
a
cebo
ok use.
Computers i
n
Hu
ma
n Beh
a
vi
or.
2009; 25: 5
78-5
86.
[6]
K Curra
n, S
Morisson, S
McCaul
e
y
. Go
ogl
e+
vs F
a
cebo
ok: T
he Comparis
on.
TE
L
K
O
M
N
I
K
A
T
e
leco
mmunic
a
tion C
o
mputi
n
g Electron
ics a
nd Co
ntrol.
20
12, 10(2): 3
79-
388.
[7]
Bell T
K
, S Lauria, R Macred
ie,
J Sutton. Microbl
ogg
in
g as a
mechan
ism fo
r human
–ro
bot
interactio
n.
Know
led
ge-B
a
sed Syste
m
s.
201
4; 69: 64-7
7
.
[8]
NA Gamag
e
d
a
ra A, L Sta
n
isla
o, S Lov
e. T
w
itter C
o
ntrols the
Ho
useh
old
He
ati
ng S
y
stem.
Internatio
na
l Journ
a
l of Susta
i
na
ble En
ergy
Devel
o
p
m
ent (IJSED).
2013; 2
(
3/4): 101-1
04.
[9] A
Virgil
lito.
Pub
lish/Su
bscrib
e
Co
mmun
icati
o
n S
ystems: fro
m
Mo
dels to A
pplic
atio
ns
. Uni
v
ersit'
a deg
li
Studi di R
o
ma
"La Sa
pie
n
za"
Dipartim
ento d
i
Informatica e Sistem
istica, Roma. 2003.
[10]
Rasp
err
y
P
i
F
oun
dati
on.
Ra
spberry pi.
[Online]. Available: http://
w
w
w
.
r
a
spberr
y
p
i.or
g/. [Acesso em
12 Dec
e
mber
201
4].
[11] T
e
x
a
s
Instruments.
MOC302
0 THRU MOC3
023 Optoc
oup
l
e
rs/Optoisol
ato
r
s.
Dallas, T
e
xas. 1998.
Evaluation Warning : The document was created with Spire.PDF for Python.