
Raven II Digital Cellular Modem
7
6. Programming to Switch Transceiver Power
Switching power to the transceiver allows the datalogger to maintain a lower
power budget by limiting communication to predetermined times. The
transceiver must be switched on before it can answer a call.
This section provides examples of datalogger programming to switch power. If
the power supply is sufficient to power the cellular transceiver continuously
without switching, no special programming is necessary.
The simplest program switches power on at specific times and off a fixed time
later. This can be accomplished with two Instructions. Instruction 92 sets the
port controlling the relay high to turn the power on and a second Instruction 92
sets the port low. In these examples, control port 1 controls the relay.
The following program switches the transceiver on at midnight for 15 minutes:
;{CR10X}
;
*Table 1 Program
01: 10.0
Execution Interval (seconds)
01: If time is (P92)
1:
0
Minutes (Seconds --) into a
2:
1440
Interval (same units as above)
3:
41
Set Port 1 High
02: If time is (P92)
1:
15
Minutes (Seconds --) into a
2:
1440
Interval (same units as above)
3:
51
Set Port 1 Low
*Table 2 Program
02: 0.0
Execution Interval (seconds)
*Table 3 Subroutines
End Program
With the transceiver on for 15 minutes following midnight, LoggerNet would
be set to call automatically once a day at 2 minutes after midnight. In some
areas there are discounts for calls during off hours.