操作步骤
1、生成ttyUSB节点
QT_6818\kernel\drivers\usb\serial  option.c

static const struct usb_device_id option_ids[] = {
//added by rpdzkj ivy for 3G 2015.11.6
  • { USB_DEVICE(0x05C6, 0x9090) },  //for UC15
  •         { USB_DEVICE(0x05C6, 0x9003) },  //for UC20
  •         { USB_DEVICE(0x05C6, 0x9215) },  //for EC20
  •         { USB_DEVICE(0x2c7c, 0x0125) },         //for EC20 new version

[color=rgb(85, 85, 85) !important]复制代码

增加EC20的ID
编译烧写后会生成ttyUSB*

[color=rgb(85, 85, 85) !important]复制代码


2、添加拨号脚
把附件里的wcdma-EC20放到U盘,接到开发板

[color=rgb(85, 85, 85) !important]复制代码


3、down掉以太网,以太网静态IP设置在开机使能,会影响4G网络节点使用,所以要down掉

[color=rgb(85, 85, 85) !important]复制代码


4、拨号

[color=rgb(85, 85, 85) !important]复制代码


提示信息如下
  • [[email protected]]# abort on (NO CARRIER)
  • abort on (ERROR)
  • abort on (NO DIALTONE)
  • abort on (BUSY)
  • abort on (NO ANSWER)
  • send (AT^M)
  • expect (OK)
  • AT^M^M
  • OK
  • -- got it
  • send (ATZ^M)
  • expect (OK)
  • ^M
  • ATZ^M^M
  • OK
  • -- got it
  • send (AT+CGDCONT=1,\"IP\",\"3gnet\",,0,0^M)
  • expect (OK)
  • ^M
  • AT+CGDCONT=1,"IP","3gnet",,0,0^M^M
  • OK
  • -- got it
  • send (AT+CFUN=1^M)
  • expect (OK)
  • ^M
  • AT+CFUN=1^M^M
  • OK
  • -- got it
  • send (ATDT*99#^M)
  • expect (CONNECT)
  • ^M
  • ATDT*99#^M^M
  • CONNECT
  • -- got it
  • send (^M)
  • Serial connection established.
  • Using interface ppp0
  • Connect: ppp0 <--> /dev/ttyUSB3
  • CHAP authentication succeeded
  • CHAP authentication succeeded
  • Could not determine remote IP address: defaulting to 10.64.64.64
  • local  IP address 100.107.64.108
  • remote IP address 10.64.64.64
  • primary   DNS address 202.96.128.86
  • secondary DNS address 202.96.134.133

[color=rgb(85, 85, 85) !important]复制代码


5、查看 ppp0
  • [[email protected]]# ifconfig
  • lo        Link encap:Local Loopback
  •           inet addr:127.0.0.1  Mask:255.0.0.0
  •           inet6 addr: ::1/128 Scope:Host
  •           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  •           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  •           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  •           collisions:0 txqueuelen:0
  •           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  • ppp0      Link encap:Point-to-Point Protocol
  •           inet addr:100.107.64.108  P-t-P:10.64.64.64  Mask:255.255.255.255
  •           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  •           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
  •           TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
  •           collisions:0 txqueuelen:3
  •           RX bytes:52 (52.0 B)  TX bytes:58 (58.0 B)
  • [[email protected]]#

[color=rgb(85, 85, 85) !important]复制代码


6、上网测试
QT系统使用4G上网

相关文章: