1 features, 1 callback, 1 data callback – Campbell Scientific COM320 Voice Communications Modem User Manual

Page 19: 2 voice callback, 2 voice callin, 3 voice storage data

Advertising
background image

COM320 Voice Communications Modem

5.1 Features

The voice instructions listed in 5.2 are combined with standard CRBasic
instructions to create the code needed for telephone answering, dialing, voicing
word strings, voicing data, receiving key presses from the remote phone, and
acting upon those key presses.

5.1.1 Callback

Callback is the ability of a datalogger/COM320 station to initiate a phone call
‘back’ to a PC running LoggerNet (data mode) or to a telephone (voice mode).
Data callback and voice callback code can be included in the same program.
See example CR1000 voice callback/callin program for details.

5.1.1.1 Data Callback

A station can be programmed to do a data callback in the event specified
conditions are met to a PC (with phone modem) running LoggerNet. Data
callback causes LoggerNet to collect datalogger data marked for collection.
You must enable Callback (sometimes in two places) in LoggerNet Setup.

The datalogger program uses a SendVariables instruction to effect a data
callback (see example data callback program below). No callback ID is used.

5.1.1.2 Voice Callback

The COM320 gives you the ability to do voice callbacks. You can program a
station to call one or more telephone numbers and announce an alarm message
when conditions you specify are met. You can input multiple phone numbers
to increase the probability that someone will receive the message.

Dataloggers accomplish voice callback with a combination of VoiceSetup,
VoiceKey, VoiceSpeak, and DialVoice instructions (see example voice
callback/callin program).

5.1.2 Voice Callin

Callin is the ability of a station to accept a phone call and announce words and
data and, possibly, accept menu key presses. All voice capable dataloggers
support callin. The dataloggers require that callin code be added to the
program (see example voice callback/callin program in Quick Start).

5.1.3 Voice Storage Data

The COM320 recites data stored in variables. You can also recite data stored
in tables by setting a variable equal to Tablename.Fieldname (fieldname index,
records back). You can then get a specific field from the data table (for more
information see CR1000 section Program Access to Data Tables).

The VoiceSpeak code might look like this:

TC_1 = Public.AirTemp(1,1)

VoiceSpeak ("THE AIR TEMPERATURE WAS" + TC_1 + "DEGREES", 0)

13

Advertising