Huawei e3131 nie wykrywa jako modem na Debianie

Kwestie techniczne, konfiguracja i rozwiązywanie problemów z modemami GSM (GPRS, EDGE, UMTS, HSDPA i HSUPA).

Moderator: Moderatorzy

ODPOWIEDZ
odis
Początkujący użytkownik forum
Posty: 1
Rejestracja: 2012-12-05, 14:23
Lokalizacja: Gtown

Huawei e3131 nie wykrywa jako modem na Debianie

Post autor: odis »

Witam jestem początkującym użytkownikiem Linuxa, mój problem dotyczy modemu Huawei e3131 z play, na którym chce odpalić aero2, lecz niestety nie udaje mi się go przełączyć w tryb modemu.
Podkreślam, że zarówno modem jak i karta bez problemów pracują z systemem windows
Mój system to Debian 6 wersja jądra to 2.6.32-5-686.
Postępuje według poradnika ze strony:
http://dug.net.pl/tekst/197/aero2_z_mod ... wei_e3131/

Kod: Zaznacz cały

apt-get install usb-modeswitch
Instaluje się usb-modeswitch_1.1.4-2_i386.deb

Kod: Zaznacz cały

apt-get install wvdial
Instaluje się wvdial_1.60.4_i386.deb
Podłączam modem, czekam nawet do czasu aż dioda zacznie migać na niebiesko

Kod: Zaznacz cały

root@matrix:/home/filip# ls /dev/ttyUSB
ls: nie ma dostępu do /dev/ttyUSB: Nie ma takiego pliku ani katalogu
Ignoruję ten problem i przechodzę dalej

Kod: Zaznacz cały

root@matrix:/home/filip# echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
bash: /sys/bus/usb-serial/drivers/option1/new_id: Nie ma takiego pliku ani katalogu
Następnie

lsusb w tym momencie przedstawia modem jako
Bus 001 Device 011: ID 12d1:14fe Huawei Technologies Co., Ltd.

Kod: Zaznacz cały

root@matrix:/home/filip# usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000"

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 009 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
 Error resetting endpoint: -71
Resetting message endpoint 0x01
 Error resetting endpoint: -19
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

root@matrix:/home/filip# 
Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.731421] Oops: 0000 [#5] SMP 

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.731430] last sysfs file: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0/host4/target4:0:0/4:0:0:0/block/sdb/uevent

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.731681] Process umount (pid: 2575, ti=f388e000 task=f54f0cc0 task.ti=f388e000)

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.731687] Stack:

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.731748] Call Trace:

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.732126] Code:  Bad EIP value.

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.732134] EIP: [<00003000>] 0x3000 SS:ESP 0068:f388fdf4

Message from syslogd@matrix at Dec  5 14:53:15 ...
 kernel:[16374.732160] CR2: 0000000000003000
4243123456780000000000000011062000000100000000000000000000"
Teraz po wpisaniu lsusb opis modemu się zmienia
Bus 001 Device 012: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

Konfiguruje plik /etc/wvdial.conf tak jak w poradniku, następnie

Kod: Zaznacz cały

root@matrix:/home/filip# wvdial aero2
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
--> Cannot open /dev/ttyUSB0: Inappropriate ioctl for device
z góry dziękuję za pomoc i zainteresowanie.

dodalem
echo "AT^SYSCFG=14,0,3FFFFFFF,1,2\r" >/dev/ttyUSB0

dzięki temu pokazuje mi się /dev/ttyUSB0
oto efekt

Kod: Zaznacz cały

root@matrix:/home/filip# ls /dev/ttyUSB*
ls: nie ma dostępu do /dev/ttyUSB*: Nie ma takiego pliku ani katalogu
root@matrix:/home/filip# echo "AT^SYSCFG=14,0,3FFFFFFF,1,2\r" >/dev/ttyUSB0
root@matrix:/home/filip# ls /dev/ttyUSB*
/dev/ttyUSB0
następnie

Kod: Zaznacz cały

root@matrix:/home/filip# modprobe -v option
root@matrix:/home/filip# echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
(wreszcie zadziałało polecenie echo)

Kod: Zaznacz cały

root@matrix:/home/filip# usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M "55534243123456780000000000000011062000000100000000000000000000"

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode or class (1)
Accessing device 019 on bus 001 ...
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
  Vendor String: HUAWEI  
   Model String: Mass Storage    
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x81
 Error resetting endpoint: -71
Resetting message endpoint 0x01
 Error resetting endpoint: -19
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

root@matrix:/home/filip# 
Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.283841] Oops: 0000 [#15] SMP 

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.283848] last sysfs file: /sys/devices/pci0000:00/0000:00:1d.7/class

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284135] Process umount (pid: 10866, ti=f3850000 task=f3816ec0 task.ti=f3850000)

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284141] Stack:

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284207] Call Trace:

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284646] Code:  Bad EIP value.

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284654] EIP: [<00001000>] 0x1000 SS:ESP 0068:f3851df4

Message from syslogd@matrix at Dec  5 16:09:38 ...
 kernel:[20958.284683] CR2: 0000000000001000
^C
ale ku mojemu zaskoczeniu

Kod: Zaznacz cały

root@matrix:/home/filip# wvdial aero2
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","darmowy"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 16:14:00 2012
--> Pid of pppd: 11177
--> Using interface ppp0
--> pppd: 02t�`@�  L� 
--> pppd: 02t�`@�  L� 
--> pppd: 02t�`@�  L� 
--> pppd: 02t�`@�  L� 
--> pppd: 02t�`@�  L� 
--> local  IP address 151.248.38.192
--> pppd: 02t�`@�  L� 
--> remote IP address 10.64.64.64
--> pppd: 02t�`@�  L� 
--> primary   DNS address 193.41.112.14
--> pppd: 02t�`@�  L� 
--> secondary DNS address 193.41.112.18
--> pppd: 02t�`@�  L� 
Mimo, że sposób w jaki się połączyłem jest wręcz "brudny" to działa.
Niestety po wyjęciu modemu cały proces łącznie z poleceniem echo "AT^SYSCFG=14,0,3FFFFFFF,1,2\r" >/dev/ttyUSB0 trzeba powtarzać. Czy ktoś ma jakiś pomsył jak to zmienić i czemu występuje ten problem?
ODPOWIEDZ