cht台灣個人Silice:止水
adm Find login register

Debian Huawei E161 3.5G USB Card Driver

Silice
joined: 2007-11-22
posted: 305
promoted: 47
bookmarked: 17
1subject: Debian Huawei E161 3.5G USB Card DriverPromote 0 Bookmark 02010-01-05quote  

把E161接上usb做一些修改(讓系統識為Huawei Technologies Co., Ltd. E620 USB Modem)

# aptitude install usb-modeswitch
# vim  /etc/usb_modeswitch.conf

######################################################
# Huawei E161
DefaultVendor=  0x12d1
DefaultProduct= 0x1446
 
TargetVendor=   0x12d1
TargetProduct=  0x1001
 
MessageContent="55534243000000000000000000000011060000000000000000000000000000"
 
CheckSuccess=5

 

讓系統重開後自動執行usb_modeswitch

# vim /etc/udev/rules.d/50-huawei.rules (敝人重開機Debian建議使用ATTR取代SYSFS,故修改如下)

SUBSYSTEM=="usb", ATTR{idProduct}=="1446", ATTR{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch" 

# udevadm control --reload-rules (原url把_搞錯了,敝人改回-就可以在開機後執行變更,以便直接撥接)

# aptitude install  wvdial
# vim /etc/wvdial.conf 

[Dialer Defaults]
Phone = *99#
APN =
Username = username
Password = password
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem

先將sim卡裝在手機上把sim卡密碼關掉(就是不要設密碼)
使用時先插上網卡E161再開機
執行lsusb會看到Huawei Technologies Co., Ltd. E620 USB Mode
執行wvdial

# wvdial &

經測試reboot後可以直接執行wvdial即可
可是關了電源後再開機就需要先執行usb_modeswitch再執行wvdial(應該是敝人還沒了解原url的意思)

以上
感謝

參考url如下:
http://www.kworx.de/2009/11/huawei-e161-usb-surfstick-unter-linux/
http://plog.longwin.com.tw/my_note-unix/2008/04/29/ubuntu_debian_linux_wireless_usb_card_driver_2008



edited: 3
Silice
joined: 2007-11-22
posted: 305
promoted: 47
bookmarked: 17
2subject: Promote 0 Bookmark 02010-01-14quote  

同樣的方法
換了不一樣的linux-image後就很正常了
接上usb就可以直接撥接了
敝人不知道問題出在那裡

敝人現在使用2.6.32-trunk-686-bigmem

cht台灣個人Silice:止水
adm Find login register
views:9665