LINUX.ORG.RU

Проблема с usb 3G модемом


0

1

Имеется модем ZTE MF 112
Пытаюсь настроить интернет на Slackware 13.37 RC3 linux-kernel-2.6.38.3
Вывод /var/log/messages

May 15 14:35:02 laptop kernel: usb 2-1: new high speed USB device using ehci_hcd and address 3
May 15 14:35:02 laptop kernel: usb 2-1: New USB device found, idVendor=19d2, idProduct=2000
May 15 14:35:02 laptop kernel: usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
May 15 14:35:02 laptop kernel: usb 2-1: Product: ZTE WCDMA Technologies MSM
May 15 14:35:02 laptop kernel: usb 2-1: Manufacturer: ZTE,Incorporated
May 15 14:35:02 laptop kernel: usb 2-1: SerialNumber: MF1800MTSD010000
May 15 14:35:02 laptop kernel: scsi7 : usb-storage 2-1:1.0
May 15 14:35:03 laptop usb_modeswitch: switching 19d2:2000 (ZTE,Incorporated: ZTE WCDMA Technologies MSM)
May 15 14:35:09 laptop kernel: usb 2-1: USB disconnect, address 3
May 15 14:35:14 laptop kernel: usb 2-1: new high speed USB device using ehci_hcd and address 4
May 15 14:35:14 laptop kernel: usb 2-1: New USB device found, idVendor=19d2, idProduct=2003
May 15 14:35:14 laptop kernel: usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
May 15 14:35:14 laptop kernel: usb 2-1: Product: ZTE WCDMA Technologies MSM
May 15 14:35:14 laptop kernel: usb 2-1: Manufacturer: ZTE,Incorporated
May 15 14:35:24 laptop kernel: usbcore: registered new interface driver usbserial
May 15 14:35:24 laptop kernel: USB Serial support registered for generic
May 15 14:35:24 laptop kernel: usbcore: registered new interface driver usbserial_generic
May 15 14:35:24 laptop kernel: usbserial: USB Serial Driver core
May 15 14:35:24 laptop kernel: USB Serial support registered for GSM modem (1-port)
May 15 14:35:24 laptop kernel: option 2-1:1.0: GSM modem (1-port) converter detected
May 15 14:35:24 laptop kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
May 15 14:35:24 laptop kernel: option 2-1:1.1: GSM modem (1-port) converter detected
May 15 14:35:24 laptop kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
May 15 14:35:24 laptop kernel: option 2-1:1.2: GSM modem (1-port) converter detected
May 15 14:35:24 laptop kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB2
May 15 14:35:24 laptop kernel: option 2-1:1.3: GSM modem (1-port) converter detected
May 15 14:35:24 laptop kernel: usb 2-1: GSM modem (1-port) converter now attached to ttyUSB3
May 15 14:35:24 laptop kernel: usbcore: registered new interface driver option
May 15 14:35:24 laptop kernel: option: v0.7.2:USB Driver for GSM modems

Установить соединение пытаюсь с помощью wvdial.
Фрагмент файла /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1, "IP", "internet.mts.ru"
New PPPD = 1
Modem = /dev/ttyUSB1
Phone = *99*#
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 9600
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = mts
Password = mts

Cформирован посредством wvdialconf

ozs@laptop:~$ sudo wvdialconf
Password:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

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

Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB3<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

При попытки подключения посредством 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+CGDCONT=1, "IP", "internet.mts.ru"
AT+CGDCONT=1, "IP", "internet.mts.ru"
OK
--> Modem initialized.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT*99*#
--> Waiting for carrier.
ATDT*99*#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun May 15 15:26:43 2011
--> Pid of pppd: 640
--> Using interface ppp0
--> pppd: P���[10]�[06][08]Ȧ[06][08][01]
--> pppd: P���[10]�[06][08]Ȧ[06][08][01]
--> pppd: P���[10]�[06][08]Ȧ[06][08][01]
--> pppd: P���[10]�[06][08]Ȧ[06][08][01]
--> pppd: P���[10]�[06][08]Ȧ[06][08][01]
--> Disconnecting at Sun May 15 15:27:14 2011
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.

