Modem
capabilities files
(Modem.inf)
The Trakian
programs when using a modem have a file describing the modem's capabilities.
This file
is <Modem.inf>
It must
resides in the directory "Mundial"
The initial file describe the capabilities of a Hayes 2400 Smartmodem,
the base of all modern modems.
Most modems
are (or pretend to be) compatible with this modem.
You can define your own description file. This is a simple text file.
The format of this file must be conform to the examples given: one line
describe each capability.
The 4 first lines are limited to 80 characters per line.
Follows 3 lines of 20 characters maximum describing the initial baudrate
(of the modem, not to confuse with the COM port baudrate!), and lines
describing if the protocol must be locked or if the modem may use handshaking
protocol.
Again, handshaking for the modem, not seen by the Trakian himself. Trakian
uses also handshaking but this one is done by software. So, if responding
Y for the modem handshaking, this shall be used by both modems of a
link, the handshaking bytes being removed from the flow of datas!
To create
a new modem.inf file, you can search in the database one for your modem
or copy this part of the examples, modify them and create a complete
modem.inf file.
To note
that it can be required to have many files for different connections.
Normally modems shall 'discuss' to find a common agreement. But some
modems does this very badly. Than it can be required to define yourself
the capabilities and to not allow to change them.
For example this can be required for some links you use. Because the
modems can decide to use one fast baudrate because when 'discussing'
the line is good. But if the line is not, it can be that later the baudrate
becomes too fast for the quality of the line resulting in that Zmodem
shall need to retransmit many times some parts of the transfers.
In this case it can be a good idea to limit the initial baudrate and
lock it. (if possible for YOUR modem)
All of
this result in that maybe you need to have many 'INF' files for your
modem.
A future release shall permit to the user to change on the fly the modem
capabilities database.
A inf.
file consist of:
Hayes
Compatible.............................name. The name of this database.....What
you want!
AT &F &C1 &D2............................initialization string. What
is required to initialize your modem
NO CARRIER\0ERROR\0NO DIALTONE\0BUSY\0NO ANSWER\0\0...........fail strings.
What the modem respond when failing
xxxx.....................................compression_strings. When used
xxxx.....................................protocol strings. when used
2400.....................................initial baudrate
Y/N......................................baudrate is locked Y/N
Y/N......................................modem handshaking Y/N
To note
that the fail strings can be many. But any must contain an EXACT match
of a possible response, spaces included.
And between the many responses possible must exist a '\' + '0'!!! This
is a separator indicating to the programs that a string is complete
and that a next shall follow.
You can see that the 'fail strings' finish by a dubble '\0\0'. It MUST
EXIST. And the same method must be used for the protocols strings (can
be also manies) and for the compression strings.
Baud rate
and handshaking MUST be a Y ot N! You can add anything you want! But
the FIRST character of these lines MUST be a 'Y' or a 'N'. To note that
anything but 'Y' will say NO.
Name: You
can for example put there the name of a particular connection, for example
'Chuck' to describe that this is the parameters used for YOUR modem
to connect to 'Chuck'. On a future release it shall help you to find
which parameters to use for some connections.
The lines
must exist in this order and the same count. If not used you MAY insert
an empty line. But any line MUST EXIST
All lines must start IMMEDIATELY, with no space(s) included before.
|