>> >>2) about the MODEM_INIT string in /etc/diald/connect.
>
>> You are correct about the variance from one modem to
>> another. In some cases, modems (including one I am
>> using) do not accept anything on the AT line after
>> ATZ -- this might be why the Z was removed.
>>
>neither does mine, an USRobotics Sportster 28800 faxmodem.
>I tried MODEM_INIT="ATX3" and it works !
>thanks :))
>but now ... ahemm ...
>how do I fix the "chat timeout" horror message ?
>
Correct me if I am wrong (I do not have any modem manual in front of me...).
The ATZ command is initialize your modem to a stored configuration.
Normally, you use a communication program (such as minicom), and issue a
bunch ot AT commands to set the modem to a proper configuation, such as the
speaker volume, usage of XON/XOFF, hardware or software flow control,
connect speed, dialing speed, etc..
After the modem is at the configuration you desire, you issue another
command to store the profile in the memory of the modem: this memory does
not disappear when the modem is turned off. You usually can store a few
settings that way.
Now, when you want to use your modem, you issue a command to retrieve the
configuration: ATZ (or ATZ1). If you want to retrieve the second
configuration, you can issue an ATZ2 command (I think).
Now, if you are not using ATZ, you just take the modem in the state it was
left the last time it was used. You can issue commands to reset it to the
proper status for your application (such as disabling software flow
control, for example).
Every modem has a factory default: you can figure out what is the factory
default of your modem, and determine which commands should be sent to
modify the factory default to your specific application. I do not remember
the command for loading the factory default (it may varie from one modem to
the other).
So, if your modem is able to use ATZ, you can use it: open minicom, set the
modem to the proper state, and save it to memory (modem memory), and use
ATZ in diald.
The other option is to issue a command to have the factory default, and
commands to modify the factory default to your personnal taste (the factory
defaulkt is never too far from there: most of the time you change a few
things, such as the flow control, and XON/XOFF). All of these can be put
in a single line (it should).
Look at the PPP-HOWTO, there is an indication of what you need (here is an
extract):
_________________________________
9.3. Configuring your modem
You will need to configure your modem correctly for PPP - to do this
READ YOUR MODEM MANUAL! Most modems come with a factory default
setting that selects the options required for PPP. The minimum
configuration specifies:-
- Hardware flow control (RTS/CTS) (&K3 on many Hayes modems)
Other settings (in standard Hayes commands) you should investigate
are:-
- E1 Command/usr/src/linux-2.0.27/include/linux/serial.h Echo ON
(required for chat to operate)
- Q0 Report result codes (required for chat to operate)
- S0=0 Auto Answer OFF (unless you want your modem to answer the
phone)
- &C1 Carrier Detect ON only after connect
- &S0 Data Set Ready (DSR) always ON
- (depends) Data Terminal Ready
There is a site offering modem setups for a growing variety of modem
makes and models at Modem setup information
<http://www.in.net/info/modems/index.html> which may assist you in
this.
_________________________________
I hope that this will help you.
________________________________________________________________
| |
| Jean-Michel Lacroix, Ph.D., HIV Project Manager |
| Visible Genetics Inc. http://www.visgen.com _________ |
| 700 Bay Street, Suite 1000 | | |
| Toronto, Ontario M5G 1Z6 CANADA | /| |
| Tel: (416) 813-3240 ext: 4883 --- / | |
| Fax: (416) 813-3250 | \ / | |
| | / | |
| E-Mail: [EMAIL PROTECTED] |__/____| |
| Home page: http://home.ican.net/~lacroix |
|______________________________________________________________|
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]