home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
phon22.zip
/
INSTRUCT.ION
< prev
next >
Wrap
Text File
|
1994-12-26
|
9KB
|
146 lines
Contents of phon22.zip
instruct.ion (this file)
phone22.scr (replacement for phone.scr)
disconct.19 (replacement for disconct.scr -- disconnect with report)
>>WARNING Save your existing scripts before overwriting them. <<
Use these scripts at your own risk. Testing cannot include every possible modem
and configuration. Read instructions carefully. If you don't understand
procedures given here do NOT attempt to use these scripts!!
These scripts are based on the v3.5 scripts in the newscr.exe file (an official
CS upload) available in the CSSCRIPTS area. If you are not sure if you're using
these scripts change to the directory containing your scripts and open
phone.scr in any plain text editor. All scripts from newscr.exe are v3.5 or
later and phone.scr has not been changed since this version. If you are not
using these scripts I strongly suggest you download them and install them
before using the scripts included here. Some older versions of disconct.scr
actually hang up by calling the hang up section of phone.scr!!! Therefore it is
mandatory that these versions be upgraded.
Phone22.scr:
This is a replacement for phone.scr which shows bps rate at connection. In
order for it to work the response "CONNECT nnnn" >MUST< be received from your
modem (where nnnn = bps number or nothing if 300). This script does NOT look
for the connect message in modem settings. "CONNECT" must appear to log on. If
the word "CONNECT" is on the connect message line in modem settings then these
scripts should work but the following test will assure success. To test your
modem's response choose Terminal Emulation -> Manual Connect. Enter your reset
such as AT&F press enter. Response should be OK Enter your init. string
without ^M such as AT&F&C1&D2 press enter. Again OK Dial your phone number
ATDTnnnnnnn press enter. Use the actual strings from your modem and session
settings. After modems connect you should get connect response "CONNECT nnnn".
You may hang up now. Additional lines are all right but the "CONNECT" must
appear. If it does you may use this script. If you have multiple session
settings, init. strings and bps rates (ini files) you should try this for each.
In addition if the primary conection is repeatedly busy this script will try
the alternate connection after the specified number of retries rather than
failing as some CS phone.scr's do.
Information reported:
If modem response is a single line "CONNECT nnnn" script will show
"Connected at xxxx bps" where xxxx is 300, 1200, 2400, 4800, 7200, 9600, 12000
or 14400. For 19200 and 38400 script will report DTE. Other bps rates will be
reported as 300 or unknown. If your modem appends the word ARQ or REL (often
enabled by a \V1, \V2, &A1, &A2, &A3 command or adding 2 to your S95 command
depending on your modem model - see your modem docs for your command) on the
connect message for connections with a protocol then "w/ error control" will
be appended to the bps rate message. Except for 19200 & 38400 the script
assumes a single line response shows DCE (modem to modem rate). You may need
to add a W2 command to your init to assure the single line response shows DCE.
If your modem supports a multiple line response enabled usually by a
setting of the S95 register or the W1 command then the script will search for
the CARRIER line. If the carrier rate is 2400, 4800, 9600 or 14400 then the
script will report this as "nnnn bps DCE". If the carrier rate is different or
the line is not present then the script defaults to searching for the CONNECT
line. After finding one of these carrier lines the script will then search for
the line PROTOCOL: and if the protocol response is V.42, LAP-M, LAPM, MNP or
ALT it will add the protocol to the report as LAP-M or MNP. The script will
then search for the COMPRESSION: line and if it finds V.42BIS, MNP5 or CLASS 5
it will add V.42bis or MNP5 to the report. Finally the script searches for the
CONNECT line and adds the bps rate found here to the report as the DTE. If any
of these lines is missing the script immediately goes to search for the connect
message. So if there is no protocol the script won't search for compression.
The report for an oldstyle 9600 only CS node could be
"9600 bps DCE LAP-M V.42bis 19.2kb DTE".
It is advisable to set your S95 register so that the connect line reports DTE
which may require even numbers. S95=44 will be the setting that enables the
full report for many modems. The following S95 settings should result in
accurate reports: S95=1, 3, 4, 6, 12, 14, 44 & 46. S95=1 or 3 have the least
chance for error but also return the least information; generally S95=44 or 46
will be the preferred setting if you connect w/ a modem to modem rate of 2400,
4800, 9600 or 14400 bps.
Installing phone22.scr:
First save your existing phone.scr. This is crucial! Change to the directory
containing your scripts and copy phone.scr phone.sav or any way you wish. Copy
phone22.scr into your script directory. Then copy phone22.scr phone.scr CIM
looks for phone.scr only so you must make phone22.scr phone.scr. When you
connect to CS the connect message will appear in the CIM window right after
"Dialing nnn" assuming you connect. If you fail to connect repeatedly you can
restore your old phone.scr by copy phone.sav phone.scr.
Disconct.19:
This script uses escape and hang up commands from your modem settings. If
the modem responds with the connect failure string from modem settings at any
time the script is running then the message "No Carrier" appears in the CIM
window. No carrier will cause your modem to hang up the line. If the modem
responds with the acknowledge string from your modem settings to the escape
code then the message "Modem Received Escape Code: OK" will appear in the CIM
window. If the modem responds with the acknowledge string to the hang up
command then the message "Modem Responds OK to Hangup" will appear. Since the
v3.5 disconct.scr uses a very rapid method to assure that the node has received
the BYE and then exits the script you'll usually only get a brief appearance of
"Wait..." in the message window before the process is complete. However if you
select cancel while connecting or Control+D to leave TE while not online then
the reports on the process will be displayed.
Disconct.19 adds a new variable to allow you to easily change the hangup
procedure if your modem has problems disconnecting. The 1st actual line of
disconct.19 is
OldOff = 0;
OldOff = 0 tells cim to follow the normal v3.5 hangup procedure. OldOff accepts
values of 0, 1 or 2. 1 sets it to use the older procedure of actually hanging
up your modem after sending the bye and 2 hangs up at the Host Name: prompt
without sending the bye. 2 is only needed in extreme cases where the modem
locks during the disconnect procedure. 1 should solve almost all disconnect
problems. If you change the OldOff value be sure to maintain the semi-colon at
the end of the line.
Installing disconct.19:
Procedure is similar to that for phone22.scr. First SAVE your existing
disconct.scr: Copy disconct.scr disconct.sav
Then install disconct.19: copy disconct.19 disconct.scr
To restore your old script: copy disconct.sav disconct.scr
Tweaking:
Feel free to alter scripts. Remember punctuation DOES matter. Most
punctuation marks have a definite meaning to CIM. Capitalizing may be stored
for names or definitions so be consistent. CIM will parse the script and will
report errors and line numbers and then safely fail the procedure being
attempted if errors exist. See the file script.doc available in the DosCim
Support Forum library for further information.
To have phone22.scr report your modem init string delete the ! at the start
of line 127 in the section >Modem_OK:<. You may wish to increase the wait in
line 128 to 20 if you choose this so you have time to read your init string.
To have connect message stay on screen longer in phone22.scr go to section
>Modem_Success:< (line 369) and change the number "15" to whatever you wish.
This setting is in 1/10 of a second and I suggest a maximum of 25 and that you
increase by 5 at a time.
To have No Carrier message stay on screen longer in disconct.scr version
go to section >Got_Nocarr:< (line 166) and increase the number "10" to
whatever you wish.
To have Modem Received Hangup message stay on screen longer in disconct.scr
version go to section >Hangok_Almost:< (line 161) and change the number "10"
to whatever you wish.
Send questions, comments, suggestions and complaints to
Mike Tannenbaum 75110,2037 by CS mail only.
If your modem response is not found by this script I'd be glad to attempt
to add it. Follow the test procedure for manual connect and before sending any
commands to the modem turn logging on. You can then copy the appropriate
lines into your mail from terminal.log and add their meaning.