T V S 7 0 1 / 7 0 2 O P E R A T I O N ____________________ _________________ [Programming Instructions] (Version 09) September 2, 1987 This manual describes how to initialize and control the TVS701 repeater controller. Examples are given following the initial instructions. DTMF tones are required to communicate with the controller. One source of programming on the bench is to connect the speaker output of an auto-patch capable handheld to the audio input and adjust the levels as described in the installation instructions. In normal remote operation, the audio input is connected to the speaker terminals of a control receiver, or to a telephone line. The device has several control modes. The initial programming mode is used to enter the maintenance mode password into the system, and to initialize any other parameters: The initial programming mode is enabled by a jumper. When the jumper is not installed, the maintenance mode password cannot be set, thus protecting remote sites from inadvertent changes. The maintenance programming mode is entered using the maintenance password. It allows all parameters to be set other than the maintenance password. It also allows the control password to be set. The normal control mode sets repeater parameters and modes. It is accessed by the normal control password sequence. If enabled by a maintenance mode option, this mode can change operating parameters. Otherwise it can only affect operational status: on/off, timers, controlled outputs, and alarms. The user control mode, if enabled, allows non- priviledged users to query certain system status information, to control digital output number 3, and to request temporary access to the link. Any control mode may be exited by entering "*" at the function level. A function may be aborted after the first digit is entered by entering "*" or "#". In order to enter the initial parameters of the system, the program mode jumper (designated PRG, adjacent to U6) must be inserted across the pins. The following control sequence should then be entered, regardless of whatever sounds may be coming from the uninitialized system: "###42123". This will cause the system to initialize the EEPROM with default values. Some of these values will be later changed to customize the installation. Before this step, the behavior of the processor will be unpredictable. The ID will be random, the timers will be random, and the response tones may or may not be present. The initial parameter set function takes about 30 seconds, and will key PTT once a second while it is operating. In order to enter the maintenance mode password (master password), the program mode jumper (designated PRG) must be inserted across its pins. At this point, sending "###" (via DTMF) will enter the initial program mode. The system will respond "READY" . The EEPROM Entry Mode function ("88") should then be entered to allow modification of the EEPROM. The "Set Maintenance Password" function ("49") should then be entered. The system will respond with "GO" . The maintenance password should then be entered using the following decimal entry procedure: The password may be from 1 to 8 digits in length. Each digit is entered as the binary number corresponding to the DTMF digit, as follows: "0" = 000, "1" = 001, "2" = 002, etc, "A" = 013, "B" = 014, "C" = 015, "D" = 010. Pound and Asterisk may not be used in the password. Note: The last digit of the password must have the code value plus 128. Thus, if the last digit is "4", it should be entered as "132". When the last digit has been entered, the system will respond with "READY". You may then leave the initial programming mode by entering "*". Maintenance mode is entered by entering (in DTMF) the sequence: "##*", followed by the password you have entered. While in the maintenance mode, all other functions may also be used. It is recommended that when the initial parameters have been set, PRG should be opened. The jumper should be stored by placing it over one pin only. This will avoid inadvertently leaving the system vulnerable to remote programming by those without the password. To enter Normal Control Mode, one sends "#" followed by the correct control password. A reply of "READY" means entry was successful, while no response is given for failure. To enter Maintenance Control Mode, one sends "##*" followed by the maintenance control password. When entering any control mode, the access codes must be entered within 10 seconds or the attempt will time out and "Control Time Out" ("CTO") will be heard. Control sequences are then entered as two digit codes. Any control sequence which alters EEPROM parameters cannot be entered until the system is in the EEPROM Entry Mode. This is accomplished with function "88". There is a timer for control functions. The timer expires a set time after the last digit of a control sequence has been entered. Like most timers in the system, this timer can be programmed - in this case by function 43. When it times out, "CTO" is heard, and the system leaves control mode. Any control mode can be turned off manually with "*". A function can be cancelled after the first digit by "#". User Control Mode is entered by "##" followed by the one or two digit site ID. This allows users to access telemetry and a few other functions. This mode may be disabled by a command entered from password protected control modes. All functions requiring decimal entry require the following procedure: Enter the function code; The system responds "GO"; Enter 3 digits of decimal; The system will again prompt "GO"; Enter 3 more; Keep it up until the last digit has been entered; If a value greater than 127 was entered, the system will treat it as the last digit and exit this mode; otherwise, the last digit must be followed by "*". [Not recommended] WARNING: If too many digits are entered for a function requiring multiple digits (passwords, ID, etc.), other parameters may be inadvertently altered! In this case, they should be repaired by using appropriate programming commands. C O N T R O L E X A M P L E S The examples show the various methods of controlling the system. Following the examples is a detailed description of each control function. To enter a Maintenance Password of "123": "###" ==> READY (With programming jumper in) "88" ==> READY (Set EEPROM Change Mode) "49" ==> GO (Set Maintenance Password) "001" ==> GO (Set "1") "002" ==> GO (Set "2") "131" ==> READY (Set "3" as last: 3 + 128 = 131) (Remove programming jumper) To enter a Control Password of "456", and to allow normal control mode to change parameters: "##*123"==> READY (Enter Maintenance Control Mode) "88" ==> READY (Set EEPROM Change Mode) "30" ==> GO (Set Control Password) "004" ==> GO (Set "4") "005" ==> GO (Set "5") "134" ==> READY (Set "6" as last: 6 + 128 = 134) "47" ==> READY (Enable normal mode to change parms) To enter an ID of "DE AB" from normal control mode if enabled: "#456"==> READY (Enter Normal Control Mode) "88" ==> READY (Set EEPROM Change Mode) "31" ==> GO (Set ID) "068" ==> GO (Set "D" - see below) "069" ==> GO (Set "E") "032" ==> GO (Set space"); "064" ==> GO (Set "A") "193" ==> READY (Set "B" as last) Now to enter a reset timer of one half second: "24" ==> GO (Set Reset Timer Function) "005" ==> READY (5 x 100 Milliseconds) To exit Normal Control Mode: "*" ==> "Done" (Exit Control Mode) C O N T R O L C O D E S The following notes apply to control codes: [1] - May be used in user control mode [2] - Always available in normal control mode [3] - Optionally available in normal control mode [4] - Only available in maintenance mode [5] - Only available if programming jumper is present {-} - Default Value (Set up by Function 42) "00" - [2] Reset Processor (This tests the watchdog timer). "01" - [2] {ON} Enable Repeater. "02" - [2] Disable Repeater. "03" - [2] {OFF} Enable Link Access. "04" - [2] Disable Link Access. "05" - [2] {ON} Enable Timer. "06" - [2] Disable Timer. "07" - [3] {ON} Enable Reset Beep. "08" - [3] Disable Reset Beep. "09" - [3] {0} Set Response Time. This is the interval between when the last digit of a control sequence is entered until the controller gives its morse code response. The value is entered in 100 millisecond units. Thus, "002" sets a .2 second delay. "10" - [2] {CLEAR} Set Output Zero (CPU Pin 25, Collector PP). "11" - [2] Clear Output Zero. "12" - [2] {CLEAR} Set Output One (Disables Channel Guard) "13" - [2] Clear Output One. (Enables Channel Guard) "14" - [3] Send "Voice" test signal - end with "*". "15" - [3] Send "Tone" test signal - end with "*". "16" - [3] {000} Set Analog Alarm Low Threshold. If analog input #3 drops below this value, the analog alarm will be triggered. The value is in digitizer counts with a minimum of 000 corresponding to zero volts, and a maximum of 255 corresponding to the maximum value for that converter. For example, to set a mimimum value of three volts when the converter is scaled for a maximum of five volts (see function 41), one would enter the value (3/5)*255 which is 153. After this is set, any time the voltage falls below 3 volts, the alarm will be triggered, and will remain triggered until reset by function 24. A value of 000 here will prevent the low-alarm from triggering. "17" - [3] {255} Set Analog Alarm High Threshold. If the analog input number 3 voltage rises above this value, the analog alarm is set. The value is calculated using the method described above for function 16. A value of 255 here will prevent the high-alarm from triggering. "18" - [3] {ON} Allow reset beep to change after an alarm. "19" - [3] Disallow reset beep change after alarm. "20" - [2] {DISABLE} Enable Alarm Zero. If the alarm 0 pin changes state, Alarm Zero will sound. The COR Reset Beep will change to the site ID number (unless disabled by function 19) until the alarm is reset (function 24). "21" - [2] Disable Alarm Zero. "22" - [2] {DISABLE} Enable Alarm One. If alarm pin 1 changes state, Alarm One will sound. The COR Reset beep will change to the Site ID number - see "20", above. "23" - [2] Disable Alarm One. "24" - [2] Reset Alarms. This will cause the reset beeps to return to normal, and will arm the alarms so that they will again fire on the next alarm condition. "25" - [3] {CLEAR} Set Base/Repeat mode. Keying "link COR" causes "Remote PTT", without "tail" or courtesy beep. "26" - [3] Clear Base/Repeat mode. Keying "link COR" causes "Repeat PTT", with tail and low-pitched courtesy beep. This mode is for linked repeater applications. "28" - [2] {ENABLED} Enable User Mode. User Control Mode is allowed. "29" - [2] Disable User Control Mode. "30" - [4] {1,2,3,4} Set Control Password. Max length is 8 digits. See examples on p.4. "31" - [3] {DE TVS702} Set ID in EEPROM. The ID is stored by entering the decimal equivalent of the ASCII codes for the characters. The last character must have 128 added to the code. Max length is 64 char. See examples & table of codes. "32" - [3] {12} Set Site ID for User Control Mode. The one or two digit "site ID" number is entered just as for passwords, etc., with the last digit having 128 added to it. So, for site ID of "13", enter "001", then "131". This will allow users limited access to the system by entering "##13". "33" - [3] {8} Set Reset Timer. This is the interval between COR going away and the resetting of the timeout timer. The reset beep (if enabled) occurs at that time. The COR Reset Timer value is entered in 100 millisecond units. Thus "008" sets a .8 second timer. "34" - [3] {8} Set Tail Timer. This is the time that the repeater stays keyed after the reset timer is reset. 100 millisecond units. "35" - [3] {18} Set Time-out Timer. If COR is present for too long and the timers are enabled, the controller will sound "TO" and then deactivate PTT. This function sets the time until that time-out. 10 second units. "36" - [3] {5} Set Morse Code Dit Time. This sets the speed of the morse code identifier. The units are 10 milliseconds. A setting of "005" will correspond to about 20 WPM. "37", "38" & "39" - Not Used. "40" - [3] Set Tones. All tones made by the controller can be varied in frequency. See below for complete details. "41" - [3] {2,2,2,2} Set A/D multiplier factors. This function sets the voltage scale to be read at the A/D ports. Select and input A/D channel 0 thru 3: "000" selects channel 0, "001" channel 1, etc. Then select an input voltage scale to be used: "000" = 0-5V, "001" = 0-10V, "002" = 0-15V, "003" = 0- 20V, "004" = 0-25V and "005" = 0-35V. "006" will give raw A/D counts (0000 - 2550). See installation instructions. "42" - [5] Initialize the EEPROM to defaults (See above). "43" - [3] {60} Set Control Timeout. This is the number of 10 second units that the system will remain in a control mode after the last control has been entered. "44" - Not Used. "45" - [3] {009} Set ID interval. Number of minutes between ID's. Note that the "polite" ID feature will wait up to 1 minute for COR to drop; to insure an interval of not greater than 10 minutes, 9 would be the correct setting. "46" - Not used. "47" - [4] {ENABLED} Allow functions flagged with a [3] to be used in normal control mode. "48" - [4] Don't allow functions flagged with a [3] to be used in normal control mode. "49" - [5] {1234} Set Maintenance Password. Max length 8 digits. "50" - [1] Read A/D Channel 0 "51" - [1] Read A/D Channel 1 "52" - [1] Read A/D Channel 2 "53" - [1] Read A/D Channel 3 "54" - [1] Read A/D Channel 0 from last time PTT was off. "55" - [1] Read A/D Channel 1 from last time PTT was off. "56" - [1] Read A/D Channel 2 from last time PTT was off. "57" - [1] Read A/D Channel 3 from last time PTT was off. "58" - [1] Read A/D Calibration. "59" - [3] {61} Set temporary link access timer. This function is used to control user access to the link via functions 71 and 72. If the value is zero, the link cannot be brought up from user mode. A value from 1 through 254 will allow the link to be brought up from user mode, but it will time out a set time after it is last used. The time out is the value entered multiplied by 10 seconds. Thus, an entry of 30 will be 300 seconds or 5 minutes. A value of 255 will allow the link to be brought up from user mode, and it will stay up until it is commanded down. "60" - [1] Send ID. "61" - [1] Output the PROM Checksum. "62" - [1] Output the Software Version. (Vxx) "63" - [1] Read Input Zero. (HI or LO) "64" - [1] Read Input One. (HI or LO) "65" - [1] Read Alarm Zero. (HI or LO) "66" - [1] Read Alarm One. (HI or LO) "67" - "70" - Not Used. "71" - [1] Request temporary access to the link. See function 59 for a description of the facility allowing user mode access to the link. "72" - [1] Disconnect link access which was established by function 71. "73" - [1] {CLEAR} Set output 3. "74" - [1] Clear output 3. M O R E E X A M P L E S _______ _______________ Setting A to D Multipliers: "#456" ==> READY (Set Normal Control Mode) "88" ==> READY (Set Entry Mode) "41" ==> GO (Set A/D Multiplier Factors) "000" ==> GO (Select A/D Channel 0) "003" ==> READY (Set 0-20V Range) "88" ==> READY (Set Entry Mode) "41" ==> GO (Set A/D Multiplier Factors) "001" ==> GO (Select A/D Channel 1) "003" ==> READY (Set 0-15V Range) A/D Voltage readings can be obtained in either normal control mode or user control mode (if enabled). The system will respond with four digits corresponding to the voltage read: "#456" ==> READY (Enter Normal Control Mode) "50" ==> 1234 (Channel Zero voltage [scaled] is 12.34V) Users who do not have control access may use this function in user control mode (if enabled) as follows: "##01" ==> READY (Enter User Control Mode [Site ID = 01]) "50" ==> 0456 (Channel zero has 4.56V present [scaled]) The same method is used to read the status of the alarms and inputs (functions 63 through 66). System response will be either "HI" or "LO". TONE SETTING PROCEDURE Set Tone Frequency: The tone of all beeps, messages and ID made by the controller can be independently changed as follows: "#456" ==> READY - Enter Normal Control Mode. "88" ==> READY - Set EEPROM Change Mode. "40" ==> GO - Set Tones. "023" ==> GO - Change Tone 23. (The ID) "164" ==> READY - Tone Value. Tone value may be any number from 0 through 255. All entries require 3 digits (16 would be entered as 016). The most pure tones are 016, 032, 064, and 128. Other numbers will provide a wide variety of unusual tones (for example, try setting the reset beep to "240"). The Message Designations are: 002 - E (Beep with link and timer active) 003 - I (Beep with no link but timer active) 004 - E (Beep with link but no timer) 005 - I (Beep with no link and no timer) 021 - T (Reset Beep after Transmission from the Link) 023 - [The ID] A S C I I C O D E S /-047 A-065 L-076 W-087 0-048 B-066 M-077 X-088 1-049 C-067 N-078 Y-089 2-050 D-068 O-079 Z-090 3-051 E-069 P-080 4-052 F-070 Q-081 5-053 G-071 R-082 .-046 (period) 6-054 H-072 S-083 --045 (hyphen) 7-055 I-073 T-084 -032 (space) 8-056 J-074 U-085 /-047 (slant bar) 9-057 K-075 V-086