TELKOM
NIKA
, Vol. 13, No. 4, Dece
mb
er 201
5, pp. 1437
~1
445
ISSN: 1693-6
930,
accredited
A
by DIKTI, De
cree No: 58/DIK
T
I/Kep/2013
DOI
:
10.12928/TELKOMNIKA.v13i4.1357
1437
Re
cei
v
ed
De
cem
ber 1
7
, 2014; Re
vi
sed
August
29, 2
015; Accepte
d
Septem
ber 14, 2015
Design and Implementation of A Monitoring System for
Geological Archives
Sun Min
Publ
ic Securit
y
T
e
chnol
og
y D
epartme
n
t, Hai
nan Voc
a
tio
nal
Colle
ge of Po
li
tical Scie
nce a
nd La
w
,
H
a
iko
u
,
Hain
an, 5
701
2
5
, Chin
a
email: 3
051
66
07@
qq.com
A
b
st
r
a
ct
A mon
i
torin
g
s
ystem for
g
eol
ogic
a
l
archiv
es
w
i
th T
C
P/IP n
e
tw
ork commu
nicati
on
is d
e
si
gne
d i
n
this research
to address w
i
de distrib
u
ti
on ran
ge,
l
o
n
g
d
i
stanc
e, sl
ow
data
u
p
d
a
ting,
an
d
dif
f
icult
ma
inte
nanc
e
of city an
d c
ounty g
e
o
l
og
i
c
al arc
h
iv
es.
The des
ig
ned
system
uses
the sin
g
l
e
c
h
ip
ST
C11F
32XE
and th
e Eth
e
r
net contr
o
l ch
i
p
RT
L8
01
9A
S
as a
hardw
ar
e pl
atform. T
h
e har
dw
are d
e
sign
sche
m
e, softw
are d
e
sig
n
method, a
nd th
e mai
n
pr
o
g
r
a
mming
flow
chart of the
g
eol
ogic
a
l
archi
v
e
mo
nitori
ng
unit
w
e
re presente
d
, and a s
pecif
ic data test
w
a
s carried
out. This monitor
i
n
g
system
not o
n
l
y
mo
nitors a
nd
controls te
mpe
r
ature, hu
midit
y
, pond
i
ng, p
o
w
er supply, a
nd oth
e
r env
ir
on
me
ntal d
a
ta
in
geo
log
i
cal
archives, but als
o
reali
z
e
s
g
e
o
l
o
g
ical
data tran
smiss
i
on b
e
tw
een city (cou
nty) and prov
inci
a
l
geological arc
h
ives. In addition, this
system
is
designed with a GSM
warnin
g m
e
chanis
m
,
whic
h coul
d
accelerate the quick r
e
spon
se mechanis
m
of the system
. The
entir
e m
o
nitor
i
ng sy
stem
is
acces
s
ed
throug
h the pr
ovinci
al e
n
vir
o
nmenta
l
reso
ur
ces w
ebsit
e w
i
th a fixed IP ad
dress. T
o
ensu
r
e stand
ardi
z
a
t
i
o
n
of the mon
i
tori
ng system, th
e data
trans
mi
ssion stan
dard
of the applica
t
ion lay
e
r use
d
the associ
ate
d
standar
ds of
th
e
Min
i
stry
of N
a
tion
al La
nd a
nd Reso
ur
ces.
The e
n
tire syst
em d
e
sig
n
i
m
p
r
oves th
e stor
a
ge
envir
on
me
nt of
the
ge
ol
ogic
a
l
data
e
ffectiv
el
y. It provi
des
i
m
p
o
rtant
dat
a
supp
ort to s
o
lv
e i
n
cons
istenc
i
e
s
betw
een pr
ovi
n
cial
and city
(county) geo
l
ogic
a
l dat
a,
as w
e
ll as ens
ures scie
n
tific
man
a
g
e
m
e
n
t of
geo
log
i
cal iss
u
es.
Ke
y
w
ords
: Geolo
g
ica
l
data,
Safety mo
nitori
ng, Ethern
e
t
Copy
right
©
2015 Un
ive
r
sita
s Ah
mad
Dah
l
an
. All rig
h
t
s r
ese
rved
.
1. Introduc
tion
The p
r
om
otio
n of digital
m
anag
ement
h
a
s im
prove
d
the efficien
cy
of the ma
na
gement
of paper d
o
cuments
signifi
cantly
in re
ce
nt years. Pap
e
r do
cume
nts that are almost one hu
nd
red
years ol
d are rare a
n
d
valuable. High temp
er
ature, high
humidity, drastic
chan
ge
s in
temperature
and hu
midity, powe
r
failu
re, and
po
ndi
ng dam
age t
hese pap
er d
o
cum
ents;
su
ch
damag
e p
r
e
s
ents
certai
n
threats to th
e storage
of digital do
cu
ments [1]. T
he de
sig
n
a
nd
impleme
n
tation of
a mo
ni
toring
syste
m
for
geolo
g
ical
archive
s
h
a
ve
a sig
n
ificant appli
c
ati
on
value.
Traditio
nally, spe
c
ial
pe
rsonnel
are
hired fo
r enviro
n
mental su
p
e
rvisio
n
of
g
eologi
ca
l
archives. Su
ch a task i
s
la
bor
con
s
u
m
in
g, and
di
scovering
hidd
en
dang
ers in a t
i
mely manne
r is
difficult. Secu
rity mana
gem
ent mainly fo
cu
se
s o
n
software
(e.g., ne
twork fa
ult an
d data
ba
cku
p
),
and negl
ect
s
managem
en
t of temperature, humidit
y
,
and pondin
g
, thereby re
sulting in ma
jor
eco
nomi
c
lo
sse
s
[2]. More
over, data
up
dating i
s
slow, which may easily
c
a
use
in
co
ns
is
tenc
ies
betwe
en pro
v
incial an
d city (c
o
unty) geologi
cal
data [3]. Existing research on monito
ring
system
s m
a
i
n
ly con
c
e
n
tra
t
es o
n
inte
rn
al environm
e
n
tal protectio
n
, su
ch
as the in
stallatio
n
of
dehumi
d
ifiers. Although de
humidifie
rs d
e
crea
se inte
rnal humidity, they la
ck
dat
a statistics a
nd
early
warning
mechani
sm
s [4]. Geologi
cal m
ana
ge
ment la
cks
u
n
iformity and
com
p
a
r
abilit
y of
geolo
g
ical m
anag
ement a
ppro
a
che
s
a
m
ong differe
nt
region
s, thereby havin
g
a negative effect
on working
e
n
thusi
a
sm. T
herefo
r
e, a
monitori
ng
system for
geol
ogical archiv
es
wa
s de
sig
ned
for re
al-time
monitori
ng a
nd man
age
m
ent of envir
o
n
mental d
a
ta
, as well a
s
for receiving
and
sen
d
ing relat
ed co
mman
d
s
. The test run of the
system obtained
positive
re
s
u
lt
s;
t
he sy
st
em
improve
d
the 24 h duty mode and p
r
ov
ided timely
warnin
gs, thu
s
redu
cing ri
sks a
nd avoidi
ng
losses.
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No
. 4, Decem
b
e
r
2015 : 143
7 – 1445
1438
2. Descrip
tio
n
of Geologi
cal Archiv
e
Monitoring S
y
stem
A geologi
cal
archive safety monitoring
system
i
s
a d
i
stribute
d
me
asu
r
em
ent a
nd contro
l
system th
at covers an
entire pr
ovince. Such
a
system
is
com
p
o
s
ed
of a
city (cou
nty) geol
ogi
cal
archive safety monitorin
g
system, a
provincial
geol
ogical re
so
urce
s web
s
ite, and a
provin
cia
l
monitori
ng
center ho
st. It involves
co
nce
n
trat
ed
monitori
ng of
geol
ogi
cal archives
thro
ugh
comp
uter te
chn
o
logy, sensor te
chn
o
logy
, elect
r
oni
c techni
que, and
comm
uni
cati
on
techn
o
logie
s
,
all of which monitor a
nd
control the o
p
e
r
ation
safety of the co
n
d
itions of g
eolog
ical
archives.
The
syste
m
al
so
monitors
ope
ration
pa
ram
e
ters
of equi
pment and
re
cord data, co
pe
s
with failu
re
s,
and
en
sures
that ea
rly wa
rning
an
d
ala
r
ms corre
s
po
nd to
ce
rtain
re
quirement
s.
The
m
onito
ri
ng cente
r
ho
st
of provin
ci
al
ge
ologi
cal
archives
coul
d a
s
sess the
operation
s
of
the
city (co
unty) geolo
g
ical a
r
chive
s
.
The city (co
u
n
ty) geologi
cal archive monitori
n
g
syst
em con
s
i
s
ts
of an enviro
n
mental
detecto
r, a m
onitor, and
a
monitorin
g
center
h
o
st. T
he dete
c
tor a
c
qui
sition mo
dulu
s
tran
sfe
r
s
colle
cted d
a
ta to the monitor throu
gh 4
85 bu
s
[5], and PCF8
563
is used a
s
the system
clo
ck.
The m
onito
r acce
sse
s
t
he p
r
ovin
cial
Natio
nal
La
nd Environm
ental
Re
sou
r
ce
s’ IP n
e
twork
throug
h a fixed IP address and th
en transfe
rs
data.
The structu
r
e of the moni
toring
system
for
geolo
g
ical a
r
chive
s
is sho
w
n in Figu
re
1.
Figure 1. Structure of the m
onitori
n
g
syst
em for geol
og
ical archive
s
3. Sy
stem Hard
w
a
r
e
De
s
i
gn
The ha
rd
ware desi
gn an
d
implementati
on proc
e
d
u
r
e
of the monitor are intro
d
u
ce
d in
the follo
wing
text. An 8-b
i
t embe
dded
microp
ro
ce
ssor ST
C11F
32XE was chosen to
en
su
re
simple
syste
m
desi
gn an
d
installation,
as well as mi
nimum cost f
o
r commu
nication mod
u
le
and
transmission reliability. EEPROM of ST
C11F
32
XE is 29 K, and the add
ress range i
s
0000H-
73FF
H
,
with
a
total
of 58 se
ctors and
512 bytes pe
r
se
ctor. A
sector i
s
the
b
a
si
c u
n
it of
read-
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
De
sign a
nd Im
plem
entation of A Monitoring System
for Geol
ogi
cal
Archi
v
e
s
(S
u
n
Min)
1439
write operation of EEPROM [6]. Ba
s
e
d on the geologic
al
res
o
urces
webs
ite, the network
chip
RTL8
019AS
wa
s u
s
e
d
for Ethern
e
t dat
a tran
smi
s
sio
n
. RT
L801
9A
S perfo
rma
n
c
e
s
confo
r
m
to
Ethernet II and IEEE 802.3 standar
ds,
full dupl
ex, and
10 m
b
/s transmit-receive rate [7]. The
remote PC
send
s data to the Ethern
e
t interface, wh
i
c
h sto
r
e
s
the data in the RAM. A field s
e
rial
port devi
c
e
and a
single
chip
were u
s
ed fo
r co
m
m
unication.
The data fro
m
the RAM
were
colle
cted
as
control com
m
and of the
field equip
m
e
n
t, thus chan
ging the
wo
rking
state of
the
field equipm
e
n
t. STC11F3
2
XE use
s
8-b
i
t data bus.
Therefo
r
e, an
8-bit bu
s net
work card. IO
RB
and IORB a
r
e con
n
e
c
ted
with WR an
d
RD of ST
C1
1F32XE, re
spectively. Wit
h
re
spe
c
t to the
con
n
e
c
tion
s
of 20
-bit b
u
s of the
RT
L8
019AS
chip,
SA0–SA4 a
r
e conn
ecte
d
to P0.0–P0.4
of
STC11
F
32X
E. Five data
buses
are ne
eded to
ad
dr
ess
the 32 re
gisters
i
n
the RTL8
019AS chip.
SA8 and SA
9 are conn
ected to VCC,
and the
ot
he
r 13 a
ddress
buses
are co
nne
cted to
G
ND.
The ha
rd
ware stru
cture is
sho
w
n in Fig
u
re 2.
Figure 2. Hardwa
re st
ru
ctu
r
e of the moni
tor
4. Upper
Co
mputer Softw
a
r
e Design
A dedi
cated
co
ntrol l
e
n
lib.ocx un
de
r VB was
set to e
n
su
re
conve
n
ie
nt data
comm
uni
cati
on of the monitor throug
h the Ether
n
e
t (provin
c
ial
resource
s
web
s
ite)
and
one
uppe
r PC no
de of the Ethernet (provin
c
ial resour
ce
s we
bsite
)
. Users
coul
d in
voke it on WI
NXP
by installing t
he 10/100 B
a
se-T Ethernet card on
the PC. In thi
s
way, a di
stri
buted m
onitoring
system
ba
se
d on th
e Ethe
rnet
coul
d be
achi
eved
by
embed
ding l
e
nlib.ocx to
de
sign th
e n
e
twork
control syste
m
application
softwa
r
e.
Lenlib.ocx is an ACTIVEX that
uses lenuser obj
ect.
It prov
ides application developers
with one attri
bute (remotei
p), three m
e
thod
s [G
etDat
a
(), Sen
d
Dat
a
(), an
d Lin
k
()], and one e
v
ent
[dataarrival()]. The invokin
g
step
s are a
s
follows:
(1) Th
e PC is con
n
e
c
ted
to the monitor.
Remotei
p
attributes th
e IP address to th
e
monitor. Th
e
PC and the
monitor a
r
e
conne
cted
through Li
nk().
The conne
cti
on is succe
s
sful
whe
n
the “AC
K
” strin
g
is re
ceiv
ed. The
n
, the next com
m
unication can be pe
rformed.
(2) Commu
nication. After
su
ccessful
co
nne
cti
on, G
e
tData() i
s
u
s
e
d
to receive
netwo
rk
data and Sen
d
Data
() i
s
used to sen
d
d
a
ta to the network. The PC will trigger
DataArrival
() af
ter
receiving the
data fro
m
th
e monito
r. G
e
tData() in
th
e DataA
rrival
() i
s
u
s
ed
to
acq
u
ire
the
sent
informatio
n a
nd store it in variable
s
of the variant type.
(3) SendData, GetData, link
gramm
Returned val
ue Void
a. object.Sen
dData d
a
ta
b. object.Get
Data data, [type,] [maxLen]
5. Communication Pro
t
o
c
ol Design
Acco
rdi
ng to
related
regul
ations of th
e
Mi
nistry of National Lan
d and Re
so
urces,
d
a
ta
transmissio
n and com
m
uni
cation
protocol
corre
s
po
n
d
to the
appli
c
ation laye
r of
the seven-l
a
yer
RT
L80
19
AS
S
D0-SD
7
SA0
-SA4
IOW
B
IORB
THI
N+
TH
IN
-
STC
11
F32
XE
74
LS
373
WR
RD
P4
.5
20
F0
01
TP
OU
T-
TP
OU
T+
RJ4
5
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
9
30
TELKOM
NIKA
Vol. 13, No
. 4, Decem
b
e
r
2015 : 143
7 – 1445
1440
proto
c
ol defi
ned by ISO/OSI, t
hereby providing m
u
tual com
m
u
n
icatio
n between field dev
ice
s
based on diff
erent tra
n
smi
ssi
on net
works and mo
nitoring ce
nters [9].
The ap
plication layer d
e
p
end
s on the
cho
s
e
n
tran
smissi
on n
e
twork
and p
e
rfo
r
ms
data
comm
uni
cati
on on th
e
cho
s
e
n
tran
smissio
n
net
work. If the
basi
c
transmissi
on laye
r is
establi
s
h
ed, then
the pro
t
ocol
of
th
e entire appl
i
c
ation layer i
s
un
rel
a
ted
with the
spe
c
ific
transmiss
ion network
. In this
s
y
s
t
em, the
comm
unication b
e
twee
n the
m
onitor
and
the
monitori
ng ce
nter is ba
sed
on TCP/IP,
and the tr
an
smissi
on layer uses the UDP protocol [1
0].
The co
mmuni
cation b
e
twe
en the monito
r and the mo
ni
toring
cente
r
host i
s
sh
own in Figure 3.
Figure 3. Co
mmuni
cation
pro
c
e
ss of Ethern
e
t
When the m
onitor
want
s
to send data
through
UDP
,
it will transmit the data, a pair
of
so
cket add
re
sses,
and th
e
data le
ngth, t
o
the
UDP. T
h
e UDP
will t
h
en a
dd
UDP data p
r
elu
d
e
to
the re
ceived
data and th
e
n
se
nd it to the IP, mark
i
n
g it from the
UDP p
r
oto
c
ol
. Then, this IP
datagram i
s
sent to the data link layer (DLL)
. The DLL will add
its
prelude
t
o
the received
datagram an
d then sen
d
it to the physical layer.
The
physical layer will co
nvert these bit cod
e
s
into an ele
c
tri
c
al si
gnal a
n
d
then tran
smit them
[11]. When th
e m
onitorin
g
ce
nter re
ceive
s
th
ese
data, it will unpa
ck them
layer by layer to
obtain
the real effective data
and then m
a
ke
corre
s
p
ondin
g
treatment
s.
Comm
uni
cati
ons bet
wee
n
the m
onitor
and th
e u
ppe
r
comp
uter u
s
e
an i
n
com
p
re
ssi
ble
ASCII pattern. The c
o
mmand format fr
om the hos
t to the terminal is
HEAD
CLA
LC
DATA
CR
C
END
Specific com
m
and
definiti
ons
The co
mmuni
cation p
r
oto
c
ol mainly incl
ude
s 11 com
m
and
s.
Comm
and of
colle
ctor time
setting
(1)
Definition an
d rang
e: The
upper
comp
uter set
s
the colle
ctor time
. The directio
n is from th
e
PC to the terminal.
(2) Comm
and
m
e
ssag
e
STAR WCLK
012
YYMMDDHHMMSS,
12 bits
in total
XX END
(
3
) R
e
s
p
on
se
me
ss
a
ge
STAR
WCLK
002
SW1 SW1
XX
END
(4)
Returning d
a
t
a meaning: SW1 SW2
=
“00”/“FF”
(co
mmand is ex
ecute
d
su
cce
ssfully/setting
failed).
Comm
and of
colle
ctor time
readin
g
(1)
Definition a
n
d
ran
ge: Th
e uppe
r com
puter
r
ead
s t
h
e cu
rrent time of the collecto
r
. The
dire
ction is from the PC to the terminal.
(2) Comm
and
m
e
ssag
e
STAR RCLK
000
Nothing
XX
END
(3) Re
spo
n
s
e
mes
s
age
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
De
sign a
nd Im
plem
entation of A Monitoring System
for Geol
ogi
cal
Archi
v
e
s
(S
u
n
Min)
1441
STAR RCLK
012
YYMMDDHHMMSS,
12 bits
in total
XX END
(4)
Returning d
a
ta meanin
g
: Nothing.
Comm
and of
colle
ctor u
p
lo
ad interval se
tting
(1)
Definition
an
d ran
ge: Th
e
uppe
r comp
uter
se
ts th
e
uploa
d interval of the co
llector. T
h
e
dire
ction is from the PC to the terminal.
(2) Comm
and
m
e
ssag
e
STAR
WUPT
001
Interval
mark
of
1 byte can
only
be 0, 1, 2, and 3.
XX END
Note: DATA
sup
port
s
0,
1, 2, and
3 only. Hen
c
e, othe
r val
ues
are vie
w
ed
as e
r
ro
rs. 0
rep
r
e
s
ent
s a
n
untime
d
u
p
l
oad; 1
indi
cat
e
s
an
uploa
d
every 10
min;
2 in
dicates a
n
upl
oad
every
30 min; and 3
indicate
s an
uploa
d every 60 min.
(
3
) R
e
s
p
on
se
me
ss
a
ge
STAR WUPT
002
SW1
SW1
XX
END
(4)
Retu
rne
d
data meani
ng: SW1 SW2=“00
”
/“FF
”
(comm
and i
s
execute
d
su
cce
ssfully/setting
failed).
Comm
and of
colle
ctor b
egi
nning to upl
o
ad real
-time d
a
ta
(1) Definition
and
ra
nge: Af
ter the
up
per
comp
uter
sen
d
s thi
s
comm
and, the
colle
ctor will
retu
rn
the curre
n
t re
al-time data
every 30 s u
n
til
the upper compute
r
st
ops
sendi
ng the com
m
and
to the colle
ctor. The di
recti
on is from the
PC to the terminal.
(2) Comm
and
message
STAR SRDA
000
Nothing
XX
END
(
3
) R
e
s
p
on
se
me
ss
a
ge
STAR SRDA
002
SW1
SW1
XX
END
(4)
Returning d
a
t
a meaning: SW1 SW2
=
“00”/“FF”
(co
mmand is ex
ecute
d
su
cce
ssfully/setting
failed).
Comm
and of
colle
ctor
stop
ping to uplo
a
d
real
-time da
ta
(1)
Definition a
n
d
ran
ge: After the upp
er
compute
r
se
n
d
s this
com
m
and to the
colle
ctor, the
colle
ctor
will
stop retu
rnin
g
the
cu
rrent
real
-time d
a
ta state
ever
y
3
0
s
.
T
h
e d
i
re
c
t
io
n is fr
om
the PC to the terminal.
(2) Comm
and
m
e
ssag
e
STAR ERDA
000
Nothing
XX
END
(
3
) R
e
s
p
on
se
me
ss
a
ge
STAR ERDA
002
SW1
SW1
XX
END
(4)
Returning d
a
t
a meaning: SW1 SW2
=
“00”/“FF”
(co
mmand is ex
ecute
d
su
cce
ssfully/setting
failed).
Comm
and of
colle
ctor u
p
lo
ading real
-time data
(1)
Definition
an
d ra
nge: Afte
r the u
ppe
r
compute
r
sen
d
s a
co
mma
nd to
start
collectin
g re
al-
time data to
the collector,
the
collector will
send the current
real-time dat
a to the upper
comp
uter eve
r
y 30 s. The d
i
rectio
n is fro
m
the termina
l
to the PC.
(2) Comm
and
m
e
ssag
e
STAR UPRD
XXX
Refer
t
o
referenc
e for
more details
.
XX END
(3) Re
spo
n
s
e
mes
s
age
STAR UPRD
012
DATA
XX
END
whe
r
e DATA
regul
ates
Time
Voltage
Curre
n
t
Tempe
r
atu
r
e
Humidity
UPS/air
con
d
itioning
swit
ch
12 bytes
3 bytes
2 bytes
2 bytes
2 bytes
1
byte
(1111XXXX)
Comm
and of
colle
ctor u
p
lo
ading d
a
ta re
gularly
(1)
Definition an
d rang
e: The
colle
ctor will
send the m
ean withi
n
the use
r
settin
g
time to the
uppe
r co
mput
er. The di
recti
on is from the
terminal to the PC.
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
930
TELKOM
NIKA
Vol. 13, No
. 4, Decem
b
e
r
2015 : 143
7 – 1445
1442
(2) Comm
and
m
e
ssag
e
STAR
UPTD
XXX
The format is
the
s
a
me as
the
colle
ct
or’
s
uploa
ding rea
l
-time
data.
XX END
(
3
) R
e
s
p
on
se
me
ss
a
ge
Returning d
a
ta meanin
g
: SW1 SW2=“00
”
/“FF
” (succe
ssful/faile
d da
ta sendi
ng)
Comm
and of
setting ala
r
m
threshold
(1)
Definition
an
d ra
nge: T
h
e
uppe
r
comp
uter
sen
d
s
a
n
ala
r
m threshold to the
collecto
r
. Th
e
dire
ction is from the PC to the terminal.
(2) Comm
and
m
e
ssag
e
STAR WBJ
Y
009
Environmental
para
m
eter
threshold
XX END
whe
r
e envi
r
o
n
mental pa
ra
meter thresh
olds a
r
e
Voltage
Curre
n
t
Tempe
r
atu
r
e
Humidity
3 bytes
2 bytes
2 bytes
2 bytes
(3) Re
spo
n
s
e
mes
s
age
STAR WBJ
V
002
SW1
SW1
XX
END
(4)
Returning d
a
ta meanin
g
: SW1 SW2=“00
”
/“FF
” (succe
ssful/faile
d da
ta sendi
ng).
Alarm
(1)
Definition a
n
d
ran
ge: Th
e colle
cto
r
send
s
an al
arm sign
al to the upp
er
co
mputer. Th
e
dire
ction is from the termin
al to the PC.
(2) Comm
and
m
e
ssag
e
STAR UPBJ
XXX
Alarm
s
e
nsor
address an
d data
XX END
(3) Re
spo
n
s
e
mes
s
age
STAR UPBJ
002
SW1
SW1
XX
END
(4)
Returning d
a
ta meanin
g
: SW1 SW2=“00
”
/“FF
” (succe
ssful/faile
d da
ta sendi
ng).
Setting disch
a
rge
startin
g
time and time
spa
n
(1)
Definition an
d
range: The u
pper
comp
ute
r
sets
the di
scha
rge
start time and time spa
n
of city
(co
unty) ge
ol
ogical archive
s
UPS. The d
i
re
c
t
ion is
from the PC to t
he terminal.
(2) Comm
and
m
e
ssag
e
STAR WFDT
014
YYMMDDHHMMSS
HH, 14 byte
s
XX END
(3) Re
spo
n
s
e
mes
s
age
STAR WFDT
002
SW1
SW1
XX
END
(4)
Returning d
a
ta meanin
g
: SW1 SW2=“00
”
/“FF
” (succe
ssful/faile
d da
ta sendi
ng).
Setting archives switching
control
(1)
Definition
an
d rang
e: Th
e
uppe
r
com
p
u
t
er
sets
the
switchi
ng co
ntrol sig
nal
fo
r city
(cou
nty
)
geolo
g
ical a
r
chive
s
.
(2) Comm
and
m
e
ssag
e
STAR WCDN
001
8
channel
s
corre
s
p
ondin
g
to 8
bits
XX END
(3) Re
spo
n
s
e
mes
s
age
STAR W
CDN
002
SW
1
SW
1
XX
EN
D
(4)
Returning d
a
ta meanin
g
: SW1 SW2=“00
”
/“FF
” (succe
ssful/faile
d da
ta sendi
ng).
6. Main Program Flo
w
c
h
a
r
t of th
e Mon
i
tor
The monitor is the
co
re of the en
tire monitori
n
g
system. It accompli
sh
es time
adju
s
tment
th
roug
h system
initializatio
n and set
s
the
data u
p
load
i
n
terval, the
a
l
arm th
re
shol
d,
the UPS
discharg
e
p
a
ram
e
ters,
and
th
e cellph
one
numbe
r fo
r
messag
e al
e
r
ts. Th
e p
r
o
g
r
am
flowchart is
shown in Figu
re 4.
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
9
30
De
sign a
nd Im
plem
entation of A Monitoring System
for Geol
ogi
cal
Archi
v
e
s
(S
u
n
Min)
1443
Figure 4. Main prog
ram flo
w
chart of the
monitor
7. Sy
stem Test
The Ethe
rnet
linka
ge a
nd
the co
nne
ctio
n bet
ween th
e monito
r an
d the dete
c
to
r were
tested. Resul
t
s are
sh
own
in Figu
re
s 5
and 6. Th
e
on/off test of the main
sup
p
ly and the t
e
st
results of rel
a
ted pro
c
e
ssi
n
g
are p
r
e
s
ent
ed in Figu
re 7
.
Figure 5. Ethernet lin
kag
e
test
Po
wer
on
GS
M i
nit
ial
iza
ti
on
In
iti
ali
ze
th
e s
ens
or
add
res
s
Rea
d
the
sy
ste
m p
ara
met
er
s
for
m
EEP
ROM
,an
d e
nte
r i
nt
o
n
orm
al
wor
ki
ng
con
dit
ion
up
dat
e a
la
rm
sta
te
?
Re
cei
ve
se
ria
l
dat
a ?
U
pda
te
ala
rm
st
ate
Y
Mo
dif
y
IP
dat
a
?
N
Y
R
ece
ive
Et
her
ne
t d
ata
?
I
s i
t
fro
m t
he
u
ppe
r
com
put
er?
N
Y
Y
N
Pr
oce
ss
al
arm
inf
orm
ati
on
Mo
dif
y I
P
pa
ram
ete
rs
Pr
oce
ss
co
mma
nd
fr
om
the
up
per
c
omp
ute
r
N
N
Y
Wai
tin
g a
nd
del
ay
G
SM
mod
ulu
s
sta
ble
Evaluation Warning : The document was created with Spire.PDF for Python.
ISSN: 16
93-6
9
30
TELKOM
NIKA
Vol. 13, No
. 4, Decem
b
e
r
2015 : 143
7 – 1445
1444
Figure 6. Re
ceived data an
d respon
se
s
of monitor to control co
mm
and
Figure 7. Outage ala
r
m test
8. Conclusio
n
s
The monito
ri
ng syste
m
h
a
s a
c
hieve
d
good ove
r
all
operation in t
he Hai
nan
G
eologi
c
al
Archive
s
sin
c
e it be
ca
me
o
peratio
nal. T
h
e sy
stem
met
the d
e
si
gn
re
quire
m
ent
s
of
the Bu
rea
u
of
Nation
al Terri
t
ory Re
sou
r
ce of Hain
an a
nd prov
ided
data suppo
rt
for furthe
r dat
a
mana
geme
n
t.
Given the
e
m
pha
sis on
t
he
“peo
ple
-
oriented” p
r
in
ci
ple, the
co
m
b
ination
of n
e
w
man
a
ge
ment
and a
contin
u
ously refined
manag
eme
n
t mech
ani
sm
ensure
d
that geolo
g
ical da
ta
manag
em
ent
is hum
ani
zed
.
This ap
pro
a
c
h al
so e
nha
nce
d
the ent
husi
asm
and
con
s
ciou
sne
ss
of geolo
gi
cal
staff and relie
ved their man
ageme
n
t burden, as
well a
s
improved m
anag
e
ment ef
ficien
cy.
(1) Th
e a
p
p
licatio
n of
the
geol
o
g
ical
a
r
chive safety m
o
nitorin
g
sy
stem
ha
s
fundame
n
tall
y chang
ed th
e origin
al 24
h duty modes of manage
rs.
(2) Air h
u
mi
dity in the archive
s
was
high
be
ca
use of continu
ous
rainfall d
u
ring th
e
middle
to th
e en
d of
Jul
y
2014.
The
monito
ring
system
sent
ale
r
ts i
mme
diately, and
the
manag
ers activated
the
d
ehumidifie
r a
s
soo
n
a
s
th
ey re
ceived
the SMS al
ert
.
The
de
sign
ed
monitori
ng system coul
d
di
scover
potent
ial safety h
a
zard
s, the
r
eby
red
u
ci
ng
risks to g
eolo
g
ical
data sto
r
age
cau
s
e
d
by high air hu
midit
y
.
Evaluation Warning : The document was created with Spire.PDF for Python.
TELKOM
NIKA
ISSN:
1693-6
930
De
sign a
nd Im
plem
entation of A Monitoring System
for Geol
ogi
cal
Archi
v
e
s
(S
u
n
Min)
1445
The data su
p
port provid
ed
by
the
monit
o
ring
system
gua
rant
ees t
he
safety of t
he
city
(co
unty)
geol
ogical a
r
chives. It al
so
p
r
ovide
s
accu
rate
and
int
u
itive digital
inform
ation
for
geolo
g
ical
saf
e
ty managem
ent in Hain
an
, thereby acceleratin
g
the informati
z
atio
n of Haina
n
.e
.
Referen
ces
[1]
Lou H
o
n
g
y
in
g
.
T
he researc
h
on the s
i
tuatio
n an
d c
ounter me
asu
r
es
of the g
eol
ogic
data
social
izati
on.
Master
’
s
T
hesi
s
of China U
n
iv
ersity of Geoscienc
es, Beiji
ng,
Chin
a
. 201
1: 25-33.
[2]
W
ang J
un, M
e
ng B
ao-
pin
g
, S
ong
L
e
i. Bri
e
f I
n
troducti
on
of
T
ongchua
n Br
oadc
astin
g
N
e
tw
o
r
ks S
ub-
front-end
U
nat
tende
d E
qui
p
m
ent R
oom
M
onitor
i
ng
S
y
ste
m
Co
nstructio
n
.
Ch
ina
D
i
git
a
l
Cab
l
e
TV
.
201
1; 9: 1088-
108
9.
[3]
W
ang Qi
an-j
u
,
Yan S
h
i-q
i
a
ng,
W
ang
Yo
ng-s
hen
g,
Ma
F
e
i-fei1, Y
u
e
Yon
g
-
b
in
g.T
he Status, Probl
ems
and Co
unter measur
es
an
d
Sugg
estio
n
s
of Natio
n
a
l
Geolo
g
ica
l
Ar
chives.
Na
trua
l
Re
so
u
r
ce
Econo
mics of Chin
a.
20
11; 1: 18-19.
[4]
Gong W
e
ntao
. T
he Desi
gn
of Env
i
ro
nm
ental
Mon
i
tori
ng S
y
stem
b
a
sed
o
n
T
e
mperatur
e
an
d
Humid
i
t
y
.
Micr
oco
m
p
u
ter App
licatio
ns
. 20
13;
29(12): 17-
18.
[5]
Li D
a
-li
an. D
e
s
i
gn
of Eq
uipm
e
n
t Ro
om Env
i
ronme
n
t Mon
i
to
ring S
y
st
em b
a
s
ed
on T
C
P/IP.
Co
mput
er
and Mo
der
ni
z
a
tion
. 201
1; 2: 97-98.
[6]
ST
C micro. Man
ual
of ST
C11/1
0
X
X
series
Sin
g
l
echi
p, av
ai
labl
e from:
http://
w
w
w
.
stcmcu.com/datasheet/stc/ST
C
-A
D-PD
F
/
ST
C11F
-10F
xx-e
ng
lis
h.pdf, accesse
d on 2
1
-09-
2
0
15
[7]
Elecfans.
Data of
REALT
EK801
9/REALT
EK801
9 as
chip,
avail
a
b
l
e fr
om:
http://
w
w
w
.
e
l
ec
fans.com/soft/78/223/2
0
1
0
/2
0
100
91
990
01
9.html, accessed
on 08-1
0
-2
015
[8]
Ethernet Gat
e
w
a
y for
Sing
le C
h
ip.
El
ectronic
Engi
neer
ing
W
o
rld, av
aila
bl
e from:
http://
w
w
w
.
e
e
w
o
rld.com.cn/mc
u
/201
5/01
29/ar
ticle_
182
79.ht
ml, accessed o
n
12-1
0
-2
015
[9]
Ministr
y
of Env
i
ronme
n
tal Pr
otection
of Ch
ina
.
Standar
d for
data comm
unic
a
tion
of po
lluti
o
n
emiss
i
o
n
auto
monitori
ng
s
y
st
e
m
(HJ
/
T
212-20
05),
ava
i
l
abl
e f
r
om:
http://
w
w
w
.
me
p.gov.cn/ima
g
e
200
10
518/5
8
3
6
.pdf, accesse
d on 22-
10-
201
5
[10]
Navid G
haffar
z
ade
h, Maso
u
d
Akbar, Amir
K
han
janz
ad
e
h
. Distribut
ed
Generati
on
Alloc
a
tion to
Imp
r
o
v
e
Steady
sta
t
e
Vo
l
t
a
g
e
Sta
b
i
l
i
t
y
o
f
D
i
s
tri
b
u
t
i
on N
e
t
w
o
r
ks u
s
in
g
Impe
ri
al
i
s
t C
o
mpe
t
i
t
i
v
e
Algorit
hm.
Internatio
nal J
ourn
a
l of Electrica
l
and C
o
mput
er Engi
neer
in
g
. 2013; 2(2): 7
1
-7
8.
[11]
Devashish Gosain, Itu
Snigd
h
. Performanc
e Comp
ariso
n
of R
outin
g Pro
t
ocols in Bip
a
rt
ite W
i
reless
Sensor N
e
t
w
or
k.
Internation
a
l
Journa
l of Electr
ical a
nd C
o
mputer En
gi
n
eeri
n
g
. 20
15; 5(6): 141
7-
172
3.
Evaluation Warning : The document was created with Spire.PDF for Python.