SMS Based Device Control: Sagar Mundada

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

DEEPAK GUPTA

D
E
T
E
S
M
T
E
Sagar Mundada
Tbo sborl mossoqo syslom [SMS} o o slonooro
mooilo bono con oo osoo or romolo silo
monilorinq ono conlrollinq vorioos ogoimonls.
Tbo SMS sorvico roviooo oy lbo sorvico rovioors is
comorolivoly vory low cosl. Tbo Sborl Mossoqo
Sorvico ollows loxl mossoqos lo oo sonl ono rocoivoo
lo ono rom mooilo lolobonos. Tbis ooloro o o
slonooro mooilo bono con oo imlomonloo or o
vorioly o inooslriol olicolions. Tbo moin
ollroclivo ooloro o lbis syslom is lbol lbo osor con
monilor ono conlrol bis oosiroo ogoimonls rom
ony orl o lbo worlo. /lionco conlrol onoolos lbo
osor lo conlrol bomo olioncos romololy wboroos
lbo socorily olorl syslomrovioos lbo romolo socorily
monilorinq. ll wor|s on lbo oosis o Cloool Syslom
or Mooilo Commonicolion CSM. Tbo osor moy qol
lbo slolos o o romolo oovico li|o rossoro,
lomoroloro, volloqo, corronl, Cn/C conoilion,
woiqbl olc oy sonoinq rosoclivo SMS lo lbo romolo
oovico. Tbo romolo oovico olso oolomolicolly sonos
o SMS lo lbo osor i ony orror/olorm occors oorinq
ils oorolion, wbicb is rovioosly ooinoo oy lbo osor.
Tbo osor lbon moy lo|o lbo nocossory oclion
ooonoinq on lbo lyo o olorm lbrooqb rosoclivo
8M8 asod
ov|co 6ootro|
CON8Ik0CI|ON
GSM Modem
MAX 232
Micro-
controller
(89s51)
1
2
3
4
5
6
7
8
19
18
9
29
30
31
39
38
37
36
35
34
33
32
21
22
23
24
25
26
27
28
10
11
12
13
14
15
16
17
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
150
U2
LED-BARGRAPH-RED
RXD
TXD
RTS
CTS
150
150
150
150
150
150
150
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
150
150
AT89C51
i/p1
i/p2
i/p3
i/p4
i/p5
i/p6
i/p7
i/p8
i/p1
i/p2
i/p3
i/p4
i/p5
i/p6
i/p7
i/p8
XTAL1
XTAL2
RST
PSEN
ALE
EA
P1.0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
P0.0/ADO
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
P3.0/RXD
P3.1/TXD
P3.2/NT0
P3.3/NT1
P3.4/T0
P3.5/T1
P3.6/WR
P3.7/RD
SMS or oy ony olbor woy.
Somo o lbo olicolions o lbo SMS oosoo conlrol
oro.
CPS ono SMS oosoo lroc|inq syslom
SMS oosoo Molor monilorinq ono conlrol
syslom[Sooo os woll os Cn/C}
SMS oosoo /ir conoilionor monilorinq ono
conlrol syslom
SMS oosoo \olvo monilorinq ono conlrol syslom
SMS oosoo Tomoroloro monilorinq ono
conlrol syslom
SMS oosoo Ligoio lovol monilorinq ono conlrol
syslom
SMS oosoo Corronl/\olloqo monilorinq ono
conlrol sysloms
CSM mooilo bono [SMS} oosoo oolomooilo
socorily syslom
Wbon wo wonl lo conlrol ony bomo olioncos
romoolsioo, wo sono lbo SMS ono swilcb on or o
lbo oovico. CSM mooom rocoivos lbo inormolion
siqnol, wilb lbo bol o /T commono lbo SMS is
rooo oy l bo mi croconl rol l or. Tbon l bo
microconlrollor rocoqnizos lbo oolo ono rovioos
ororiolo oclion lo lbo roloys lo conlrol lbo
sociioo oovicos.
Tbo sonoinq SMS lbrooqb CSM mooom wbon
inlorocoo wilb microconlrollor or PC is mocb
simlor os comoroo wilb sonoinq SMS lbrooqb
Mooom in PD Mooo.Toxl mossoqo moy oo sonl
lbrooqb lbo mooom oy inlorocinq only lbroo
siqnols o lbo soriol inloroco o mooom wilb
microconlrollor i.o.,TxD,RxD ono CND.ln lbis
scbomo RTS ono CTS siqnols o soriol orl inloroco
o CSM Mooomoro connocloo wilb oocb olbor.Tbo
lronsmil siqnol o soriol orl o microconlrollor is
connocloo wilb lronsmil siqnol [TxD} o lbo soriol
inloroco o CSM Mooom wbilo rocoivo siqnol o
microconlrollor soriol .Mooom.
Tbo CSM mooolo bos o RS232 inloroco. Tbo
rocoivo [Rx} ono lronsmil [Tx} in o lbo CSM
mooolos RS232 orl
oro connocloo lo lbo
l ronsmi l [ Tx} ono
rocoivo [Rx} in o
/T8C51s soriol orl,
r os ocl i v ol y. Tbo
mi cr oconl r ol l or i s
inlorocoo wilb CSM
Mooom in mooilo
bono vio M//232
lovol convorlor.
Working
Component Used
Firsl, lbo microconlrollor bos lo sono /T". /
rosonso CK sboolo oo rolornoo rom lbo mooilo
bono or CSM mooom. Roooinq o mossoqo rom
lbo SlM coro insorloo inlo lbo mooom is oono oy
sonoinq lbo ororiolo /T commono lo lbo
mooom.

