首页 » 技术分享 » openwrt 3G无线上网卡拨号--以华为EC189为例

openwrt 3G无线上网卡拨号--以华为EC189为例

 

3G无线上网卡拨号--以华为EC189为例

USB 3G网卡默认模式为闪存设备,使用usb-modeswitch切换3G网卡为usbserial模式,最终使用pppd拨号上网。

内核配置

只需选上pppusbserial

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 'ctnet@mycdma.cn'

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''

转载自原文链接, 如需删除请联系管理员。

原文链接:openwrt 3G无线上网卡拨号--以华为EC189为例,转载请注明来源!

1