Поиск по этому блогу

суббота, 10 сентября 2011 г.

3G модем (ZTE MF636) от Билайн в Ubuntu 11.04

В Ubuntu 11.04 Network-Manager имеет функциональность для подключения 3G USB модема многих провайдеров, в том числе и Билайна. Но, к сожалению, как и много в Network-Manager это не всегда работает. Пройдя несколько шагов мастера настройки я получил нужный пункт подключения. При попытке подключиться в логах получаю следующее:
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) starting connection 'Beeline 3G modem'
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): device state change: 3 -> 4 (reason 0)
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) scheduled...
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) started...
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): device state change: 4 -> 6 (reason 0)
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) complete.
Sep 10 22:42:30 GannaNote modem-manager[700]: Modem /org/freedesktop/ModemManager/Modems/1: state changed (connected -> disconnecting)
Sep 10 22:42:30 GannaNote modem-manager[700]: Modem /org/freedesktop/ModemManager/Modems/1: state changed (disconnecting -> connected)
Sep 10 22:42:30 GannaNote NetworkManager[698]: disconnect failed: (32) The serial port is not open.
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) scheduled...
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) started...
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): device state change: 6 -> 4 (reason 0)
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) Stage 1 of 5 (Device Prepare) complete.
Sep 10 22:42:30 GannaNote NetworkManager[698]: GSM connection failed: (32) Sending command failed: device is not enabled
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): device state change: 4 -> 9 (reason 1)
Sep 10 22:42:30 GannaNote NetworkManager[698]: Marking connection 'Beeline 3G modem' invalid.
Sep 10 22:42:30 GannaNote NetworkManager[698]: Activation (ttyUSB2) failed.
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): device state change: 9 -> 3 (reason 0)
Sep 10 22:42:30 GannaNote NetworkManager[698]: (ttyUSB2): deactivating device (reason: 0).
Sep 10 22:42:30 GannaNote modem-manager[700]: Modem /org/freedesktop/ModemManager/Modems/1: state changed (connected -> disconnecting)
Sep 10 22:42:30 GannaNote modem-manager[700]: Modem /org/freedesktop/ModemManager/Modems/1: state changed (disconnecting -> connected)
Sep 10 22:42:30 GannaNote NetworkManager[698]: disconnect failed: (32) The serial port is not open.
Забываем про Network-Manager (в который раз) и настраиваем старым добрым wvdial + pppd. 1. Редактируем файл /etc/wvdial.conf:
[Dialer Defaults]
Modem = /dev/ttyUSB2
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+ZOPRT=5
Init4 = AT+ZSTART
Init5 = AT+CPMS="SM","SM",""
Modem Type = Analog Modem
Dial Command = ATDT
ISDN = 0
Timeout = 120
Idle Seconds = 500
Stupid Mode = 1
Compuserve = 0
Phone = *99#
Username = beeline
Password = beeline
New PPPD = yes
Auto DNS = 1
Ask Password = 0
На этом всё!
Подключаемся командой: sudo wvdial

Мой список блогов