Temat: BF MR3420 problem z przełączeniem E173
Zainstalowałem najnowszy Backfire na MR3420, doinstalowałem paczki do obsługi modemu usb.
root@OpenWrt:/etc$ opkg list-installed
base-files - 43.17-r26962
block-extroot - 0.0.1-2
block-hotplug - 0.1.0-2cj
block-mount - 0.1.0-2cj
busybox - 1.15.3-2
crda - 1.1.1-1
dnsmasq - 2.55-6
dropbear - 0.52-4
firewall - 2-25
hotplug2 - 1.0-beta-3
iptables - 1.4.6-2cj
iptables-mod-conntrack - 1.4.6-2cj
iptables-mod-nat - 1.4.6-2cj
iw - 0.9.22-1
kernel - 2.6.32.27-1cj
kmod-ath - 2.6.32.27+2011-04-19-3
kmod-ath9k - 2.6.32.27+2011-04-19-3
kmod-ath9k-common - 2.6.32.27+2011-04-19-3
kmod-button-hotplug - 2.6.32.27-1
kmod-cfg80211 - 2.6.32.27+2011-04-19-3
kmod-crc-ccitt - 2.6.32.27-1cj
kmod-crc16 - 2.6.32.27-1cj
kmod-crypto-aes - 2.6.32.27-1cj
kmod-crypto-arc4 - 2.6.32.27-1cj
kmod-crypto-core - 2.6.32.27-1cj
kmod-fs-ext2 - 2.6.32.27-1cj
kmod-fs-mbcache - 2.6.32.27-1cj
kmod-fs-vfat - 2.6.32.27-1cj
kmod-input-core - 2.6.32.27-1cj
kmod-input-gpio-buttons - 2.6.32.27-1cj
kmod-input-polldev - 2.6.32.27-1cj
kmod-ipt-conntrack - 2.6.32.27-1cj
kmod-ipt-core - 2.6.32.27-1cj
kmod-ipt-nat - 2.6.32.27-1cj
kmod-ipt-nathelper - 2.6.32.27-1cj
kmod-leds-gpio - 2.6.32.27-1cj
kmod-ledtrig-usbdev - 2.6.32.27-1cj
kmod-mac80211 - 2.6.32.27+2011-04-19-3
kmod-nls-base - 2.6.32.27-1cj
kmod-nls-cp437 - 2.6.32.27-1cj
kmod-nls-iso8859-1 - 2.6.32.27-1cj
kmod-ppp - 2.6.32.27-1cj
kmod-pppoe - 2.6.32.27-1cj
kmod-scsi-core - 2.6.32.27-1cj
kmod-usb-core - 2.6.32.27-1cj
kmod-usb-serial - 2.6.32.27-1cj
kmod-usb-serial-option - 2.6.32.27-1cj
kmod-usb-storage - 2.6.32.27-1cj
kmod-usb2 - 2.6.32.27-1cj
libc - 0.9.30.1-43.17
libgcc - 4.3.3+cs-43.17
libip4tc - 1.4.6-2cj
libip6tc - 1.4.6-2cj
libiptc - 1.4.6-2cj
libnl-tiny - 0.1-1
libpopt - 1.7-5
libuci - 12012009.6-3
libusb - 0.1.12-2
libxtables - 1.4.6-2cj
mtd - 13
opkg - 576-1
ppp - 2.4.4-16
ppp-mod-pppoe - 2.4.4-16
swconfig - 7
uci - 12012009.6-3
udevtrigger - 106-1
usb-modeswitch - 1.1.7-1
usb-modeswitch-data - 20110227-1
vsftpd - 2.3.4-1cj
wireless-tools - 29-4
wpad-mini - 20110402-1
wput - 0.6.2-1
Modem w logu pojawia się:
Jan 1 01:00:38 OpenWrt user.notice usb-modeswitch: 1-1.2:1.0: Manufacturer=Action Product=Mint Serial=0EE0556150235AC2
Jan 1 01:00:39 OpenWrt user.notice usb-modeswitch: 1-1.3:1.0: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
Jan 1 01:00:39 OpenWrt user.notice usb-modeswitch: 1-1.3:1.0: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching
Jan 1 01:00:39 OpenWrt user.notice usb-modeswitch: 1-1.3:1.1: Manufacturer=HUAWEI_Technology Product=HUAWEI_Mobile Serial=?
Jan 1 01:00:39 OpenWrt user.notice usb-modeswitch: 1-1.3:1.1: Selecting /etc/usb_modeswitch.d/12d1:1446 for mode switching
Jan 1 01:00:39 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB2.0_Hub Serial=?
root@OpenWrt:/etc$ cat /proc/bus/usb/devices
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 4 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1446 Rev= 0.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Konfiguracja wg HOWTO:
network.wan=interface
network.wan.proto=3g
network.wan.service=umts
network.wan.device=/dev/ttyUSB0
network.wan.pincode=2222
network.wan.apn=erainternet
network.wan.username=erainternet
network.wan.password=erainternet
Przy próbie przełączenia na modem:
root@OpenWrt:~$ /usr/bin/usb_modeswitch -c "/etc/usb_modeswitch.d/12d1:1446"
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 004 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
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 Technology
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: -71
Checking for mode switch (max. 20 times, once per second) ...
Waiting for original device to vanish ...
Original device can't be accessed anymore. Good.
Searching for target devices ...
...
Searching for target devices ...
No new devices in target mode or class found
Mode switch has failed. Bye.
W tym czasie led dwa razy zmieni kolor z niebieskiego na zielony.
Po próbie przełączenia cat /proc/bus/usb/devices pokazuje coś innego, zmienia się ProdID 1446 -> 1436:
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1436 Rev= 0.00
S: Manufacturer=HUAWEI Technology
S: Product=HUAWEI Mobile
C:* #Ifs= 7 Cfg#= 1 Atr=e0 MxPwr=500mA
A: FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=ff Driver=(none)
E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Połączenie nie zostaje zestawione. Jak temu zaradzić?
Dodam, że na GargoylePL komunikat był podobny, ale połączenie się nawiązywało.