linux

Configuring wvdial for a 3G connection

1 min read

To connect through a 3G modem you can use settings like these: [Dialer tmn] Modem = /dev/ttyUSB0 Stupid Mode = 1 Dial Command = ATDT Phone = *99# Baud = 460800 ISDN = 0 Username = tmn Password = tmn Modem Type = Analog Modem Init2 = ATZ #Init3 = AT+CPIN=9862 Init4 = AT+CGDCONT=1,”IP”,”internet” ISDN = 0 Depending on the modem used, we may need to change the settings and, for example, use another port for data instead of ttyUSB0, such as: [Dialer Defaults] Modem = /dev/ttyUSB2 Modem Type = Analog Modem ISDN = 0 Baud = 460800 Dial Attempts = 1 Username = tmn Password = tmn Init1 = ATZ Init2 = AT&F &D2 &C1 Init3 = ATS7=60 S30=0 S0=0 Init4 = AT+CGDCONT=1,”IP”,”internet” Phone = *99***1# Stupid Mode = 1 I no longer have an exact record of which modems I used these settings with, but I believe the 2nd example was used with the ZTE MF636.

Reference date for this article: 2011/07/18

#hardware#modem3g