Charge State =
CYCLE CHARGING
Charge Source =
DC In 1
Check Battery =
0
7.3.2.2 CRBasic programming
Use the
SerialOut()
and
SerialInRecord()
CRBasic instructions to program a data
logger to communicate with the CH201 using RS-232. To separate the numerical values, use
SplitStr()
.
The data logger can decipher the two-character checksum by using the CRBasic instruction
CheckSum()
. Set the
ChkSumType
parameter to 5. A correct checksum will produce a result
of zero. A non-zero result indicates a transmission error(s) occurred.
The normal communication mode is SDI-12. Therefore, when the host first sends RS-232
characters, the first character might be missed. Avoid this by initiating RS-232 communication
with two backspace characters
<BS> (0x08)
as shown in the following example subroutine:
'Subroutine sends two backspace characters to the CH201 to
'wake it up and switch over to RS-232 mode.
Sub
WAKEUP
SerialOut
(COMPRT,CHR(&H08),"",1,3)
SerialOut
(COMPRT,CHR(&H08),"",1,3)
EndSub
Downloadable
example
programs
are
available
at
7.4
LED
indicators
The
CH201
has
two
LED
indicators,
the
CHG
(charge)
LED
and
the
CK BAT
(check
battery)
LED.
and
list
the
conditions
and
associated
colo
u
rs
for
the
CHG
and
CK BAT
LEDs.
CH201 12V Charging Regulator
29
Summary of Contents for CH201
Page 1: ...06 2020 Copyright 2020 Campbell Scientific CSL I D 1352 ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 10: ...Appendix A Downloading an operating system 31 Table of Contents ii ...
Page 42: ...FIGURE A 1 Downloading a new operating system CH201 12V Charging Regulator 32 ...
Page 43: ......