home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
oct93
/
comm
/
4d-bbsdemo.lha
/
4D-BBSDemo
/
Docs
/
12.Modem
< prev
next >
Wrap
Text File
|
1993-07-02
|
5KB
|
145 lines
Chapter 12:
Modem Setup
12.1.0 Overview
4D-BBS can operate with a wied variety of modems, and has two
different interaction modes. The first is an "auto" mode where
4D-BBS will try and figure out what the modem is saying. The other
mode is where the sysop sets up a datafile to define the different
return codes of the modem. Since "auto" mode is easier to setup,
it is the preferred way to setup 4D-BBS.
12.2.0 Auto mode
To enable auto mode, you need to set it in the cfg_ed program.
select option "M8" is the easiest way to do this. Once this is
selected, there is a couple of other paramaters that need to be
looked at in the cfg_ed program.
When your modem returns a "connect" string, 4D-BBS needs to know
what the actual first part of that string is. For most modems this
will be "CONNECT". If your modem does not return "CONNECT" when a
connection is made, you need to select M9 and enter what your modem
does return.
If you have a error correcting modem, you can set MR to define
a search string to look for to figure out if the connect is using
error correction or or. The default is "ARQ".
Lastly, if you have a modem which can recieve both fax and data
calls, you can set MF to this response string. When a fax is
detected, the script "BBS:FaxCmd" will be executing, allowing you to
use another program to take over the serial port. 4D-BBS will not
monitor the serial port while the other program is running.
12.2.1 Modem Configurations
To set your modem up for Auto mode, you need to set the follow
characteristics:
Modem Does NOT echo commands (ATE0)
Modem returns VERBOSE result commands (ATV1)
Modem returns CARRIER rate on CONNECT Varies with modem
Modem reports Carrier detect properly AT&C1
12.2.2 Popular High Speed Modem Configurations
For a ZyXEL line of modems, you should use the following string
to setup the modem, and store the settings in non-volatile memory.
The init string in cfg_ed should be set to something similar to
"|~ATZ|~".
AT&FE0X7&W<RETURN>
For Supra 14.4k and 9600 baud modems, use the following string to
setup the modem, and store the settings in non-volatile memory.
The init string in cfg_ed should be set to something similar to
"|~ATZ|~".
AT&F@E0S95=47&W<RETURN>
12.2.3 Locking the Serial Port
For any high speed modem which has data compression you will need to
use a faster serial-to-modem rate that modem-to-modem rate, in order
to allow for compression. For 4D-BBS the /b CLP handles this.
However this presents another problem. What is a 200 baud user calls
a system which has a locked serial baud rate of 38400? Unless hand
shaking is used to control the flow of data (flow control) the high
speed modem will overrun the the buffer, caused the 2400 baud user to
loose information.
The most common way aroun this is to use "handshaking".
Handshaking is a way for two devices to tell each when its OK to send
information, and when its not. The most common form of Handshaking
used in High speed modems is RTS/CTS. 4D-BBS will default this on
whenever a /b paramater is given. User's who call your BBS need to
also be aware that they need to have their RTS/CTS enabled for their
side, also.
12.2.4 Non-High speed modem
With a non-high speed modem, the BBS will change baud rates with
the modem as a call comes in. The most common type of this modem is
the Supra 2400 baud modem. To setup a modem of this type (inlcluding
Hayes Compaibles) use the following string:
AT&FE0X4&C1&D2&W
to save the settings in non-voltile memory. If your modem does not
have non-volatile memory, you will need to put a string smilar to the
one below in the modem init parameter for 4D-BBS:
"|~ATE0X4&C1&D2|~"
The basic setup requirements are for no echo, extended return codes,
and carrier is reported properly.
12.4.0 Misc Modem Settings
There is many modem settings thats are independant of the type of
answer system you use. Below is a description of each of them.
12.4.1 Hangin up
4D-BBS offers two different methods of hanging up the modem. The
first is to use the Hayes sequence of "+++,,,ATH". This works well on
most modems that do not support DTR. However this is also considered
less reliable than DTR.
You modem monitors the DTR pin which comes from the computer.
You can configure your modem to react in many different ways when the
DTR pin goes from high to low. Normally the AT&D controls these
settings. I setting of &D1 or &D2 should work fine with 4D-BBS.
If you would like 4D-BBS to use the first method to hang up the phone,
then for the M5 option, say no. If you would like the BBS to drop dtr
to hangup, then say yes.
12.4.2 Initialization String
When configuring your modem init string you can put in several
different characters to help you. They are as follows:
~ - 2 sec pause
| - Return character
^ - Drop DTR for two secs
The following is an example of using these:
"|~ATZ|~ATE0|~"
This would enter a return, wait 2 seconds, send ATZ and a return, wait
for two seconds, then send ATE0 and return, and finally wait 2
seconds.