OpenWrt Forum Archive

Topic: Huawei K4606

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone

i am having issues with the Huawei K4606  (3G Modem)
i am running Openwrt Attitude Adjustment 12.09 on X86 hardware

using various guides and sites on the net i think i have managed to get it to switch into modem mode but not sure why it isnt working

dmesg gives this


  [  184.570063] usb 1-1: new full-speed USB device number 2 using uhci_hcd
[  184.870174] scsi2 : usb-storage 1-1:1.0
[  185.290097] usb 1-1: USB disconnect, device number 2
[  186.820068] usb 1-1: new full-speed USB device number 3 using uhci_hcd

logread gives this

Jan 27 04:05:23 OpenWrt kern.info kernel: [  184.870174] scsi2 : usb-storage 1-1:1.0
Jan 27 04:05:23 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Vodafone(Huawei) Product=K4606 Serial=FFFFFFFFFFFFFFFF
Jan 27 04:05:23 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Selecting /etc/usb_modeswitch.d/12d1:1f19 for mode switching
Jan 27 04:05:23 OpenWrt syslog.notice usb_modeswitch: switching device 12d1:1f19 on 001/002
Jan 27 04:05:24 OpenWrt kern.info kernel: [  185.290097] usb 1-1: USB disconnect, device number 2
Jan 27 04:05:25 OpenWrt kern.info kernel: [  186.820068] usb 1-1: new full-speed USB device number 3 using uhci_hcd
Jan 27 04:05:54 OpenWrt user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Vodafone(Huawei) Product=K4606 Serial=?
Jan 27 04:05:54 OpenWrt user.notice usb-modeswitch: 1-1:1.1: Manufacturer=Vodafone(Huawei) Product=K4606 Serial=?

cat /proc/bus/usb/devices gives

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1578 Rev= 1.02
S:  Manufacturer=Vodafone(Huawei)
S:  Product=K4606
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=5ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

have setup the file at /etc/usb_modeswitch.d/12d1:1f19 with this in it

# Vodafone Mobile Broadband (Huawei) K4606

DefaultVendor=  0x12d1
DefaultProduct= 0x1f19

TargetVendor=  0x12d1
TargetProduct= 0x1578

MessageContent="555342437f0000000002000080000a11062000000000000100000000000000"

my  /etc/config/network has this in it that relates to the 3g

config interface 'wan3g'
        option ifname 'ppp0'
        option service 'umts'
        option proto '3g'
        option demand '0'
        option apn 'vfprepaymbb'
        option device '/dev/ttyUSB0'




have looked at these links for help
http://www.draisberghof.de/usb_modeswit … mp;p=11689

i think it have gotten it to switch properly but not sure if i am addressing it correctly in the network config file


any help you can give would be much appreciated

Thanks

Daniel

K4606 is not a ppp modem, it is a direct ethernet adapter. You need the cdc_ether driver (and possibly also the usbnet driver).
cdc_ether will create a new eth device in your system which you have to pull an ip address from with a dhcp client.

This thread helped me, thanks.

The K4606 can also be switched to a regular modem by sending it:

55534243123456780000000000000011060000000000000000000000000000

The new id will be 12d1:1001 so the TargetProduct should be 0x1001

The discussion might have continued from here.