background image

COM320 Voice Communications Modem 

13 

5.2  Voice Instructions 

The example voice callback/callin program “BASIC_VOICE_2.CR1” in 

Section 

3.1

CR1000 Example Program

 

(p. 6)

provides a starting point from 

which to build the features you want. 

Patterned after the example program in QuickStart, voice instructions can be 

combined in a variety of ways to provide phone access to datalogger data and 

for control of datalogger flags/output control ports. 

5.2.1  VoiceBeg / EndVoice 

This instruction pair contains the code executed when the datalogger detects a 

RING signal from the COM320 (a callin).  It is placed in the declarations 

portion of the program before the 

BeginProg

 instruction.  The 

EndVoice

 

instruction hangs up the modem.  

VoiceHangup

 is not required unless you 

want to hang up the modem under certain conditions prior to the execution of 

the 

EndVoice

 instruction. 

The 

VoiceKey()

 instruction is also used to add a delay before the 

EndVoice

 

instruction is executed so that the datalogger will not end the 

VoiceSpeak()

 

instruction before the spoken message is completed. 

5.2.2  VoiceSpeak 

The 

VoiceSpeak()

 instruction defines the string spoken by the voice modem.  

The string is comprised of concatenated words and string variables.  To ensure 

coded words are valid, CRBasic checks them against the voice.txt file, which 

mirrors the word list internal to the COM320.  Voice.txt resides in the 

“C:\CAMPBELLSCI\LIB\COMPILER” folder.   

To use 

VoiceSpeak()

, select it from the instruction list in CRBasic Editor and 

click 

Insert

.  CRBasic Editor brings up a list of available words.  Words can be 

inserted in any order.  Words are enclosed with quotes and variables are 

concatenated with words using a plus sign.  For example, "50MS THE 

BATTERY VOLTAGE IS" + Value(1) + "VOLTS" is a valid string.  The word 

“50MS” inserts a 50 millisecond pause during the announcement.  50MS can 

be inserted multiple times in series to create a longer pause. 

5.2.3  VoiceKey 

The 

VoiceKey()

 instruction is used to add a delay before the 

EndVoice

 

instruction is executed so that the datalogger does not end the 

VoiceSpeak()

 

command before the announcement is finished. 

The 

VoiceKey()

 instruction 

Timeout

 parameter is used to add a delay (in 0.01 

seconds) before 

EndVoice

 or 

Loop

 is executed. Multiple 

VoiceKey()

 

instructions placed before an 

EndVoice

 or 

Loop

 instruction increase the delay.  

The 

VoiceKey()

 timeout provides silent time for a user to respond to the 

announced menu; however, the user can respond by pressing a key in the 

middle of an announcement. 

When doing concurrent communications (via multiple communication 

peripherals) with your datalogger, it is recommended that the 

VoiceKey()

 

timeout be extended to over 5 seconds. 

Содержание COM320

Страница 1: ...INSTRUCTION MANUAL COM320 Voice Phone Modem Revision 6 16 C o p y r i g h t 2 0 0 2 2 0 1 6 C a m p b e l l S c i e n t i f i c I n c ...

Страница 2: ......

Страница 3: ...ducts to CSI CSI will return such Products by surface carrier prepaid within the continental United States of America To all other locations CSI will return such Products best way CIP port of entry per Incoterms 2010 This warranty shall not apply to any Products which have been subjected to modification misuse neglect improper service accidents of nature or shipping damage This warranty is in lieu...

Страница 4: ... address is CAMPBELL SCIENTIFIC INC RMA _____ 815 West 1800 North Logan Utah 84321 1784 For all returns the customer must fill out a Statement of Product Cleanliness and Decontamination form and comply with the requirements specified in it The form is available from our website at www campbellsci com repair A completed form must be either emailed to repair campbellsci com or faxed to 435 227 9106 ...

Страница 5: ...e beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers Use only manufacturer recommended parts materials and tools Utility and Electrical You can be kil...

Страница 6: ......

Страница 7: ...Surge Suppressor 11 4 3 Voice Capable Dataloggers 11 4 4 Telephone 11 5 Datalogger Voice Programming 11 5 1 Features 11 5 1 1 Callback 12 5 1 1 1 Data Callback 12 5 1 1 2 Voice Callback 12 5 1 2 Voice Callin 12 5 1 3 Voice Storage Data 12 5 2 Voice Instructions 13 5 2 1 VoiceBeg EndVoice 13 5 2 2 VoiceSpeak 13 5 2 3 VoiceKey 13 5 2 4 VoiceNumber 14 5 2 5 DialVoice 14 5 2 6 VoiceHangup 14 5 2 7 Voi...

