Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Modem in Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to configure Modem in Linux, I believe most people do not know how, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

Modem configuration process

For Modem configuration process, we now generally use kppp for dialing, using this program the whole dialing process will become very simple. So this article won't cover manual dialing using pppd and chat. This article only describes how to set up basic device driver modules and configuration of underlying device files. After configuring these files, you can dial using kppp.

1. external Modem

When configuring an external Modem, since most modems are connected to the computer through serial ports, you must insert the serial driver module serial.o before configuring the Modem. After successfully plugging in the serial communication module, just connect the device/dev/modem to the corresponding serial device. For example, if Modem is connected to/dev/ttyS0 (corresponding to COM1 under Windows), the connection is established:

ln -sf /dev/ttyS0 /dev/modem

After that, the external serial modem will work properly. You can detect and configure how the modem works by sending AT commands to the serial port using minicom. Frequently used commands:

AT Command Command Description

ATDT (ATDP) Dial using voice (pulse)

ATZ Reset Modem

ATH hangs up the phone

ATI0 returns the status of the modem

ATI1 performs ROM checksum check and returns value

ATI2 verifies ROM check and returns OK or ERROR

ATI3 returns the software version number of the ROM part.

ATI4 queries modem status information, including baud rate, parity bit length, word length, dialing mode, register status and other information.

ATI5 queries the modem's RAM for status information.

ATI6 queries the modem for link status information, including the number of characters transmitted (received, lost), the number of blocks transmitted, link connection status, *** time to dial, etc.

ATI7 obtains the configuration preamble file, which describes the information including: the communication protocol supported by the modem, the Fax version number, and the EPROM version number.

ATI8 Get Connect Time

ATI9 Get the descriptive name of the modem

For example, for a Lenovo external Modem, after starting minicom, enter ATI9 and the return value is:

(1.0AKY1010ModemAKY101056K DATA FAX VOICE MODEM)FF

2. Built-in Linmodem

Linmodem is a Linux implementation of winmodem. Further information about Linmodem can be found at www. linmodems. org. The current Linmodem is generally PCI type, and you can also obtain device description information through PCI detection process. After obtaining the description information, you can compare whether your Modem belongs to one of the Modem types listed below. Linmodems now supported include:

* Conexant/Rockwell HSF

Its drivers are available at http://www. olitec. com/pci56kv2. html or http://linmodems. org.

* Ambient Technology (formerly Cirrus Logic)

Drivers are available at http://linmodems.org/CLModem-0.3.0.tar.gz.

* Lucent LT

http://linmodems.org/linux568.zip

* PCTel

Binary drivers for PCI, AMR, and Zoltrix Phantom types: http://www.kcdata.com/<$gromitkc/winmodem. html #drivers.

* ESS

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

ISA: ftp://ftp.esstech.com/pub/modem/isa/unsupported/56v-i/linux/kernel61/linux111.zip。

PCI: ftp://ftp.esstech.com/pub/modem/pci/unsupported/56t-pi/linux/Kernel61/111.zip。

* 3Com Mini-PCI

No drivers available.

In order to be consistent with the programming interface of external modems to some extent, Linmodem generally generates a simulated serial device. To generate these device files, you can generally use the command mknod.

* Lucent LT:

mknod /dev/ttyS14 c 62 78

* PCTel:

mknod /dev/ttyS15 c 62 79

* Esscom:

mknod /dev/esscom c 127 1。esscom The user wants to connect/dev/ttyS14 to/dev/esscom so that ppp dialers that recognize only ttyS* can work properly.

chgrp uucp /dev/ttyS14

chmod 666 /dev/ttyS14

Non-root users may be allowed to dial using this service.

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, and you can also set/etc/serial.conf to set the working parameters of the serial port.

setserial -agv /dev/ttyS*

The above is "Linux Modem how to configure" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report