在学习android4.3时,进行3G模块调试时碰上问题 ,3G为华为E261上网卡,卡为联通WCDMA,
按找的资料,配置内核 :
Device Drivers---→
USB support---→
<*>USB SerialConverter support--→
[*]USB Generic Serial Driver
<*>USB driver for GSM and CDMA modems
Device Drivers--→
Network device support---→
<*> PPP (point-to-point protocol) support
[*] PPP multilink support (EXPERIMENTAL)
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> PPP Deflate compression
<*> PPP BSD-Compress compression
修改usb/serial/option.c文件,增加对厂商与卡的ID支持:
HUAWEI_VENDOR_ID 0x12D1(已有)
HUAWEI_PRODUCT_E261 0x1446
{ USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E261) },
编译生成usb_modeswitch/pppd/chat工具,然后用usb_modeswitch -W -c /etc/usb_modeswitch.conf生成ttyUSB0,ttyUSB1,ttyUSB2,
在板子上调用pppd call wcmda&命令,无法上网,
输出log信息如下:
timeout set to 5 seconds
expect
alarm
Failed
不知道有哪位高手碰到和解决过这问题,能指点一下吗? |