TApxModem.ConfigAndOpen

TApxModem

procedure ConfigAndOpen;

Configures the modem and provides access to the modem without a connection.

The ConfigAndOpen method configures the modem according to the configuration settings retrieved from modemcap. Once the modem has been configured, the OnModemConnect event is generated.

ConfigAndOpen is used primarily to configure the modem to a known state where it can be used without a connection. For example, you can use ConfigAndOpen to provide terminal access to a modem for diagnostics.

While the modem is being configured, several TApxDataPackets will be initialized to capture the responses from the modem. Once the modem has been configured, the TApxDataPackets will be removed, providing no further notification of the state of the modem.

Note that ConfigAndOpen establishes a connection to the port, not through the modem to another device.

See also: AutoAnswer, CancelCall, Dial, OnModemConnect