COM310 Voice Communications Modem Revision: 11/11 CAMPBELL SCIENTIFIC INC COM310 VOICE . SYNTHESIZ Complies ER with Ringer Equ Part 68, FCC rules. ivalence 0.5A FCC Registra .Required tion No. B9Q This equipm Connector USA-31402-M USOC RJ1 M-T computing ent complies with 1C. dev the ice.
Warranty “PRODUCTS MANUFACTURED BY CAMPBELL SCIENTIFIC, INC. are warranted by Campbell Scientific, Inc. (“Campbell”) to be free from defects in materials and workmanship under normal use and service for twelve (12) months from date of shipment unless otherwise specified in the corresponding Campbell product manual. Batteries, fine-wire thermocouples, desiccant, and other consumables have no warranty.
Assistance Products may not be returned without prior authorization. The following contact information is for US and international customers residing in countries served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs for customers within their territories. Please visit www.campbellsci.com to determine which Campbell Scientific company serves your country. To obtain a Returned Materials Authorization (RMA), contact CAMPBELL SCIENTIFIC, INC., phone (435) 227-2342.
COM310 Table of Contents PDF viewers: These page numbers refer to the printed version of this document. Use the PDF reader bookmarks tab for links to specific sections. 1. Introduction..................................................................1 2. Specifications ..............................................................2 3. Quick Start....................................................................2 4. System Components .................................................11 4.1 COM310 Modem....
COM310 Table of Contents 7. Troubleshooting COM310 Voice Systems ...............27 7.1 No Communications .............................................................................. 27 7.2 Communications Problems .................................................................... 28 Appendices A. Theory of Operation ................................................ A-1 B. FCC Warning to Users of Class A Computing Devices................................................................ B-1 C.
COM310 Voice Communications Modem 1. Introduction The COM310 is a voice-synthesizer modem that supports the PakBus and mixed-array dataloggers that have voice capability (see Section 4.3). The COM310 allows them to announce by telephone the data stored in variables or input locations, the status of control ports, and the status of user flags. Included is the ability to toggle datalogger ports and flags.
COM310 Voice Communications Modem 2. Specifications • • • • • • • • • • • • • • • Bell 212A, CCITT V.21, and V.32BIS compatible Full duplex at 9600 and 1200 baud to datalogger V.
COM310 Voice Communications Modem Unlike the CR10X, CR510 and CR23X where voice code is appended to a finished measurement program using LoggerTalk software, the CR1000 voice code is created along with the measurement program using the CRBasic editor. It is recommended you finish and debug the voice portion of your program first, and then add the measurement code.
COM310 Voice Communications Modem Step 3 – Send BASIC_VOICE_2.CR1 to CR1000 1) Download BASIC_VOICE_2.CR1 from CSI web site under Support, Downloads, Program Examples to a folder on your hard drive. 2) From LoggerNet Toolbar run CRBasic editor and open BASIC_VOICE_2.CR1. 3) Change PHONE1 (a constant in SlowSequence near bottom of program) to your office phone number to be used for callback and Save and Compile the change. 4) You can change PHONE2, etc.
COM310 Voice Communications Modem Pressing the # key you should hear: C R ONE THOUSAND STATION PRESS ONE TO HEAR A SENSOR VALUE PRESS TWO TO HEAR OR TOGGLE PORT PRESS THREE TO HEAR OR TOGGLE FLAG PRESS STAR TO DISCONNECT 3) Navigate around in the menus to learn the program’s capabilities: a) Press 2 to access the Ports Menu b) Press 1 to read the logic state of Control Port 1 c) Press # to toggle the logic state of Control Port 1 (C1’s LED should turn on).
COM310 Voice Communications Modem ' CR1000 ' BASIC_VOICE_2.CR1 ' Send VOICE.TXT to CR1000 before sending this program. ' Program employs VoiceSetup instruction available in OS CR1000.Std.12 and later ' 1st phone number is called if Diff 7 TC temperature > 85F ‘ Program continues to call callback phone number list until someone answers and presses # key ‘ resetting alarm. ' Callback phone numbers are in constants in the SlowSequence at the bottom of the program.
COM310 Voice Communications Modem ' ***** Subroutines ***** ' Called when calling in: Sub CallInVoice Do VoiceSpeak ("CURRENT STATION DATA 50MS 50MS", 0) VoiceSpeak ("PRESS ONE TO HEAR THE BATTERY VOLTAGE 50MS", 0) VoiceSpeak ("PRESS TWO TO HEAR THE DATALOGGER TEMPERATURE 50MS", 0) VoiceSpeak ("PRESS THREE TO HEAR THE T C TEMPERATURE 50MS", 0) VoiceSpeak ("PRESS STAR TO DISCONNECT", 0) Select Case VoiceKey(keytimeout) Case 1 VoiceSpeak ("THE BATTERY VOLTAGE IS" + Value(1) + "VOLTS", 1) Case 2 VoiceSpeak ("
COM310 Voice Communications Modem ' Monitors a value Sub SubKey1 Do VoiceSpeak ("50MS PRESS SENSOR NUMBER 50MS PRESS STAR TO RETURN", 0) mykey = VoiceKey (KeyTimeout) If mykey = 1 Then VoiceSpeak ("50MS THE BATTERY VOLTAGE IS" + Value(1) + "VOLTS", 1) If (mykey = 2) Then VoiceSpeak ("50MS THE REFERENCE IS" + Value(2) + "DEGREES", 1) If (mykey = 3) Then VoiceSpeak ("50MS THE T C IS" + Value(3) + "DEGREES", 1) Loop ' Sensor value loop EndSub ' Read a port and possibly toggle Sub SubKey2 Do ' Until * or timeo
COM310 Voice Communications Modem 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 Scan (1,
COM310 Voice Communications Modem ElseIf (TCvalue_F > 85 AND ArmAlarm) OR ManualAlarm = TRUE Then ManualAlarm = False Alarm = TRUE' Do For i = 1 To NUMPHONES ' Call these numbers until the alarm is cleared If Alarm Then DialVoice(phones(i)) ' Calls only if alarm is set Next i If Alarm Then Delay(1,1,min) Loop Until Alarm = FALSE ArmAlarm = False EndIf Loop EndProg Example Program Description Basic_Voice_2.cr1 has five main sections: 1. VoiceSetup( ) - handles auto-disconnect. 2.
COM310 Voice Communications Modem Voice Beg / EndVoice The VoiceBeg / EndVoice instruction pair enclose the code that is executed when the datalogger detects a ring from its voice modem (at call in). CallInVoice Subroutine This subroutine contains the code pointed to by VoiceBeg / EndVoice that is to execute after a call in occurs.
COM310 Voice Communications Modem 4.2 Surge Suppressor If the phone company does not provide surge protection at the datalogger site, you will need to install some. CSI offers surge protectors in two forms. Item # 6362 is a surge protector with environmental enclosure mounting hardware. Item # 4330 is the surge protector with no mounting hardware (see Section 6.6). 4.3 Voice Capable Dataloggers There are several Campbell Scientific dataloggers that are capable of voice communications.
COM310 Voice Communications Modem NOTE 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. 5. Datalogger Voice Programming The voice code for the CR1000 and other voice capable CRBasic dataloggers is integrated with the main program.
COM310 Voice Communications Modem 5.1.1.2 Voice Callback The COM310 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.
COM310 Voice Communications Modem The VoiceSpeak code might look like this: TC_1 = Public.AirTemp(1,1) VoiceSpeak ("THE AIR TEMPERATURE WAS" + TC_1 + "DEGREES", 0) 5.2 Native PakBus Dataloggers The CR1000 and other voice capable CRBasic dataloggers can be programmed to provide the features available in the Edlog dataloggers, and most any other feature you can imagine. The Quick Start example voice callback/callin program “BASIC_VOICE_2.
COM310 Voice Communications Modem announced menu; however, the user can respond by pressing a key in the middle of an announcement. If doing concurrent communications (via multiple communication peripherals) with your datalogger it is recommended that the VoiceKey timeout be extended to over 5 seconds. VoiceSetup’s UseTimeout parameter determines whether or not the datalogger will hang up the COM310 after the timeout in the VoiceKey instruction expires. 5.2.1.
COM310 Voice Communications Modem The CallOut parameter is a Boolean value that indicates the COM310 mode. When the value returned in this parameter is True the datalogger has called out. When the value is False the datalogger has received an incoming call. If the same ASCII character is used for HangUpKey and ExitSubKey, the datalogger will exit a subroutine if it is in one, otherwise, it will hang up the COM310.
COM310 Voice Communications Modem DataTable (TestB,1,1000) DataInterval (0,0,Sec,10) Sample (1,PTemp,IEEE4) Sample (1,TCvalue_F,IEEE4) Average (1,TCvalue_F,IEEE4,False) Sample (1,batt_volt,FP2) Sample (1,DialSuccess,FP2) Sample (1,Result,FP2) EndTable DialSequence (4094) DialSuccess = DialModem (Com310, 9600,"1112223333","") 'Phone number to call EndDialSequence (DialSuccess) BeginProg Scan (30,Sec,0,0) PanelTemp (PTemp,250) Battery (Batt_volt) dummy = 0 TCDiff (TCvalue_F,1,mV2_5C,7,TypeT,PTemp,True ,0,250
COM310 Voice Communications Modem 5.2.2.1 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 packets to a PakBus datalogger.
COM310 Voice Communications Modem tutorial is a more advanced tutorial for setting up voice callback. Example program files are included for use in the tutorials. If you’ve had little experience in creating/editing datalogger programs in Edlog, we suggest that you begin with Quick Start (Section 3) and the basic LoggerTalk tutorial, referring to the Help system with any questions you might have. For a guide to interpreting the voice codes that LoggerTalk appends to a *.
COM310 Voice Communications Modem 5.3.6 Voice Callback LoggerTalk can program a voice callback when associated with a *.dld file that includes a P97 with Parameter 1 = “31” for mixed-array dataloggers or “39” for PakBus dataloggers (see Section 5.1.1.2). LoggerTalk allows you to input multiple phone numbers to increase the probability that the alarm message will get through. If the first phone is not ‘picked up’ then the second number is dialed.
COM310 Voice Communications Modem In LoggerNet a comma represents a 1 second delay. You may need to adjust the number of commas so that the “9” occurs during the voice announcement, depending upon the length of time required to establish the connection with the modem. For information on creating an Edlog datalogger program and downloading it to the COM310 station, refer to the Basic Tutorial in LoggerTalk help. 6. Hardware Installation 6.
COM310 Voice Communications Modem FIGURE 3. COM310 / CR1000 Using Surge Protection Device (where there’s no available Standard RJ11 Connection) 6.2 Powering the COM310 Modem Newer Campbell Scientific dataloggers provide 12 VDC on CS I/O connector pin 8 for powering peripherals such as the COM310. The alternative, if you have a dataloggers/wiring panel lacking 12 VDC on pin 8, is to wire the green connector on the side of the COM310 to the datalogger +12 VDC and power ground terminals (refer to Figure 4).
COM310 Voice Communications Modem 6.3 Grounding the COM310 System Connect the green 14 AWG grounding wire (provided with the COM310) to the GND terminal on the COM310 and to the station enclosure’s earth ground connection. It is important that you connect the COM310 and datalogger directly to a high quality earth ground. Read the datalogger manual section on GROUNDING for details on creating such an earth ground.
COM310 Voice Communications Modem 6.4 Telephone Service Telephone companies occasionally make changes in their equipment, operations, or procedures. If you have any questions about your telephone line, such as how many pieces of equipment you can connect to it, the telephone company should be able to furnish this information upon request.
COM310 Voice Communications Modem Figures 5 and 6 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. Getting wires crossed typically does not damage anything. The phone line just will not work until the wires are straightened out. CAUTION Phone wires are live, typically with low voltage (24 Vdc).
COM310 Voice Communications Modem FIGURE 6. Side View of Surge Suppressor Wiring 7. Troubleshooting COM310 Voice Systems Following are some possible reasons for your COM310 system not working or not working properly. 7.1 No Communications Voice Mode — No voice announcements when you call the station 1) The COM310 not getting 12V power due to an older datalogger/wiring panel that does not provide 12V on CS I/O pin 8. 2) The COM310 is connected to a digital rather than an analog phone line.
COM310 Voice Communications Modem 6) LoggerNet Setup configured for the wrong PC modem. 7) LoggerNet configured for a baud rate the station cannot handle (try 9600). 8) COM310 configuration was changed from its default factory settings (see Appendix D). 7.2 Communications Problems Voice Mode 1) Can’t get beyond the initial voice announcement a) Security mode is enabled (Edlog datalogger). b) Commercial mode is enabled (Edlog datalogger). c) Datalogger is running a *.
Appendix A. Theory of Operation The COM310 modem is used to transmit data over bandwidth-limited channels such as telephone lines by modulating audio tones, using Phase Shift Keying (PSK) at 9600 or 1200 baud and Frequency Shift Keying (FSK) at 300 baud. The COM310 has four connectors: 1. 2. 3. 4. RJ11 – telephone line Orange Tip, Ring, GND – alternate telephone line and EARTH GROUND CS I/O – datalogger serial comms and 12 VDC power if more recent wiring panel (see Section 6.
This is a blank page.
Appendix B. FCC Warning to Users of Class A Computing Devices WARNING This equipment generates, uses, and can radiate radio frequency energy, and if not installed and used in accordance with the instruction manual, may cause interference to radio communications.
This is a blank page.
Appendix C. IC Information NOTE Industry Canada (IC) was formerly known as DOC. CP-01, Issue 8, Part I Section 14.1 “NOTICE: The Industry Canada label identifies certified equipment. This certification means that the equipment meets certain telecommunications network protective, operational and safety requirements as prescribed in the appropriate Terminal Equipment Technical Requirements document(s). The Department does not guarantee the equipment will operate to the user’s satisfaction.
This is a blank page.
Appendix D. Set Rings, AT Parameters D.1 Set Number of COM310 Rings before Answer To program the number of rings before the COM310 answers, use the datalogger’s *D3 setting. Changing the COM310’s ATS0 setting (as with the COM210) will not change the number of rings before answer. *D3 setup for the CR10X, CR23X, or CR510: (1) (2) (3) (4) Key in *D3A Key in 1, 2, or 3 according to desired number of rings Press A Key in *0 to compile D.
Appendix D. Set Rings, AT Parameters (3) Step 3 (a) Dial the phone number (b) Wait until “Connected” appears at lower-left on screen. You will hear some tones as a modem connection is established. (c) After connection HyperTerminal should display: ATA (d) Wait until you see the “>” prompt (e) Type a couple of s until you see “+++” (f) HyperTerminal should then display: OK ATO CONNECT 9600 > (g) At the “>” prompt you can type AT commands to the Connexant chipset in your COM310. See CAUTION.
Appendix E. CS I/O 9 Pin Serial Port NOTE The COM310’s CS I/O port is not a standard RS-232 connection. Pin Description The COM310 modem connects to the datalogger using an SC12 cable connected to the datalogger’s CS I/O port. The COM310’s connector configuration is shown in Figure E-1. Table E-1 shows the I/O pin configuration, and gives a brief description of the function of each pin. CS I/O FIGURE E-1.
Appendix E. CS I/O 9 Pin Serial Port TABLE E-1. Pin Description ABR = Abbreviation for the function name. E-2 PIN = Pin number. O = Signal Out of the datalogger to a peripheral. I = Signal Into the datalogger from a peripheral. PIN ABR I/O Description 1 5V I 2 SG 3 RING O Ring: Raised by the modem to put the datalogger in the telecommunications mode. 4 RXD O Receive Data: Serial data transmitted by the modem are transmitted on pin 4.
Appendix F. Reading Voice Code in a *.DLD File When a CR10X, CR23X, or CR510 file is edited and saved in LoggerTalk, the information for voice communications is appended to the *.DLD file. This information can be verified for accuracy. An example of some typical voice code is shown below. The numbers between the "smiley faces" (☺) and the "&" symbols are the numbers associated with the words used from the word list. The ☺ symbol is equivalent to control code A (^A).
Appendix F. Reading Voice Code in a *.DLD File The above code translates to: Input Locations Ports Flags (four decimal places) Campbell Scientific Datalogger Program (pause) (pause) (pause) "Datalogger Internal Temperature" is (input location 3) Degrees Fahrenheit. (four decimal places) Datalogger Battery Voltage is (input location 1) Volts. F.
Appendix F. Reading Voice Code in a *.DLD File F.3 Modem Security Enabled NOTE LoggerTalk’s Modem Security Code is unrelated to the Datalogger’s *C mode passwords. Refer to the datalogger operator’s manual for more information on the datalogger’s *C mode. This last example uses the modem security code "1234" to allow access to the second level menu. Notice the characters following the "?" at the beginning of the character stream.
Appendix F. Reading Voice Code in a *.DLD File This is a blank page.
Appendix G. COM310 Word List G.1 COM310 Word List - Numerical Order 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46.
Appendix G. COM310 Word List 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 151. 152. 153. 154. 155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167. 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181. 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. 194.
Appendix G. COM310 Word List 303. 304. 305. 306. 307. 308. 309. 310. 311. 312. 313. 314. 315. 316. 317. 318. 319. 320. 321. 322. 323. 324. 325. 326. 327. 328. 329. 330. 331. 332. 333. 334. 335. 336. 337. 338. 339. 340. 341. 342. 343. 344. 345. 346.
Appendix G. COM310 Word List 59. 209. 93. 210. 94. 211. 95. 212. 213. 96. 97. 98. 214. 215. 216. 217. 218. 219. 220. 221. 222. 223. 224. 66. 225. 226. 227. 99. 228. 73. 229. 88. 230. 100. 231. 101. 232. 233. 102. 234. 235. 236. 103. 62. 104. 237. 238. 239. 105. 106. 240. 241. 114. 107.
Appendix G. COM310 Word List 85. 299. 300. 301. 44. 136. 77. 302. 303. 304. 137. 305. 138. 306. 139. 307. 308. 309. 57. 310. 50. 311. 312. 313. 141. 78. 314. 35. 142. 72. 143. 144. 145. 315. 316. 317. 146. 147. 30. 148. 67. 149. 318. 319. 150. 320. 43. 151. 321. 322. 152. 323. 154.
Appendix G. COM310 Word List 75. 380. 178. 6. 16. 24. 381. 382. 179. 383. 180. 181. 384. 385. 182. 386. 183. 184. 185. 37. 387. 186. 48. 187. 388. 389. 390. 391. 392. 393. 394. 395. 396. 81. 397. 86. 10. 398. 399. 400. 40. 13. 21. 401. 29. 3. 402. 54. 403. 188. 404. 405. 406. 407.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com • info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za • cleroux@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 444 Thuringowa Central QLD 4812 AUSTRALIA www.campbellsci.com.au • info@campbellsci.com.au Campbell Scientific do Brazil Ltda.