AT89C51
/T8C51 is on 8-oil microconlrollor ono oolonqs
lo /lmols 8C51 omily. /TMEL 8C51 bos 4K8 o
Flosb roqrommoolo ono orosoolo rooo only
momory [PERCM} ono 128 oylos o R/M. ll con oo
orosoo ono roqromlo o moximomo 1CCC limos.
ln 4C in /T8C51, lboro oro oor orls oosiqnoloo
os P1, P2, P3 ono PC. /ll lboso orls oro 8-oil oi-
oiroclionol orls, i.o., lboy con oo osoo os oolb
inol ono oolol orls. Excol PC wbicb nooos
oxlornol oll-os, rosl o lbo orls bovo inlornol
oll-os. Wbon 1s oro wrillon lo lboso orl ins,
lboy oro olloo biqb oy lbo inlornol oll-os ono
con oo osoo os inols. Tboso orls oro olso oil
ooorossoolo ono so lboir oils con olso oo occossoo
inoiviooolly.Porl PC ono P2 oro olso osoo lo rovioo
low oylo ono biqb oylo ooorossos, rosoclivoly,
wbon connocloo lo on oxlornol momory. Porl 3 bos
molliloxoo ins or sociol onclions li|o soriol
commonicolion, boroworo inlorrols, limor inols
ono rooo/wrilo oorolion rom oxlornol momory.
/T8C51 bos on inooill /RT or soriol
commonicolion. ll con oo roqrommoo lo oorolo
ol oioronl oooo rolos. lnclooinq lwo limors &
CON8Ik0CI|ON
inclooool8x51.b> // inclooo ol8x51 . b
inclooosloio.b> // inclooo sloio . b
incloooslolio.b> // inclooo slolio . b
voio inil_mooom[},
voio inil_soriol[},
onsiqnoo inl coonl ~ C,
o n s i q n o o c b o r
Commono_CMCF||~/TCMCF~1r, //or
soloclinq Toxl Mooo
onsiqnoo cbor ClrlZ~Cx1/,//sonoinq SMS olor
lbo mossoqo bos ooon onloroo
onsiqnoo cbor Commono_CMCS||~/TCMCS
~12345xxxxxxr, // rocoionl mooilo nomoor
onsiqnoo cbor Commono_/T||~/Tr,
onsiqnoo cbor msqC2||~Hollo',
// i ony o lbo osb oollon is rossoo loqic zoro will
oo oolocloo oy microconlrollor on rosoclivo inol
in
soil i_ooor1 ~ P1C,
soil i_ooor2 ~ P11,
soil i_ooor3 ~ P12,
soil i_ooor4 ~ P13,
soil i_ooor5 ~ P14,
soil i_ooor ~ P15,
soil i_ooor7 ~ P1,
soil i_ooor8 ~ P17,
// corosonoinq oolol will oo qonoroloo oy
olyinq loqic ono on rosoclivo oolol in
soil o_ooor1 ~ P2C,
soil o_ooor2 ~ P21,
soil o_ooor3 ~ P22,
soil o_ooor4 ~ P23,
soil o_ooor5 ~ P24,
soil o_ooor ~ P25,
soil o_ooor7 ~ P2,
soil o_ooor8 ~ P27,
soil losbinq ~ P3,
soil olorm ~ P37,
voio ooloy[}

onsiqnoo inl i,
or[i~C,i25CCC,i}, }
voio moin[}

P1 ~Cx, P2 ~ C,
olorm~ C,
losbinq ~ C,
inil_mooom[},
inil_soriol[}, wbilo [1} losbinq ~
losbinq,
ooloy[}, i[i_ooor8 ~~ C}
o_ooor8~C,
boroworo inlorrols, il bos o lolol o six inlorrols.

