Форум русскоязычного сообщества Ubuntu


Следите за новостями русскоязычного сообщества Ubuntu в Twitter-ленте @ubuntu_ru_loco

Автор Тема: WETELECOM WM-D200 vs Linux Ubuntu 12.04.1 LST  (Прочитано 3209 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Snaidero

  • Автор темы
  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
WETELECOM WM-D200 vs Linux Ubuntu 12.04.1 LST
« : 11 Февраль 2013, 12:17:41 »
Zdravstvuite. Podskagite.
1. Connect USB device vs OS Linux.
2. Dmesg: CD-ROM We Telecom ......
3. Terminal: sudo gedit /etc/modprobe.d/usbser.conf --->(option usbserial vendor=0x22de product=0x6801).
4. -II-: -II- /etc/modules ----> (usbserial vendor=0x22de product=0x6801)
5. -II-: sudo modprobe usbserial vendor=0x22de product=0x6801
6. Network connections vidit device i nastraivaet connnect, no connect ne proishodit, pri tom v terminale: Dmesg: CD-ROM We Telecom ......, lsusb: Bus 003 Device 008: ID 22de:6801.
Vopros: Balans na shete pologiteln., Network vidit, no connect ne proishodit, system vidit device iako CD-ROM. Can you help me? Thank's.

Оффлайн Snaidero

  • Автор темы
  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
Re: WETELECOM WM-D200 vs Linux Ubuntu 12.04.1 LST
« Ответ #1 : 12 Февраль 2013, 20:05:48 »
http://forum.skylink.ru/index.php/topic/3706-%D0%BC%D0%BE%D0%B4%D0%B5%D0%BC-wetelecom-wm-d200-%D0%B8-ubuntu/.
После команды
Цитировать
make -C /lib/modules/$(uname -r)/build M=/home/user/linux-3.2.0/drivers/usb/serial
Выводит
Цитировать
kim@HP:~$ sudo make -C /lib/modules/$(uname -r)/build M=/home/kim/linux-3.2.0/drivers/usb/serial
[sudo] password for kim:
make: Entering directory `/usr/src/linux-headers-3.2.0-29-generic'
  CC [M]  /home/kim/linux-3.2.0/drivers/usb/serial/option.o
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:565:2: error: implicit declaration of function ‘USB_VENDOR_AND_INTERFACE_INFO’ [-Werror=implicit-function-declaration]
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:565:2: error: initializer element is not constant
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:565:2: error: (near initialization for ‘option_ids[33].match_flags’)
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:566:2: error: initializer element is not constant
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:566:2: error: (near initialization for ‘option_ids[34].match_flags’)
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:567:2: error: initializer element is not constant
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:567:2: error: (near initialization for ‘option_ids[35].match_flags’)
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:568:2: error: initializer element is not constant
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:568:2: error: (near initialization for ‘option_ids[36].match_flags’)
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:569:2: error: initializer element is not constant
/home/kim/linux-3.2.0/drivers/usb/serial/option.c:569:2: error: (near initialization for ‘option_ids[37].match_flags’)
........
........
make[1]: *** [/home/kim/linux-3.2.0/drivers/usb/serial/option.o] Error 1
make: *** [_module_/home/kim/linux-3.2.0/drivers/usb/serial] Error 2
make: Leaving directory `/usr/src/linux-headers-3.2.0-29-generic'
Ситуация схожая с  https://forum.ubuntu.ru/index.php?topic=182291.0

Оффлайн Snaidero

  • Автор темы
  • Новичок
  • *
  • Сообщений: 5
    • Просмотр профиля
Re: WETELECOM WM-D200 vs Linux Ubuntu 12.04.1 LST
« Ответ #2 : 22 Февраль 2013, 14:48:57 »
Отсутствие соединения.

# uname -r
3.2.0-29-generic

Присоединил устройство:

# tail /var/log/syslog
Feb 22 14:35:41 dv6 modem-manager[7505]: <info>  (Generic): CDMA modem /sys/devices/pci0000:00/0000:00:10.1/usb7/7-1 claimed port ttyUSB2
Feb 22 14:35:41 dv6 NetworkManager[7507]: <warn> (ttyUSB0): failed to look up interface index
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): new CDMA/EVDO device (driver: 'generic' ifindex: 0)
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): exported as /org/freedesktop/NetworkManager/Devices/8
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): now managed
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): deactivating device (reason 'managed') [2]
Feb 22 14:35:41 dv6 NetworkManager[7507]: nm_system_iface_flush_routes: assertion `ifindex > 0' failed
Feb 22 14:35:41 dv6 NetworkManager[7507]: nm_system_iface_flush_addresses: assertion `ifindex > 0' failed
Feb 22 14:35:41 dv6 NetworkManager[7507]: <info> (ttyUSB0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]