Страница 8: ... B 3 B 6 Retrieving a Vocabulary List B 5 C CS I O 9 Pin Serial Port C 1 D COM320 Word List D 1 D 1 COM320 Word List Alphabetical Order D 1 Figures 1 1 COM320 Voice Phone Modem 1 6 1 COM320 Hardware Connection Using Standard RJ11 Phone Jack 18 6 2 COM320 CR1000 Using Surge Protection Device where there s no available Standard RJ11 Connection 19 6 3 COM320 Grounding and Alternate 12Vdc Power 20 6 4...

Страница 9: ... Although the primary function of the COM320 is voice communications the modem is also capable of data communications In data mode the COM320 supports standard datalogger functions including program send data collection and data callback This manual provides information regarding COM320 specifications installation and operation Section 3 QuickStart p 2 presents an example CR1000 voice callback cal...

Страница 10: ...ice callback callin program written to demonstrate functions of the COM320 It can serve as a starting point from which to build an application program Customize the voice code and merge your measurement sections with the voice code Also test the auto disconnect functionality that is the datalogger will automatically hang up after the specified number of seconds To demonstrate the example program o...

Страница 11: ...rNet Setup create the following device map 2 Configure ComPort and PhoneBase for your PC s phone modem 3 Configure PhoneRemote to include the COM320 s analog phone number followed by six commas and a 9 4 Click on CR1000phone renamed and verify that the PakBus Address is 1 Step 2 Hardware Setup 1 Start with a CR1000 having factory settings If unsure of settings close LoggerNet connect SC12 cable fr...

Страница 12: ... the thermocouple at DIFF 7 isn t Type T change the program to match your thermocouple type Save and Compile 6 Connect to CR1000phone and in Connect Screen send BASIC_VOICE_2 CR1 to CR1000phone 7 Disconnect from CR1000phone 8 Your CR1000 voice station is ready to demonstrate Step 4 Callin 1 Using a touch tone phone dial the number of the analog phone line connected to the COM320 2 You should hear ...

Страница 13: ...navigate around in the menus you will find that occasionally you get an unexpected response Phone connections are susceptible to noise and signal attenuation Depending on your particular phone equipment the phone lines and equipment between you and the voice station you may experience some of the following a You press and the voice station hangs up but doesn t say Goodbye b A voice callback rings ...

Страница 14: ...sted Public Value 3 Alias Value 1 BatteryV Alias Value 2 PTemp Alias Value 3 TCValue_F Const KeyTimeout 800 8 second timeout waiting for key stroke before hangup Const SecsOnLine 360 6 minutes On Line Timeout Const STAR 42 The key STAR Const POUND 35 The key Const HangupIfKeyTimeout TRUE Will hangup if times out waiting for a key Const RINGTIME 20 Maximum time in seconds allowed for a phone to be ...

Страница 15: ...iceSpeak PRESS ONE TO HEAR A SENSOR VALUE 50MS 50MS 0 VoiceSpeak PRESS TWO TO HEAR OR TOGGLE PORT 50MS 50MS 0 VoiceSpeak PRESS STAR TO DISCONNECT 50MS 50MS 0 Select Case VoiceKey KeyTimeout Case 1 Call SubKey1 Case 2 Call SubKey2 Case 3 Call SubKey3 EndSelect Loop Until timeout EndSub Monitors a value Sub SubKey1 Do VoiceSpeak 50MS PRESS SENSOR NUMBER 50MS PRESS STAR TO RETURN 0 mykey VoiceKey Key...

Страница 16: ... 0 If Flags mykey Then VoiceSpeak ON 0 Else VoiceSpeak OFF 0 EndIf VoiceSpeak 50MS PRESS POUND TO TOGGLE 50MS PRESS STAR TO RETURN 0 If VoiceKey KeyTimeout POUND Then flags mykey NOT flags mykey Else ExitDo EndIf Loop EndIf Loop Port loop EndSub DataTable Test 1 1 DataInterval 0 0 Sec 10 Minimum 1 BatteryV FP2 0 False Sample 1 PTemp FP2 Sample 1 TCvalue_F FP2 EndTable MEASUREMENT PROGRAM BeginProg...

Страница 17: ... execution to callin or callout subroutines CallInVoice Subroutine executes when VoiceBeg detects a callin CallOutVoice Subroutine executes when VoiceBeg detects a dial up It looks for a pound key to reset alarm variable to false SlowSequence continually looks for the alarm variable to be true which if it is it dials a list of phone numbers until alarm is no longer true It signals VoiceBeg when a ...

Страница 18: ... 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 3 2 5 SlowSequence Contains code that continua...

Страница 19: ... voice callin and data callback The modem also supports concurrent communications Dataloggers with multiple peripherals COM320 RF450 RF401 MD485 NL115 CR1000KD and SC32B can communicate simultaneously via those peripherals 4 4 Telephone A touch tone phone is normally used to call the COM320 modem A rotary phone will work if the programmed voice announcements do not require you to navigate through ...

