Не могу заставить коннектится свой модем
. Прочитал кучу описаний настройки, более менее разобрался, вроде правильно делаю, но инициализация никак не проходит.
Вот мои настройки и логи:
nano /etc/udev/rules.d/45-huawei1550.rules
SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
lsusb
Bus 004 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 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
После выполнения wvdialconf
лог выполнения:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
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
WvModem<*1>: Cannot get information for serial port.
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.
WvModem<*1>: Cannot get information for serial port.
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"
конфиг файл имеет следующий вид:
nano /etc/wvdial.conf
[Dialer usb]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Init3 = AT+CGDCONT=1,"IP","3g.utel.ua"
New PPPD = yes
Check Def Route = on
Phone = *99#
Idle Seconds = 0
Baut = 9600
Abort on Busy = off
Abort on No Dialtone = on
Modem Type = USB Modem
Stupid Mode = off
Auto DNS = on
Dial Command = ATM1L3DT
Dial Attempts = 5
Modem = /dev/ttyUSB0
ISDN = 0
Carrier Check = on
Auto Reconnect = on
[Dialer Defaults]
Modem = /dev/ttyUSB0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","3g.utel.ua"
Stupid Mode = 1
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = 1
Auto Reconnect = on
Password = 1
Baud = 9600
Пробую коннектиться:
wvdial usb
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0
ATQ0 V1 E1 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","3g.utel.ua"
AT+CGDCONT=1,"IP","3g.utel.ua"
ERROR
--> Bad init string.
Немного логов:
tail -30 /var/log/messages
Mar 7 08:30:24 servak kernel: [ 13.736045] usb 1-3: new high speed USB device using ehci_hcd and address 3
Mar 7 08:30:24 servak kernel: [ 13.879505] usb 1-3: configuration #1 chosen from 1 choice
Mar 7 08:30:24 servak kernel: [ 13.900076] scsi9 : SCSI emulation for USB Mass Storage devices
Mar 7 08:30:24 servak kernel: [ 13.908089] scsi10 : SCSI emulation for USB Mass Storage devices
Mar 7 08:30:25 servak usb-modeswitch: switched to 12d1:1001 (HUAWEI Technology: HUAWEI Mobile)
Mar 7 08:30:25 servak kernel: [ 15.072094] ip_tables: (C) 2000-2006 Netfilter Core Team
Mar 7 08:30:26 servak kernel: [ 15.108578] nf_conntrack version 0.5.0 (7441 buckets, 29764 max)
Mar 7 08:30:26 servak kernel: [ 15.110130] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
Mar 7 08:30:26 servak kernel: [ 15.110136] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
Mar 7 08:30:26 servak kernel: [ 15.110139] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Mar 7 08:30:26 servak kernel: [ 15.472396] usbcore: registered new interface driver usbserial
Mar 7 08:30:26 servak kernel: [ 15.472991] USB Serial support registered for generic
Mar 7 08:30:26 servak kernel: [ 15.473601] usbcore: registered new interface driver usbserial_generic
Mar 7 08:30:26 servak kernel: [ 15.473605] usbserial: USB Serial Driver core
Mar 7 08:30:26 servak kernel: [ 15.484721] USB Serial support registered for GSM modem (1-port)
Mar 7 08:30:26 servak kernel: [ 15.485367] option 1-3:1.0: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.486853] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
Mar 7 08:30:26 servak kernel: [ 15.486886] option 1-3:1.1: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.488960] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
Mar 7 08:30:26 servak kernel: [ 15.488997] option 1-3:1.2: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.489605] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
Mar 7 08:30:26 servak kernel: [ 15.489652] usbcore: registered new interface driver option
Mar 7 08:30:26 servak kernel: [ 15.489655] option: v0.7.2:USB Driver for GSM modems
Mar 7 08:30:26 servak logger: usb_modeswitch: adding device ID 12d1:1001 to driver "option""
Mar 7 08:30:29 servak kernel: [ 18.903517] scsi 9:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Mar 7 08:30:29 servak kernel: [ 18.912522] scsi 10:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
Mar 7 08:30:29 servak kernel: [ 18.925361] sr0: scsi-1 drive
Mar 7 08:30:29 servak kernel: [ 18.925671] sr 9:0:0:0: Attached scsi generic sg1 type 5
Mar 7 08:30:29 servak kernel: [ 18.930504] sd 10:0:0:0: Attached scsi generic sg2 type 0
Mar 7 08:30:29 servak kernel: [ 18.948782] sd 10:0:0:0: [sdb] Attached SCSI removable disk
tail -35 /var/log/syslog
Mar 7 08:30:26 servak kernel: [ 15.473601] usbcore: registered new interface driver usbserial_generic
Mar 7 08:30:26 servak kernel: [ 15.473605] usbserial: USB Serial Driver core
Mar 7 08:30:26 servak kernel: [ 15.484721] USB Serial support registered for GSM modem (1-port)
Mar 7 08:30:26 servak kernel: [ 15.485367] option 1-3:1.0: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.486853] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
Mar 7 08:30:26 servak kernel: [ 15.486886] option 1-3:1.1: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.488960] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
Mar 7 08:30:26 servak kernel: [ 15.488997] option 1-3:1.2: GSM modem (1-port) converter detected
Mar 7 08:30:26 servak kernel: [ 15.489605] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
Mar 7 08:30:26 servak kernel: [ 15.489652] usbcore: registered new interface driver option
Mar 7 08:30:26 servak kernel: [ 15.489655] option: v0.7.2:USB Driver for GSM modems
Mar 7 08:30:26 servak logger: usb_modeswitch: adding device ID 12d1:1001 to driver "option""
Mar 7 08:30:27 servak ovpn-kashtan[796]: Initialization Sequence Completed
Mar 7 08:30:29 servak kernel: [ 18.901544] usb-storage: device scan complete
Mar 7 08:30:29 servak kernel: [ 18.903517] scsi 9:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
Mar 7 08:30:29 servak kernel: [ 18.910287] usb-storage: device scan complete
Mar 7 08:30:29 servak kernel: [ 18.912522] scsi 10:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
Mar 7 08:30:29 servak kernel: [ 18.925361] sr0: scsi-1 drive
Mar 7 08:30:29 servak kernel: [ 18.925559] sr 9:0:0:0: Attached scsi CD-ROM sr0
Mar 7 08:30:29 servak kernel: [ 18.925671] sr 9:0:0:0: Attached scsi generic sg1 type 5
Mar 7 08:30:29 servak kernel: [ 18.930504] sd 10:0:0:0: Attached scsi generic sg2 type 0
Mar 7 08:30:29 servak kernel: [ 18.948782] sd 10:0:0:0: [sdb] Attached SCSI removable disk
Mar 7 08:30:30 servak kernel: [ 19.404016] eth0: no IPv6 routers present
Mar 7 08:30:35 servak kernel: [ 24.708022] tap0: no IPv6 routers present
Mar 7 08:30:35 servak ntpdate[1014]: step time server 91.189.94.4 offset -0.000874 sec
Mar 7 09:17:01 servak CRON[1088]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Mar 7 09:28:33 servak udevd[258]: SYSFS{}= will be removed in a future udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/45-huawei1550.rules:1
В НМ на 10.04 и 10.10 настраивал - все пашет норм. Пароля нет, логина нет, настроек почти никаких - только телефон *99#, оператор Utel, вот эта строка 3g.utel.ua и пин.
В общем, может у кого какие идеи - где я напортачил?