Temat: Raspberry Pi + Huawei E3372h-153

Witam.
Zakupiłem modem Huawei E3372h-153 który był Non-Hilink, zainstalowałem na nim oprogramowanie HiLink i wszystko działa.
Chcę go uruchomić na Raspberry Pi 2B+ z systemem Ubuntu 16.04 w wersji serwerowej.

Modem jest podłączony bezpośrednio do Raspberry Pi która jest zasilana natężeniem 2A.

Problem jest taki że mój modem jest wykrywany jako "Mass Storage", próbowałem wiele rzeczy które znalazłem na forach jednak nic nie pomaga hmm

Proszę o pomoc.

WR1043ND v1/v2, R6220, IGEL-H820C, HP T610, HP T510, Wyse DX0D, 3COM 4200G
OpenWRT, Luci, LibreNMS, Domoticz, Nginx, ZeroTier

2

Odp: Raspberry Pi + Huawei E3372h-153

Złe forum. usb-modeswitch zainstaluj.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Raspberry Pi + Huawei E3372h-153

Zainstalowałem, jednak nadal żadnych zmian

WR1043ND v1/v2, R6220, IGEL-H820C, HP T610, HP T510, Wyse DX0D, 3COM 4200G
OpenWRT, Luci, LibreNMS, Domoticz, Nginx, ZeroTier

4

Odp: Raspberry Pi + Huawei E3372h-153

Świetnie, a logów jak zwykle zero...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez ClassAxion 2016-12-09 22:38:28)

Odp: Raspberry Pi + Huawei E3372h-153

Zrobiłem format, zainstalowałem usb-modeswitch zrobiłem reboot i podpiąłem modem

lsusb

Bus 001 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Próbowałem tez użyć tego polecenia:
usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000011062000000100000000000000000000'

Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 009 on bus 001
Current configuration number is 1
Use interface number 0
Use endpoints 0x02 (out) and 0x82 (in)
Bogus Class/InterfaceClass: 0x02/0x08

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
     Product: HUAWEI_MOBILE
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
 OK, message successfully sent
Reset response endpoint 0x82
Reset message endpoint 0x02
-> Run lsusb to note any changes. Bye!

Jednak nadal bez zmian.

WR1043ND v1/v2, R6220, IGEL-H820C, HP T610, HP T510, Wyse DX0D, 3COM 4200G
OpenWRT, Luci, LibreNMS, Domoticz, Nginx, ZeroTier

6

Odp: Raspberry Pi + Huawei E3372h-153

Jako root to zrobiłeś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez ClassAxion 2016-12-09 23:38:18)

Odp: Raspberry Pi + Huawei E3372h-153

Tak

Tutaj usb-devices:

T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=02 Dev#=  5 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1f01 Rev=01.02
S:  Manufacturer=HUAWEI_MOBILE
S:  Product=HUAWEI_MOBILE
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage

#Edit

Udało mi się przejść komendą:

sudo usb_modeswitch -v 12d1 -p 1f01 -J

Teraz lsusb wygląda tak

Bus 001 Device 005: ID 12d1:14dc Huawei Technologies Co., Ltd.

jednak nadal żadnego nowego interfejsu nie ma na ifconfig hmm

WR1043ND v1/v2, R6220, IGEL-H820C, HP T610, HP T510, Wyse DX0D, 3COM 4200G
OpenWRT, Luci, LibreNMS, Domoticz, Nginx, ZeroTier

8

Odp: Raspberry Pi + Huawei E3372h-153

Problem rozwiązany, temat można zamknąć smile

Trzeba było użyć:

sudo ifconfig eth1 up
sudo dhclient eth1
WR1043ND v1/v2, R6220, IGEL-H820C, HP T610, HP T510, Wyse DX0D, 3COM 4200G
OpenWRT, Luci, LibreNMS, Domoticz, Nginx, ZeroTier