Narrow-band/phone-line Dialup Modems
A standard modem of today contains two functional parts: an analog section for generating the signals and operating the phone, and a digital section for setup and control. In modern modems, this functionality is often incorporated into a single chip. In operation, the modem can be in one of two modes. In Data mode, data is sent to and from the computer over the phone lines, and in command mode, the modem executes commands from the computer. A typical session consists of powering up the modem (often inside the computer itself) which automatically assumes command mode, then sending it the command for dialing a number. After the connection is established to the remote modem, the modem automatically goes into data mode, and the user can send and receive data. When the user is finished, the escape sequence, "+++" followed by a pause of about a second, may be sent to the modem to return it to command mode, then a command to hang up the phone is sent. Note that on many modem controllers it is possible to issue commands to disable the escape sequence so that it is not possible for data being exchanged to trigger the mode change inadvertently.
The commands themselves are typically from the Hayes command set, although that term is somewhat misleading. The original Hayes commands were useful for 300 bit/s operation only, and then extended for their 1,200 bit/s modems. Faster speeds required new commands, leading to a proliferation of command sets in the early 1990s. Things became considerably more standardized in the second half of the 1990s, when most modems were built from one of a very small number of chipsets. It is called the Hayes command set even today, although it has three or four times the numbers of commands as the actual standard.
Read more about this topic: Modem