User manual
Appendix A. Using the COM110A with the PIN Security Feature Enabled
A-3
A3. CR10X Program Example
Using Instruction P97 with the generic modem option does not require any special
cabling or set-up. It is possible that the generic modem option may not be fully
documented in your datalogger manual, but you should be able to find some
information in the help system of Edlog for Windows. To gain a full
understanding of the general mode of operation of P97 please refer to the
examples in the datalogger manual.
For the purpose of unlocking a PIN code, P97 is used with the datalogger ID set to
0, which causes the instruction simply to send and check the responses to
commands sent to the ‘modem’, without then proceeding to make a call.
Below is an example program which turns on the COM110A and sends the PIN so
that the COM110A can receive calls.
This program, for the CR10X, shows how to transmit the PIN command
(AT+CPIN=nnnnnnn, where nnnnnnn is the PIN). The program includes a
delay after turning the COM110A on, before calling P97. This is required because
it takes approximately two seconds for the COM110A to power-up.
;{CR10X}
; An example program which shows how to turn the COM110A on and send
; a PIN code using Instruction P97 with the Generic Modem option.
; The power to the COM110A is controlled by Port 1
; Please note that no measurement or data storage instructions are
; shown - this is an example of COM110A power control only.
*Table 1 Program
01: 10 Execution Interval (seconds)
;Other measurement instructions here
;At the start of every hour, say, turn on the COM110A
1: If time is (P92)
1: 0 Minutes (Seconds --) into a
2: 60 Interval (same units as above)
3: 30 Then Do
;Turn on the power (COM110A power controlled by C1 in this case)
;Add extra code if low battery voltages are likely (see above)
2: Do (P86)
1: 41 Set Port 1 High
; Now set flag 1 low to enable P97 in Generic Modem mode to send the PIN
3: Do (P86)
1: 21 Set Flag 1 Low
4: End (P95)
; Now immediately call P97 to send the PIN unlock sequence
; This needs to start straight away after the modem is turned on so that it does
; not get locked out by the logger going into communications mode when the
;COM110A sends its wakeup OK <CR>
5: Initiate Telecommunications (P97)
1: 72 Generic Modem/9600 Baud