openwrt使用3G上网卡

尊敬的大大、感谢你抽空指导我
我的设备是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上网卡)