Power cycle the modem and connect to it with the command minicom -o console. Press Enter a few times. The modem should now be running at the same bit rate used by Minicom, which we set to the speed of the serial console in Section 12.1.
You can check the port speed by asking the modem to generate some output.
Figure 12-2. Testing the modem's port speed
bash# minicom -o console Welcome to minicom Press CTRL-A Z for help on special keys Enter Enter Enter ATI Enter 56k V.90 Series 3 External V2.20 Ctrl-A Q Leave without reset? Yes |
The modem will answer an incoming call on the second ring using the command ATS0=2.
Data Carrier Detect should follow the presence or absence of a calling modem.
An Hayes AT-style modem usually outputs a message when a call is received. For example:
The modem has a ‘quiet mode’ that disables these messages.
The AT command is ATQ1. There will be no OK printed in response to this command.
If this command is accidentally given see Section 12.3.12 to reset the modem to its factory default parameters and start again.
Figure 12-3. Configure modem using AT commands
bash# minicom -o console Welcome to minicom Press CTRL-A Z for help on special keys AT &F Enter OK AT Z Enter OK AT &C1 &D2 &K3 S0=2 M0 Enter OK AT E0 Q1 S2=255 &W Enter Alt-A Q Leave without reset? Yes |
Now issue the following commands to restore the modem's factory configuration.
Figure 12-4. Resetting a Hayes AT-style modem
bash# minicom -o console Welcome to minicom Press CTRL-A Z for help on special keys AT &F &Y0 &W &W1 Enter OK AT Z Enter OK Alt-A Q Leave without reset? Yes |