home *** CD-ROM | disk | FTP | other *** search
- NAME
- rc85prg - program an RC-85 repeater controller.
-
- SYNOPSIS
- rc85prg [options] prgfile
-
- DESCRIPTION
- RC85PRG will, using a Hayes-compatible modem with a PC running
- MS-DOS, dial up an A.C.C. RC-85 controller and program it. The modem
- is capable of sending digits 0 through 9, * and #. RC85PRG has been
- compiled with default sequences for the owner unlock code, the control
- operator code, the user autodialer programming codes, and the controller
- phone number. Each of these sequences can be redefined by command-line
- options. The input file contains the programming commands. If not
- specified on the command line, stdin is used. Hence pipes (|) or
- redirection (<) may be used to provide programming commands. The
- MBBIOS interrupt-driven I/O package by AA4RE must be loaded prior
- to invoking RC85PRG. Contact your local packet BBS sysop if you need
- help in obtaining AA4RE's excellent package.
-
-
- OPTIONS
- If RC85PRG is invoked improperly, it will display a usage
- summary, and indicate the current value of all settable options.
- Options include:
-
- -v enable verbose mode.
- -t enable test mode (simulate operation).
- -u indicate autodialer is kept unlocked.
- -w N wait N secs after dialing the RC85, to permit
- the phone answer message to finish.
- -p N pause N secs after each command, to permit the
- response message to finish.
- -m COMn:baud,8N1 select a modem port and parameters. Any COM
- port supported by MBBIOS is permitted.
- -d phonenumber override the default phone number of the con-
- troller. Include any exchange access and pause
- for dialtone characters in this string.
- -o owner_code override the default owner unlock code.
- -c ctrlop_code override the default control op code.
- -2 code override the default 2-digit slot programming
- code.
- -3 code override the default 3-digit slot programming
- code.
-
- PRGFILE FORMAT
- This file is an ASCII file containing one command per line.
- Comments may be placed anywhere, and are indicated by a '#' and
- continue to the end of the line. Although a '#' can be used in
- control sequences sent via radio, the '#' must be used to terminate a
- programming sequence sent via the telephone. Hence its use as a
- comment delimiter is not ambiguous. Commands consist of two characters
- beginning in column 2. Case is not significant. Commands are:
-
- CU unlock the controller lock, to permit
- message programming (for example).
-
- CL lock the controller (after a CU command).
-
- CS string send <string> to the controller. Permits an
- arbitrary RC85 command to be issued. <string>
- should contain only one controller command.
-
- CO string send the control-operator prefix followed by
- <string> to the controller. <string> should
- contain only one controller command.
-
- S n s p program the autodialer slot number <n>, identified
- by string <s>, to dial the phone number <p>.
- string <s> may be used to record the callsign
- or any other text; no spaces are permitted, and
- this information is otherwise ignored. The S
- command is equivalent to a sequence of CS commands
- to enter unlocked mode (if slots 0 through 9 are
- selected), to unlock the autodialer (if needed, see
- -u), to clear the current slot contents, and
- to program a new phone number. If the slot number
- <n> is negative, the slot is programmed to speak
- the number being dialed.
-
- MP program the previously-sent message. Equivalent
- to CS *0.
-
- MR readback the message being programmed. Equivalent
- to CS *2.
-
- MA abort the message being programmed. Equivalent
- to CS *4.
-
- EXAMPLE PRGFILE
- # Program phone numbers into three slots
- S3 Fire 268-5501
- S4 LPSO 232-9211
- S11 N5KNX 555-1234
- # Program emergency msgs
- cu
- cs *1113 #slot 3 = Fire
- cs *634
- mp
- cs *1114 #slot 4 = LPSO
- cs 53 71 73 63
- mp
- cl
- co 75 #Select stardust courtesy tone
-
-
- THEORY OF OPERATION
- Rc85prg first validates its command-line arguments, then dials the
- RC85 controller. It waits (see -w) a while for the dialing and rc85
- greeting message to complete. Rc85prg will then read the input file
- looking for programming commands. Each line of the input file
- constitutes one command. Each command is sent to the RC85 (suffixed
- automatically by the required # tone) and then the program pauses (see
- -p) for the spoken acknowlegement.
-
- Commands should be given in the proper sequence, that is,
- unlocked-mode commands should not be mixed with control-operator commands.
- Autodialer slot programming does not require explicit unlocking;
- the RC85 is unlocked automatically if slots 0 through 9 are selected.
- After end-of-file is encountered, the appropriate lock and hangup commands
- are sent to the RC85, and then the modem is told to hang up the phone line.
-
-
- EXAMPLE
- rc85prg -o 1989082344 -c 654 -d 121,9,5551212 setimers.r85
- dials 555-1212 and programs the controller from the file
- named setimers.r85.
-
- grep ^S11 autodial.r85 | rc85prg -o 1989082344 -c 654 -d 121,9,5551212
- uses the grep program to find the line beginning with S11
- in the file named autodial.r85, and provides this line to
- rc85prg for programming.
-
-
- AUTHOR
- James Dugal, N5KNX @ W5DDL (packet) jpd@usl.edu (Internet)
- P.O. Box 44844, Lafayette, LA 70504
-