Voice beg / endvoice, Callinvoice subroutine, Calloutvoice subroutine – Campbell Scientific COM320 Voice Communications Modem User Manual
Page 17: Slowsequence, System components, 1 com320 modem

COM320 Voice Communications Modem
The VoiceSetup SecsOnLine setting is important as it
hangs up (auto-disconnects) the modem in case
someone hangs up the phone or leaves the phone off-
hook without pressing star keys for an orderly “good-
bye” disconnect. Test the entire program in this regard
before deployment to avoid possible lengthy off-hook
states disallowing incoming calls, running up a phone
bill and draining the station power supply.
WARNING
Voice Beg / EndVoice
At call in, the VoiceBeg / EndVoice instruction pair enclose the code that is
executed when the datalogger detects a ring from the COM320.
CallInVoice Subroutine
This subroutine contains the code pointed to by VoiceBeg / EndVoice that is
to execute after a call in occurs. It consists mainly of VoiceSpeak menu
announcements followed by a VoiceKey instruction prompting caller input and
a Select Case statement choosing the program’s responses to various caller key
presses.
CallOutVoice Subroutine
The CallOutVoice subroutine contains the code that is to execute when
VoiceBeg / EndVoice detects that a call out phone number has been dialed. It
prompts a responding party to press the # key after which it announces the
menu selections to hear: battery voltage, panel temperature, or thermocouple
temperature (SubKey1); datalogger port status of C1 - C8 (SubKey2); or
datalogger flag status of F(1) - F(8) (SubKey3). The state of the ports and flags
can be toggled as well as heard.
SlowSequence
Contains code that continually executes looking for the Diff 7 thermocouple to
exceed 85°F in which case the variable “alarm” is set to “True” and a call out
(callback) is initiated. It dials the first phone number on the list. If no answer,
after 20 seconds the second number is dialed. The list of phone numbers is
dialed repeatedly until someone picks up and presses the # key (monitored by
the CallOutVoice subroutine) which resets “alarm” to False and allows the
responding party to proceed into the CallOutVoice menus.
4. System Components
4.1 COM320 Modem
Connecting a COM320 voice modem to a datalogger provides all COM220
supported functions plus the following:
• Voice retrieval of data (user or datalogger initiated)
• Reading/Toggling of datalogger control ports
• Reading/Toggling of program Flags
11