beautypg.com

Datalogger voice programming, 1 features, 1 callback – Campbell Scientific COM310 Voice Communications Modem User Manual

Page 19: 1 data callback

background image

COM310 Voice Communications Modem

The COM310 must connect to an analog phone line. Some
office environment PBX phone lines are digital and don’t
interface to an analog modem such as the COM310. Of course,
any phone may be used to call in to or receive callbacks from the
COM310. A touch-tone phone is necessary for input.

NOTE

5. Datalogger Voice Programming

The voice code for the CR1000 and other voice capable CRBasic dataloggers
is integrated with the main program. It is probably advantageous to write your
custom voice program and debug it before adding the measurement part. The
example voice callback/callin program in Quick Start can provide a starting
point for your program.

With the CR10X, CR510, and CR23X dataloggers, voice code is added to
Edlog created dld files using LoggerTalk software.

5.1 Features

The voice instructions listed in 5.2.1 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.

For Edlog dataloggers, use multiple P97s with a different flag for each P97.

5.1.1 Callback

Callback is the ability of a datalogger/COM310 station to initiate a phone call
‘back’ to a PC running LoggerNet (data mode) or to a telephone (voice mode).
You can include data callback and voice callback code 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.

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

A CR10X, CR510 or CR23X program uses a P97 typically with a “42” in
Parameter 1 for 9600 baud.

A callback ID is required in P97’s Parameter 8

matching that assigned in the LoggerNet Setup.

Data callback is not supported in table-based or PakBus OSs for the CR10X,
CR510, and CR23X.

13