Страница 20: ...ou 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 Using multiple phone numbers increases 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 call...

Страница 21: ...ure coded words are valid CRBasic checks them against the voice txt file which mirrors the word list internal to the COM320 Voice txt resides in the C CAMPBELLSCI LIB COMPILER folder To use VoiceSpeak select it from the instruction list in CRBasic Editor and click Insert CRBasic Editor brings up a list of available words Words can be inserted in any order Words are enclosed with quotes and variabl...

Страница 22: ...n The VoiceHangup instruction is not needed if the voice commands are enclosed within the VoiceBeg EndVoice instructions 5 2 7 VoiceSetup The VoiceSetup instruction controls the hang up of the COM320 voice modem It also allows you to specify certain handset key functions The HangUpKey parameter specifies the key that when pressed will disconnect the COM320 The ExitSubKey parameter specifies the ke...

Страница 23: ...ks to the phone number associated with the DialModem instruction whenever the thermocouple temperature exceeds 85 F To complete the system provide a PC running LoggerNet with a phone modem connected to the phone line dialed CR1000 Series Datalogger BASIC_DATA_CLBK_1 CR1 Program description Does a DATA CALLBACK via COM320 when DIFF 7 TC temp 85F LoggerNet Map ComPort PhoneBase PhoneRemote PakBusPor...

Страница 24: ...t Callback must be enabled in both the station and the ComPort screens The 25 second SendVariables TimeOut 2500 hundredths of a second allows the slow phone connection time to build 5 3 2 Data Callback Instructions The following instructions are used to program a data callback DialSequence EndDialSequence The DialSequence EndDialSequence instructions are used to define the code necessary to route ...

Страница 25: ... announce an alarm The COM320 also has the ability to function in data mode In data mode the COM320 supports data collection and other standard LoggerNet functions LoggerNet can be configured to call and perform scheduled collections of storage data or the datalogger can be programmed to do callbacks under specified conditions at which time LoggerNet will collect the data For scheduled or manual c...

Страница 26: ...arty line service is subject to state tariffs The COM320 is compatible with standard analog telephone lines It connects to the telephone line by means of a USOC RJ11 jack standard modular telephone jack Connect the cable from the telephone RJ11 jack to the modem as shown in FIGURE 6 1 FIGURE 6 1 COM320 Hardware Connection Using Standard RJ11 Phone Jack NOTE 14 AWG Ground Wire green with yellow str...

Страница 27: ... the GND terminal on the COM320 and to the station enclosure s earth ground connection The COM320 and datalogger must be connected directly to a high quality earth ground Read the datalogger manual section on GROUNDING for details on creating such an earth ground A quality EARTH GROUND connection to the COM320 and datalogger maximizes protection against electro static discharge Follow carefully th...

Страница 28: ...formation pertaining to the FCC and Industry Canada is available in Section 2 Specifications p 2 and Appendix A IC Information p A 1 Remove any malfunctioning telephone equipment immediately to prevent damage to the telephone network If the telephone company notices a problem from their end they may temporarily discontinue service They should notify you in advance of disconnection and give you opp...

Страница 29: ...sistant plastic body DC Breakdown 100 V sec is 300 to 500 volts DC extinguishing 52 V 135 V and 150 V is less than 150 milliseconds FIGURE 6 4 and FIGURE 6 5 show the wiring for connecting the surge suppressor Color coding of wires may vary The important consideration is to follow TIP all the way through and RING all the way through While no damage usually occurs from crossing wires the phone line...

Страница 30: ...Updating and Configuring the COM320 p B 1 Data Mode Can t connect to the station with LoggerNet software No commas and or 9 added to the dial string in LoggerNet to temporarily put the COM320 into data mode The 9 is being dialed before the COM320 picks up and voices the announcement not enough commas No phone number in the LoggerNet dial string COM320 is connected to a digital rather than an analo...

Страница 31: ...ion is waiting for the last key c Phone line introducing excessive noise or signal attenuation d Handset introducing excessive noise or producing too low signal levels 3 Station has become unresponsive try the following in the order given a Press which will usually announce the current menu again b Press five or more star keys in rapid succession to recover c Allow station to time out and disconne...

Страница 32: ...COM320 Voice Communications Modem 24 ...

Страница 33: ... be coordinated by a representative designated by the supplier Any repairs or alterations made by the user to this equipment or equipment malfunctions may give the telecommunications company cause to request the user to disconnect the equipment Users should ensure for their own protection that the electrical ground connections of the power utility telephone lines and internal metallic water pipe s...

Страница 34: ......

Страница 35: ...or updating firmware vocabulary and configuration This is a common USB cable used with USB connected printers and scanners B 3 COM320 Driver Installation If this is the first time a COM320 has been plugged into your computer it will be necessary to install the drivers to enable communication with the COM320 1 Remove the cover of the COM320 to access the USB port see Appendix B 1 Removing the Cover...

