When exiting through the terminal to wvdial, it displays the following:

WvDial: Internet dialer version 1.60
-> Cannot get information for serial port.
-> Initializing modem.
-> Sending: ATZ
ATZ
Ok
-> Sending: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
Ok
-> Modem initialized.
-> Configuration does not specify a valid phone number.
-> Configuration does not specify a valid login name.
-> Configuration does not specify a valid password.

How to solve?

Login to wvdial / conf scored, password too (beeline) phone number is- * 99 #

Here is wvdial.conf:

[Dialer Defaults]
Modem = / dev / ttyUSB2
ISDN = off
Modem Type = USB Modem
Baud = 115200
Init = ATZ
Init2 = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0
Init3 = AT + CGDCONT = 1, "IP", "www.beeline.ru"
Init4 =
Init5 =
Init6 =
Init7 =
Init8 =
Init9 =
Phone = * 99 #
Phone1 =
Phone2 =
Phone3 =
Phone4 =
Dial Prefix =
Dial Attempts = 1
Dial Command = ATM1L3DT
Ask Password = on
Password = beeline
Username = beeline
Auto Reconnect = off
Abort on Busy = off
Carrier Check = on
Check Def Route = on
Abort on No Dialtone = on
Stupid Mode = off
Idle seconds = 0
Auto DNS = on
; Minimize = off
; Dock = off



    2 answers 2

    Well, I have a mts modem, and I also read an article using wvdial when I wanted to configure it. But I didn’t have internet at that moment, so I used ppp. I will describe everything I did in order:

    1. Added mts user to / etc / ppp / pap-secrets file
      mts * mts

    2. Then you need to create the configuration file / etc / ppp / peers / mts-serial
      ipcp-accept-local
      ipcp-accept-remote
      noipdefault
      defaultroute
      usepeerdns
      user mts
      noauth
      novj
      nobsdcomp
      crtscts
      modem
      lock

    3. And create a script that raises the connection, let's call it mts.sh (this file can be put anywhere, I keep it in my home directory)

      #!/bin/sh DIALTIMEOUT=20 MODEM=ttyUSB3 # это для моего модема в некоторых модемах надо #посмотреть на каком он весит устройстве SPEED=460800 PHONE=" 99 **1#" MODEM_INIT='AT+CGDCONT=1,"IP","internet.mts.ru" OK' LOGSCRIPT="CONNECT" OPTIONS="call mts-serial debug" # Устанавливаем соединение и возобновляем при обрыве связи while true ; do pppd connect 'chat -v ABORT "NO DIALTONE" ABORT "NO CARRIER" ABORT BUSY "" '"$MODEM_INIT"' ATDT'$PHONE' '"$LOGSCRIPT"';' mru 1500 $OPTIONS /dev/$MODEM $SPEED cat /etc/ppp/resolv.conf > /etc/resolv.conf # Передаем системе информацию о DNS-серверах sleep $DIALTIMEOUT done 

    I connect like this:

    1. First you need to omit all network interfaces on the machine (sudo ifdown eth0)
    2. Then make the system see the modem not as a USB flash drive but as a modem (eject / dev / scd1)
    3. Then you can run the script (sudo sh mts.sh)

    So everything works for me. Or am I a fool or havehcode tags work through ...

    • can be more? I do not have a pap-secrets file, create a new one? ... sorry found .... and where is it? - a_sabitov
    • Yes, all those files that are not there can be created new, in principle, if you have not previously configured such things on this machine, you should not have these files - greshnik
    • I opened the pap-secrets file through the terminal, I can't figure out where to insert the password and username .. I have a beeline - a_sabitov
    • give your icq or skype - greshnik
    • alia 631513493 - a_sabitov

    Look at your wvdial.conf, on INIT3

    Beeline does not have such an access point: www.beeline.ru but there are: internet.beeline.ru home.beeline.ru