# ls /dev | grep ttyUSB
ttyUSB0
ttyUSB1
ttyUSB2

Подключение Network Manager

# tail /var/log/syslog
Feb 22 14:38:25 dv6 modem-manager[7505]: <info>  Modem /org/freedesktop/ModemManager/Modems/7: state changed (enabling -> enabled)
Feb 22 14:38:25 dv6 NetworkManager[7507]: <info> WWAN now enabled by management service
Feb 22 14:39:26 dv6 NetworkManager[7507]: <warn> CDMA connection failed: (32) No service
Feb 22 14:39:26 dv6 NetworkManager[7507]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'none') [40 120 0]
Feb 22 14:39:26 dv6 NetworkManager[7507]: <info> Marking connection 'Skylink ' invalid.
Feb 22 14:39:26 dv6 NetworkManager[7507]: <warn> Activation (ttyUSB0) failed.
Feb 22 14:39:26 dv6 NetworkManager[7507]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Feb 22 14:39:26 dv6 NetworkManager[7507]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
Feb 22 14:39:26 dv6 NetworkManager[7507]: nm_system_iface_flush_routes: assertion `ifindex > 0' failed
Feb 22 14:39:26 dv6 NetworkManager[7507]: nm_system_iface_flush_addresses: assertion `ifindex > 0' failed


# lsusb
Bus 007 Device 007: ID 22de:6801

# /sbin/modinfo option | grep 22de; /sbin/modinfo option| grep 6801
alias:          usb:v211Fp6801d*dc*dsc*dp*ic*isc*ip*
# lsmod | grep option
option                 25932  0
usb_wwan               20491  1 option
usbserial              47077  2 option,usb_wwan

# lsmod | grep usb
usb_wwan               20491  1 option
btusb                  18288  2
bluetooth             180104  23 btusb,rfcomm,bnep
usbserial              47077  2 option,usb_wwan
usb_storage            49198  1
# lsmod | grep usb
usb_wwan               20491  1 option
btusb                  18288  4
bluetooth             180104  25 bnep,rfcomm,btusb
usbserial              47077  2 option,usb_wwan
usb_storage            49198  0

# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   S4   S5   S6   S7   
Modem Port Scan<*1>: S8   S9   S10  S11  S12  S13  S14  S15 
Modem Port Scan<*1>: S16  S17  S18  S19  S20  S21  S22  S23 
Modem Port Scan<*1>: S24  S25  S26  S27  S28  S29  S30  S31 
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: QUALCOMM INCORPORATED
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 -- 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.

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"

# gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = at+crm=1;&c0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = mobile
Password = internet
Baud = 57600

# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: at+crm=1;&c0
at+crm=1;&c0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
NO CARRIER
--> No Carrier!  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
NO CARRIER
--> No Carrier!  Trying again.
--> Sending: ATDT#777
--> Waiting for carrier.

Внес изменения в /usr/sbin/pppconfig
630,631c630,631
<     foreach $tty (grep /16[45]50/, (`setserial -g /dev/ttyS\* 2>/dev/null`)) {
<       ($port) = $tty =~ /^(\/dev\/ttyS\d+)/;
---
>     foreach $tty (grep /16[45]50/, (`setserial -g /dev/ttyUSB\* 2>/dev/null`)) {
>       ($port) = $tty =~ /^(\/dev\/ttyUSB\d+)/;
654c654
< /dev/ttyS1 is the most common.  Note that this must be typed exactly as shown.  Capitalization is important: ttyS1 is not the same as ttys1."),
---
> /dev/ttyUSB0 is the most common.  Note that this must be typed exactly as shown.  Capitalization is important: ttyUSB0 is not the same as ttyusb0."),
1372,1373c1372,1373
< /dev/ttyS1
< 115200
---
> /dev/ttyUSB0
> 921600

Нужна подсказка знающих людей.




« Последнее редактирование: 22 Февраль 2013, 15:03:00 от Snaidero »

 

Страница сгенерирована за 0.09 секунд. Запросов: 26.