Страница 36: ...OM320 has been plugged into your computer you may need to install the device driver for the COM320 See Appendix B 3 COM320 Driver Installation p B 1 for device driver installation 4 Run Device Configuration Utility ver 1 12 or newer 5 Select COM320 from the Device Configuration Utility menu and select the Send OS tab at the top FIGURE B 1 6 Once the device drivers have been successfully loaded you...

Страница 37: ... applying power on the green 12Vand G terminals on the device or plugging the modem into the CS I O port of a datalogger 3 Connect the COM320 USB port to one of the USB ports on your computer and wait for the computer operating system to load its device drivers If this is the first time a COM320 has been plugged into your computer you may need to install the device driver for the COM320 See Append...

Страница 38: ...Configuring the COM320 B 4 FIGURE B 2 Device Configuration Utility Screen 7 Click on the Connect button to connect to the COM320 and enter the settings editor FIGURE B 3 FIGURE B 3 Device Configuration Utility Settings Editor ...

Страница 39: ...CS I O port from a datalogger or the 12 volt and ground terminals 3 Launch the Device Configuration Utility and select device type Unknown the correct PC serial port connected to the COM320 a baud rate of 9600 and press the connect button 4 By pressing the V key you should see a list of words scroll by in the Device Configuration Utility terminal window If you want to save this list to a file sele...

Страница 40: ...Appendix B Updating and Configuring the COM320 B 6 ...

Страница 41: ...The COM320 modem connects to the datalogger using an SC12 cable connected to the datalogger s CS I O port The COM320 s connector configuration is shown in FIGURE C 1 TABLE C 1 shows the I O pin configuration and gives a brief description of the function of each pin CS I O FIGURE C 1 COM320 s Male 9 Pin Connector NOTE ...

Страница 42: ...the telecommunications mode 4 RXD O Receive Data Serial data transmitted by the modem are transmitted on pin 4 5 ME I Modem Enable A logic high internally switches power to the modem A logic low internally powers down the modem 6 SDE I Synchronous Device Enable A logic high disables communication with the modem without removing power or changing the modem s mode 8 TE I 12 Vdc power supply 9 TXD I ...

Страница 43: ...HILL CHILLER CHLORIDE CHLORINE CLOSED CODE COMPUTED CONDITIONS CONDUCTIVITY CONTACT CORRECTED CREEK CROSSING CUBIC CURRENT CYCLES D D O DAM DATA DATALOGGER DAY DAYS DEGREES DELTA DEPTH DEVIATION DEW DING DIRECTION DISCHARGE DISCONNECT DISTRICT DIVERSION DOCK DOOR DOWN DRAW DURING E E T O E08 S EAST EASTERN EFFLUENT EIGHT EIGHTEEN EIGHTY ELECTRON ELEVATION ELEVEN EMPTIED ENGINE ENTER EPROM EQUAL ER...

Страница 44: ...URY MESSAGE METER METERS MICRO MID MID MOUNTAIN MIDNIGHT MILES MILLI MILLION MINIMUM MINUS MINUTE MINUTES MODEM MOISTURE MONDAY MONITOR MONTH MOUNT MOUNTAIN MULTIPLIER N N T U NAN NEEDS NETWORK NEW NEXT NINE NINETEEN NINETY NITRATE NITROGEN NO NOON NORTH NOT NUMBER O OF OFF OFFSET OK ON ONE OPEN OR OUT OVERFLOW OVERRUNS OZONE P P H P M P S I PACIFIC PARAMETER PARTS PAST PEAK PENDING PER PERCENT PH...

Страница 45: ...R SOUTH SPEED SPILL SQUARED STAGE STANDARD STAR STATES STATION STATUS STORM STREAM STREAMBED SUMMIT SUMP SUNBURN SUNDAY SURFACE SURFACTANCE SYSTEM T TABLE TAIL TANK TEMPERATURE TEN TESTING THANK THAT THE THERE THIRTEEN THIRTY THIS THOUSAND THREE THRESHOLD THRU THURSDAY TIME TING TO TODAY TODAYS TOGGLE TOTAL TRIGGERED TUESDAY TURBIDITY TWELVE TWENTY TWO U ULTRAVIOLET UNITS UP V V O C VALUE VELOCITY...

Страница 46: ...Appendix D COM320 Word List D 4 ...

Страница 47: ......

Страница 48: ...Rua Apinagés nbr 2018 Perdizes CEP 01258 00 São Paulo SP BRASIL www campbellsci com br vendas campbellsci com br Campbell Scientific Canada Corp 14532 131 Avenue NW Edmonton AB T5L 4X4 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A 300 N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc info campbellsci cc Campbell Sci...

Отзывы: