標籤:
尊敬的大大、感謝你抽空指導我
我的裝置是db120 mu350 和廣東無限卡
版本是OpenWrt Backfire 10.03.336 DIY full
一、 沒有安裝到kmod-usb-acm 為什嗎?
二、 我在終端入啟路由,插上MU350,WinSCP串連到路由,開啟終端輸入命令查看是否MU350已被識別。顯示如下 (與你所寫的不一樣,請問我的mu350識別了沒有)
/etc/modules.d$ dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usbcore: registered new interface driver rtl8187
usbcore: registered new interface driver p54usb
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb 2-1: new full speed USB device using bcm63xx_ohci and address 2
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbserial
usb 2-1: configuration #1 chosen from 1 choice
usbserial_generic 2-1:1.0: generic converter detected
usb 2-1: generic converter now attached to ttyUSB0
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver zd1211rw
三、這一步省略了上面是講的3G上網卡的識別。如你的3G上網卡不能關閉儲存模式,那就要用到usb-modeswitch了,這個軟體前面我們已經裝了。
我們直接建立/etc/usb-modeswitch.conf,內容如下:
[Copy to clipboard] [ - ]
CODE:
# ZTE MU350
#
# Contributor: Dale Lane
DefaultVendor= 0x19d2;
DefaultProduct= 0x0003
# choose one of these:
DetachStorageOnly=0
MessageContent=5553424312345678000000000000061b000000020000000000000000000000
再執行usb_modeswitch -W,就能把MU350切換到modem模式了。
使用usb-modeswitch後,裝置不一定是/dev/usb/tts/0或者/dev/ttyUSB0,也有可能是/dev/usb/tts/1或者/dev/ttyUSB1
3G網卡的識別最重要的是/etc/usb-modeswitch.conf的建立,相關網卡的資訊需要大家一起研究和收集了。
另外如果華為的卡用usb-modeswitch不能被識別,可以試試安裝這個包:huaweiaktbbo
[Copy to clipboard] [ - ]
CODE:
opkg install huaweiaktbbo
然後直接運行命令:huaweiaktbbo
[Copy to clipboard] [ - ]
CODE:
huaweiaktbbo
RG100A路由貓刷openwrt使用3G上網卡與寬頻合并教程http://blog.sina.com.cn/s/blog_64b4ea3a0101655r.html
rg100a使用OpenWrt,單路由實現多個3G上網卡寬頻合并: http://forum.51nb.com/viewthread.php?tid=1034040&extra=page%3D1&highlight=openwrt%2B3g%CD%F8%BF%A8&page=1
3G 無線上網卡撥號 -- 以華為 EC189 為例
USB 3G 網卡預設模式為快閃記憶體裝置,使用 usb-modeswitch 切換 3G 網卡為 usbserial 模式,最終使用 pppd 撥接。
核心配置
只需選上 ppp 和 usbserial
DeviceDrivers --->
[*] Network device support-->
<*> PPP (point-to-point protocol) support
[*] PPP multilink support (EXPERIMENTAL)
[*] PPP filtering
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> PPP Deflate compression
<*> PPP BSD-Compress compression
<*> PPP MPPE compression (encryption) (EXPERIMENTAL)
[*]USB support --->
<*> USB Serial Converter support --->
[*] USB Generic Serial Driver
<*> USB driver for GSM and CDMA modems
openwrt 所需軟體
ppp
chat
comgt
libpthread
librt
libusb-1.0
usb-modeswitch
zlib
openwrt 設定檔
網路設定檔 /etc/config/network
configinterface wan
optionifname ‘ppp0‘
optionservice ‘evdo‘
optiondevice ‘/dev/ttyUSB0‘
optionusername ‘[email protected]‘
optionpassword ‘vnet.mobi‘
optionproto 3g
optionauto 1
chat 設定檔 /etc/chatscripts/evdo.chat
ABORT BUSY
ABORT ‘NO CARRIER‘
ABORT ERROR
REPORT CONNECT
TIMEOUT10
‘‘ AT
‘OK-+++\c-OK‘ATH0
TIMEOUT40
‘‘ AT
OK ‘ATDT#777‘
CONNECT‘‘
vi /etc/config/network
config interface ‘wan‘
#option ifname ‘eth0‘
#option proto ‘dhcp‘
option proto ‘3g‘
option service ‘evdo‘
option username ‘[email protected]‘
option password ‘vnet.mobi‘
option device ‘/dev/ttyUSB0‘
chat設定檔/etc/chatscripts/evdo.chat
ABORT BUSY
ABORT ‘NO CARRIER‘
ABORT ERROR
REPORT CONNECT
TIMEOUT10
‘‘ AT
‘OK-+++\c-OK‘ATH0
TIMEOUT40
‘‘ AT
OK ‘ATDT#777‘
CONNECT‘‘
openwrt使用3G上網卡