wvdial and connection problem

Non-LTS (non-Marathon) related topics
Ответить
GLwolf
Сообщения: 73
Зарегистрирован: 15 авг 2013, 14:58
Operating system: ROSA Desktop Fresh R11 for x64
Откуда: Poland

wvdial and connection problem

Сообщение GLwolf » 12 май 2014, 15:52

Hello

I have a problem to properly configure wvdial'a

Maybe I'll start from the beginning:

Код: Выделить всё

[root@Blaszak wolf]# lsusb
Bus 005 Device 003: ID 12d1:1436 Huawei Technologies Co., Ltd. E173 3G Modem (modem-mode)
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Код: Выделить всё

[root@Blaszak wolf]# ls /dev/ttyUSB*
/dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2
[root@Blaszak wolf]# 

Код: Выделить всё

[root@Blaszak wolf]# wvdialconf /etc/wvdial.conf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3   
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB2<*1>: Speed 9600: AT -- OK
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
The configuration file looks like this: (Orange Poland. APN Internet, user and pass: Internet)

Код: Выделить всё

[Dialer Defaults]
Dial Command = ATDT
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CPIN=8717
Init4 = AT+CGDCONT=1,"IP","internet"
Stupid Mode = yes
Modem Type = USB Modem
Phone = *99#
Modem = /dev/ttyUSB0
Username = internet
Password = internet
Baud = 460800 
When trying to connect:

Код: Выделить всё

[root@Blaszak wolf]# wvdial
--> WvDial: Internet dialer version 1.61
--> 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
--> Sending: AT+CPIN=8717
AT+CPIN=8717
OK
--> Sending: AT+CGDCONT=1,"IP","internet"
AT+CGDCONT=1,"IP","internet"
OK
--> Modem initialized.
wvdial: utils/wvtask.cc:501: static void WvTaskMan::do_task(): Assertion `task->magic_number == 0x123678' failed.
Przerwane (core dumped)
[root@Blaszak wolf]#
I do not know where is the problem
Linux Blaszak 5.4.40-generic-1rosa-x86_64 #1 SMP PREEMPT Sun May 10 18:31:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Аватара пользователя
ДроноваЮ
Сообщения: 2636
Зарегистрирован: 01 июн 2011, 13:11
Operating system: Ubuntu/ROSA
Откуда: Москва

Re: wvdial and connection problem

Сообщение ДроноваЮ » 13 май 2014, 15:02

Try also

Код: Выделить всё

tail -f /var/log/messages
starting form the moment before the connection attempt, it will show the logs and pppd exit|error code, as I remember correctly (lots of time since last using wvdial :oops: ), which may help to diagnose the problem.

GLwolf
Сообщения: 73
Зарегистрирован: 15 авг 2013, 14:58
Operating system: ROSA Desktop Fresh R11 for x64
Откуда: Poland

Re: wvdial and connection problem

Сообщение GLwolf » 17 май 2014, 16:41

Hi

ДроноваЮ thank you for your answer. Unfortunately, I no longer have this modem. Now he does not have R2. I installed R3. How had it again I'll check it out.
Linux Blaszak 5.4.40-generic-1rosa-x86_64 #1 SMP PREEMPT Sun May 10 18:31:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Ответить

Вернуться в «ROSA Fresh R1-R3 (2012.1)»