This procedure is used to initialize a Cardinal 9600 bpd V.42BIS Modem. The first procedure is for enabling the modem for dialin, and the second is to set the modem up for dial out. There are not many differences, but they are important.

Enabling a modem for dialin under CDOS:
The following commands(less their comments) need to be sent to the modem. The easiest way to do this would be to set the port as an AUX port and use ADUMB to initialize the modem. Set handshaking to none for this exercise. Don't forget to use the AUX command with the correct AUX port the modem is connected to. COM1 is AUX0, COM2 is AUX1, and the first Addon Port is AUX2. You should see an OK after hitting return for each command as an indicator that the modem understood the command.
AT&F         (Reset the modem to its factory defaults)
ATQ2         (Result codes on dialout only)
ATY1          (Enable Long Space Disconnect)
ATS0=1     (Answer on first ring)
AT&C1       (DCD tracks carrier)
AT&D3       (when DTR drops, drop carrier and reset modem with ATZ)
AT%E1      (Enable AutoTrain)
AT\T15       (set inactivity timer to 15 Minutes)
AT&Y0       (Select configuration 0 as default)
ATE0          (Turn off command echoing. After this, you will no longer see anything echoed back)
AT&W0      (Store current settings in Configuration 0)

Once you have configured the modem don't forget to enable RTS and CTS handshaking for the port, as that is what we set the modem up for.

Configuring a modem for dialout using CCITERM:
The following commands(less their comments) need to be sent to the modem. The easiest way to do this would be to set the port as an AUX port and use ADUMB to initialize the modem. Set handshaking to none for this exercise. Don't forget to use the AUX command with the correct AUX port the modem is connected to. COM1 is AUX0, COM2 is AUX1, and the first Addon Port is AUX2. You should see an OK after hitting return for each command as an indicator that the modem understood the command.
AT&F (Reset the modem to it's factory defaults)
ATE1 (Turn on command echoing)
ATQ2 (Result codes on dialout only)
ATY1 (Enable Long Space Disconnect)
ATS0=0 (Do not answer phone)
AT&C1 (DCD tracks carrier)
AT&D3 (when DTR drops, drop carrier and reset modem with ATZ)
AT%E1 (Enable AutoTrain)
AT\T15 (set inactivity timer to 15 Minutes)
AT&Y0 (Select configuration 0 as default)
AT&W0 (Store current settings in Configuration 0)

Once you have configured the modem don't forget to enable RTS and CTS handshaking for the port, as that is what we set the modem up for.