В /var/log/messages<br>

May 15 15:26:44 laptop kernel: PPP generic driver version 2.4.2
May 15 15:26:44 laptop pppd[640]: pppd 2.4.5 started by root, uid 0
May 15 15:26:44 laptop pppd[640]: Using interface ppp0
May 15 15:26:44 laptop pppd[640]: Connect: ppp0 <--> /dev/ttyUSB1
May 15 15:27:14 laptop pppd[640]: Connection terminated.
May 15 15:27:14 laptop pppd[640]: Modem hangup
May 15 15:27:14 laptop pppd[640]: Exit.



Последнее исправление: ozs (всего исправлений: 1)

Повторная попытка подключения завершается неудачей

ozs@laptop:~$ sudo wvdial
Password:
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

Попытка заново софрмировать конфиг /etc/wvdial.conf выдает

ozs@laptop:~$ sudo wvdialconf
Password:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

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

Found a modem on /dev/ttyUSB3.
Modem configuration written to /etc/wvdial.conf.
ttyUSB3<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Если же попытаться подключиться с ttyUSB3, то просиходит

ozs@laptop:~$ sudo 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+CGDCONT=1, "IP", "internet.mts.ru"
AT+CGDCONT=1, "IP", "internet.mts.ru"
OK
--> Modem initialized.
--> Idle Seconds = 300, disabling automatic reconnect.
--> Sending: ATDT*99*#
--> Waiting for carrier.
ATDT*99*#
ERROR
--> Invalid dial command.
--> Disconnecting at Sun May 15 16:10:18 2011

В чём может быть причина данной проблемы?

ozs
() автор топика

echo debug >>/etc/ppp/options

и перепости /var/log/messages после очередной попытки соединения

AEP ★★★★★
()
Ответ на: комментарий от ozs

а networkmanager не пробовал? правда без гуйни наверное не настроишь, в процессе эксплуатации проблем вообще никаких - автоматом сам соединение поднимает как только модем воткнёшь )))

anykey_mlya
()

Phone = *99*#


Странный телефончик.
Зачем wvdial? pppsetup прекрасно работает.

amorpher ★★★★★
()
Ответ на: комментарий от AEP

результат такой же

May 15 15:26:44 laptop kernel: PPP generic driver version 2.4.2
 laptop pppd[640]: pppd 2.4.5 started by root, uid 0
 laptop pppd[640]: Using interface ppp0
 laptop pppd[640]: Connect: ppp0 <--> /dev/ttyUSB1
 laptop pppd[640]: Connection terminated.
 laptop pppd[640]: Modem hangup
 laptop pppd[640]: Exit.

ozs
() автор топика
Ответ на: комментарий от ozs

Invalid dial command.


поменяй в своём конфиге

Modem = /dev/ttyUSB3
ISDN = off
Modem Type = USB Modem
Init = ATX3
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+ZSNT=0,0,2
Init4 = AT+CGDCONT=1, "IP", "internet.mts.ru"
Dial Command = ATM1L3DT
Auto DNS = on

iSlava
()
Ответ на: комментарий от ozs

Опция debug не сработала, или вывод попал в другой лог. Поищи в логах что-то вроде такого:

pppd 2.4.5 started by root, uid 0
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4f01c7a6> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x2d8cd1d> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x2d8cd1d> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4f01c7a6> <pcomp> <accomp>]
rcvd [LCP DiscReq id=0x1 magic=0x2d8cd1d]
rcvd [CHAP Challenge id=0x1 <f0c01879ac0a234832c791f40e21ad8e>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <10c6efa2200ef0c9aaaa8bec69542fd9>, name = ""]
и т.д.
AEP ★★★★★
()
Ответ на: комментарий от iSlava

Спасибо большое, благодаря вашему конфигу проблема была успешно решена.

ozs
() автор топика
29 июня 2011 г.
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.