Article title: set up a GPRS wireless Modem dialing method in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. connect the wireless Modem to the serial port 1 (/dev/ttyS0) of the PC.
2. first use minicom (we strongly recommend that you create a new Terminal in the linux graphical user interface and then run minicom) to set the speed to 57600, 8N1, and Hardware Flow Control.
3. run AT to check whether OK is returned. If no result is returned, it indicates that there is a problem with the serial port setting or the serial port speed setting of Saro Modem;
4. enter AT + CSQ? Check the signal quality. if the result is similar to + CSQ: (the number before the comma is 12 ~ Between 31) is normal.
5. enter AT + CGDCONT = 1, "IP", and "cmnet" to check whether OK is returned. the purpose of this command is to set the Apn (access name ). If your Apn is another value, replace the cmnet value accordingly. For example, if your Apn is gdyd. yl, enter AT + CGDCONT = 1, "IP", and "gdyd. yl ";
6. enter ATDT * 99 *** 1 # to check whether CONNECT is returned. under normal circumstances, CONNECT should be returned, and some data should appear later;
7. exit the minicom software.
8. run wvdialconf/etc/wvdial. conf. you can see that the system automatically searches for the modem and installs the Modem on ttyS0 at a rate of 57600, as shown in:
[Root @ test ppp] # wvdialconf/etc/wvdial. conf
Scanning your serial ports for a modem.
TtyS0 <* 1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
TtyS0 <* 1>: ATQ0 V1 E1 -- failed with 4800 baud, next try: 9600 baud
TtyS0 <* 1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 19200 baud
TtyS0 <* 1>: ATQ0 V1 E1 -- failed with 19200 baud, next try: 57600 baud
TtyS0 <* 1>: ATQ0 V1 E1 -- OK
TtyS0 <* 1>: ATQ0 V1 E1 Z -- OK
TtyS0 <* 1>: ATQ0 V1 E1 S0 = 0 -- OK
TtyS0 <* 1>: ATQ0 V1 E1 S0 = 0 & C1 -- OK
TtyS0 <* 1>: ATQ0 V1 E1 S0 = 0 & C1 & D2 -- OK
TtyS0 <* 1>: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0 -- OK
TtyS0 <* 1>: Modem Identifier: ATI? Siemens Mc35 Gprs Modem
TtyS0 <* 1>: Max speed is 57600; that shoshould be safe.
TtyS0 <* 1>: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0 -- OK
Found a modem on/dev/ttyS0.
Modem configuration written to/etc/wvdial. conf.
TtyS0: speed57600; init "ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0" |
If the result is different from the preceding one, try multiple times. The system will always find the Modem.
[1] [2] Next page