
E-1
Appendix E. Using the COM111 with the
PIN Security Feature Enabled
It is possible to use the COM111 with Campbell Scientific dataloggers with the COM111’s
PIN (Personal Identification Number) feature enabled. However, this has the following
disadvantages:
If the COM111 loses power momentarily, it will not answer further calls until the
datalogger sends the PIN again as part of the normal program sequence. If the
datalogger is programmed to send the PIN only once (leaving the COM111 permanently
switched on), a datalogger reset would be needed to re-enable the system. If a regular
turn on / turn off sequence is used (as described under ‘Controlling the Power
Consumption of the COM111’ in Appendix A), the system will be disabled until the next
sequence occurs.
If the COM111 fails to unlock the PIN code, for whatever reason, three times in a row, the
SIM card will be permanently locked. This will require you to contact your airtime service
provider to provide an ‘unlock’ code for the SIM.
Therefore if at all possible disable the PIN function otherwise follow these instructions.
E1. Introduction
To operate with the COM111’s PIN feature enabled, the datalogger must transmit
the command to send the PIN to the COM111 after turning on the power. For
CRBasic dataloggers this is simply done by using serial commands to send the
PIN code after the modem is turned on, see the example below.
Users of older dataloggers, e.g. the CR10X, 21X, CR10 or CR7, should contact
Campbell Scientific to obtain a copy of a manual written for early versions of this
manual which gives examples for Edlog programmed loggers.
E2. CRBasic Program Example
This example can be used on the CR800 series, CR1000 and CR3000 dataloggers.
It uses the standard CRBasic serialopen, serialout and serialclose commands to
send out configuration commands to the modem. The example shows using a slow
sequence to sending the command to unlock the PIN immediately after turning on
the modem.
'CR1000 Series Datalogger
'Example program showing how to turn on/off a GSM modem and disable the PIN code
'Also includes the correct sequence to shutdown the modem cleanly before turning
'off the power.
'The modem control is done in a slow sequence to avoid interference with measurements
'Declare Public Variables
'Example:
Public PTemp, batt_volt