Modem configuration for Linux Device Configuration

Source: Internet
Author: User

LinuxThe configuration process of a device is to use this information to configure the driver and working method of the device after detecting the device type and current working parameters of the device, for device detection process, see how to implement automatic hardware detection in Linux). To complete such a task, you need to do the following:

First, a detailed device information file is required, which describes the device ID, the device driver corresponding to the device ID, and the device configuration parameter device options) detailed descriptions of device settings, device configuration methods, aliases of devices, and the number of the primary devices.

The second is to set the configuration script file corresponding to the device according to the device type and the configuration script files of the same device for different linux versions installed.
 

Modem configuration process

For the Modem configuration process, we usually use kppp for dialing now, and the entire dialing process using this program will become very simple. Therefore, this article will not introduce the Manual dialing process using pppd and chat. This article only describes how to configure the basic device driver module and the underlying device file. After these files are configured, you can use kppp to dial.

1. external Modem

When configuring an external Modem, because most of the Modem is connected to the computer through the serial port, you must insert the serial port driver module serial. o before configuring the Modem. After the serial communication module is successfully inserted, you only need to connect the device/dev/modem to the corresponding serial device. For example, if a Modem is connected to/dev/ttyS0 corresponding to COM1 in Windows, a connection is established:

Ln-sf/dev/ttyS0/dev/modem

After that, the external serial port modem can work normally. You can use minicom to send the AT command to the serial port to detect and configure the working method of the modem. Frequently Used commands:

AT command description

ATDTATDP) dialing using voice pulses

ATZ reset Modem

ATH suspends the call

ATI0 returns the modem status

ATI1 executes ROM checksum and returns the value.

ATI2 verifies ROM verification and returns OK or ERROR

ATI3 returns the software version number of the ROM part.

ATI4 queries the status information of the modem, including the baud rate, parity bit length, word length, dialing method, and register status.

ATI5 queries the status information in the modem's ram.

ATI6 queries the modem's link status information, including the number of characters that have been received or lost, the number of transmitted data blocks, the link connection status, and the last dialing time.

ATI7 obtains the configuration's preface file. The information described in this file includes the communication protocols supported by modem, the Fax version number, and the EPROM version number.

ATI8 get connection time

ATI9 get the modem description name

For example, for an external Modem of Lenovo shoot sculpture, after minicom is started, the return value of ATI9 is:

(1.0AKY1010ModemAKY101056K data fax voice modem) FF

2. built-in Linmodem

Linmodem is a linux implementation of winmodem. For more information about Linmodem, visit www.linmodems.org. Currently, Linmodem is usually of the PCI type. You can obtain the device description through the PCI detection process. After obtaining the description, you can compare whether your Modem belongs to the Modem type listed below. Currently, the following Linmodem types are supported:

* Conexant/Rockwell HSF

Its driver is at http://www.olitec.com/pci56kv2.htmlor http://linmodems.org.

* Ambient Technology (formerly Cirrus Logic)

The driver is available at http://linmodems.org/clmodem-0.3.0.tar.gz.

* Lucent LT

Http://linmodems.org/linux568.zip

* PCTel

PCI, AMR, and Zoltrix Phantom binary drivers: http://www.kcdata.com /~ Gromitkc/winmodem.html # drivers.

* ESS

Binary drivers for ES56T-PI (PCI) and ES56V-I (ISA:

ISA: Role.

PCI: Disabled.

* 3Com Mini-PCI

No driver is available.

To be consistent with the programming interface of an external modem, Linmodem generally generates a simulated serial port device. To generate these device files, run the mknod command.

* Lucent LT:

Mknod/dev/ttyS14 c 62 78

* PCTel:

Mknod/dev/ttyS15 c 62 79

* Esscom:

Mknode/dev/esscom c 127 1. The esscom user wants to connect/dev/ttyS14 to/dev/esscom so that the ppp dialup program that only recognizes ttyS * can be used normally.

Chgrp uucp/dev/ttyS14

Chmod 666/dev/ttyS14

Allow non-root users to use this service for dialing.

Ln-s/dev/devicefile/dev/modem

You can also use setserial to modify the serial port configuration, such as setting the baud rate of the serial port, or set the working parameters of the serial port in/etc/serial. conf.

Setserial-agv/dev/ttyS *

After reading the above, you can configure the Modem in Linux, hoping to help you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.