MAX232
Tbo M//232 lC is osoo lo convorl lbo TTL/CMCS
loqic lovols lo RS232 loqic lovols oorinq soriol
commonicolion o microconlrollors wilb PC. Tbo
conlrollor oorolos ol TTL loqic lovol [C-5\}
wboroos lbo soriol commonicolion in PC wor|s on
RS232 slonooros [-25 \ lo 25\}. Tbis mo|os il
oiicoll lo osloolisb o oirocl lin| oolwoon lbom lo
commonicolo wilb oocb olbor.Tbo inlormooiolo lin|
is roviooo lbrooqb M//232. ll is o oool
orivor/rocoivor lbol inclooos o coocilivo volloqo
qonorolor lo soly RS232 volloqo lovols rom o
sinqlo 5\ soly. Eocb rocoivor convorls RS232
inols lo 5\ TTL/CMCS lovols. Tboso rocoivors con
occol 3C\ inols. Tbo orivors convorl lbo
TTL/CMCS inol lovol inlo RS232 lovol.
Tbo lronsmillors lo|o inol rom conlrollors soriol
lronsmission in ono sono lbo oolol lo RS232s
rocoivor. Tbo rocoivors, on lbo olbor bono, lo|o
inol rom lronsmission in o RS232 soriol orl
ono qivo soriol oolol lo microconlrollors rocoivor
in. M//232 nooos oor oxlornol coocilors wboso
voloo ronqos rom10F lo 220F.
PlN 1 lo oro Coocilor connoclions ins.
PlN 7 & 14 oolols lbo soriolly lronsmilloo oolo ol
RS232 loqic lovol, connocloo lo rocoivor in o PC
soriol orl
PlN 8 & 13 rocoivos soriolly lronsmilloo oolo ol RS
232 loqic lovol, connocloo lo lronsmillor in o PC
soriol orl
PlN & 12 oolols lbo soriolly lronsmilloo oolo ol
TTL loqic lovol, connocloo lo rocoivor in o
conlrollor
PlN 1C & 11 rocoivo lbo soriol oolo ol TTL loqic
lovol, connocloo lo soriol lronsmillor in o
conlrollor.
G5MMODULE
/ CSM mooomis o wiroloss mooomlbol wor|s wilb
o CSM wiroloss nolwor|. / wiroloss mooom
oobovos li|o o oiol-o mooom. Tbo moin oioronco
oolwoon lbom is lbol o oiol-o mooom sonos ono
rocoivos oolo lbrooqb o ixoo lolobono lino wbilo o
wiroloss mooom sonos ono rocoivos oolo lbrooqb
rooio wovos. Li|o o CSM mooilo bono, o CSM
mooom rogoiros o SlM coro rom o wiroloss corrior
in oroor lo oorolo.conlrollinq mocbinos osinq qsm
mooilo sms sorvicos
Frogrom
CON8Ik0CI|ON
olorm~ 1,
ols[ooor 7 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor1 ~~ C}
o_ooor1~C,
olorm~ 1,
ols[ooor 8 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[olorm~~ 1} coonl,
i[coonl>~1C}

coonl ~ C,
olorm~ C,
P2~C,
}
} }//wbilo closoo
} voio inil_mooom[}

ooloy[},
ols[Commono_/T},
ooloy[},
ols[Commono_CMCF},
ooloy[},
ols[Commono_CMCS},
ooloy[},
ols[msqC2},
[},
wbilo['Tl}, Tl ~ C,
S8F ~ Cx1/,
}
voio inil_soriol[}

TMCD~ Cx2C,
SCCN ~ Cx5C, TH1 ~ CxFD, TL1 ~
CxFD, TR1 ~ 1, Tl ~ 1,
}
/D\/NT/CE.
Tbo syslom is wiroloss lborooro moro oooloolo
ono cosl ooclivo.
DlS/D\/NT/CE.
Tbo syslom onclionolily is oosoo on CSM
locbnoloqy so lbo locbnoloqicol conslroinls mosl
oo |ol in mino. Tbo syslom is volnoroolo lo owor
oiloro.
olorm~ 1,
ols[ooor 1 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor7 ~~ C}
o_ooor7~C, olorm~ 1,
ols[ooor 2 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor ~~ C}
o_ooor~C,
olorm~ 1,
ols[ooor 3 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor5 ~~ C}
o_ooor5~C,
olorm~ 1,
ols[ooor 4 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor4 ~~ C}
o_ooor4~C,
olorm~ 1,
ols[ooor 5 is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
}
i[i_ooor3 ~~ C}
o_ooor3~C,
olorm~ 1,
ols[ooor is oonoo},
ooloy[},
wbilo['Tl},
Tl ~ C,
S8F ~ Cx1/,
} i[i_ooor2 ~~ C}
o_ooor2~C,
CON8Ik0CI|ON

You might also like