environment setting are as below:

1. ubuntu 14.04, linux kernel 4.4,OpenLinux(QuecLinux)

2. module: EC20-CE-TE-A

3. sim: Unicom

编译ql-ol-sdk/ql-ol-extsdk/example/data 例程

ricks@ubuntu:/home/share/project/ql-ol-sdk/ql-ol-extsdk/example/data$ ls
example_data_call_v2.c example_dual_apn.c example_single_apn.c Makefile
ricks@ubuntu:/home/share/project/ql-ol-sdk/ql-ol-extsdk/example/data$ make
arm-oe-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=softfp -
......
-I../../include -I/home/share/project/ql-ol-sdk/ql-ol-a-vfp-neon-oe-linux-gnueabi/usr/lib/libql_mgmt_client.so -o example_data_call_v2
ricks@ubuntu:/home/share/project/ql-ol-sdk/ql-ol-extsdk/example/data$ ls
example_data_call_v2 example_data_call_v2.o example_dual_apn.c example_single_apn example_single_apn.o
example_data_call_v2.c example_dual_apn example_dual_apn.o example_single_apn.c Makefile
ricks@ubuntu:/home/share/project/ql-ol-sdk/ql-ol-extsdk/example/data$

copy例程到QuecLinux,即EC20 module 的/usrdata目录下

ricks@ubuntu:/home/share/project/ql-ol-sdk$ adb push ./ql-ol-extsdk/example/data  /usrdata
push: ./ql-ol-extsdk/example/data/example_single_apn.c -> /usrdata/example_single_apn.c
push: ./ql-ol-extsdk/example/data/example_data_call_v2.o -> /usrdata/example_data_call_v2.o
push: ./ql-ol-extsdk/example/data/example_dual_apn.o -> /usrdata/example_dual_apn.o
push: ./ql-ol-extsdk/example/data/example_dual_apn -> /usrdata/example_dual_apn
push: ./ql-ol-extsdk/example/data/example_dual_apn.c -> /usrdata/example_dual_apn.c
push: ./ql-ol-extsdk/example/data/example_data_call_v2 -> /usrdata/example_data_call_v2
push: ./ql-ol-extsdk/example/data/example_single_apn -> /usrdata/example_single_apn
push: ./ql-ol-extsdk/example/data/Makefile -> /usrdata/Makefile
push: ./ql-ol-extsdk/example/data/example_single_apn.o -> /usrdata/example_single_apn.o
push: ./ql-ol-extsdk/example/data/example_data_call_v2.c -> /usrdata/example_data_call_v2.c
files pushed. files skipped.
KB/s ( bytes in .835s)

运行 example_dual_apn

/usrdata # ./example_dual_apn

log如下:

/usrdata # [QL_CLI][]:QL_WWAN_Initialize ret=!
[QL_CLI][]:nw_init_cb!
[QL_CLI][]:QL_WWAN_GetDataSrvHandle g_h_handle=!
[QL_CLI][]:QL_WWAN_SetProfileId ret =
[QL_CLI][]:QL_WWAN_SetIPVersion ret =
[QL_CLI][]:QL_WWAN_StartDataCall ret=!
[QL_CLI][]:Wait for network ready!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Network Ready!!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Call is connected!!
[QL_CLI][]:QL_WWAN_GetIPAddr ret = , valid_ip_cnt=; Interface IP address =10.74.177.45
[QL_CLI][]:QL_WWAN_GetDeviceName ret = , name=rmnet_data0
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Old address deleted !!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:New address is generated!!
[QL_CLI][]:Gateway IP address =10.74.177.46
[QL_CLI][]:Primary DNS address =120.80.80.80
[QL_CLI][]:Secondary DNS address=221.5.88.88
[QL_CLI][]:[APN0]: OK [QL_CLI][]:QL_WWAN_GetDataSrvHandle g_h_handle=!
[QL_CLI][]:QL_WWAN_SetProfileId ret =
[QL_CLI][]:QL_WWAN_SetIPVersion ret =
[QL_CLI][]:QL_WWAN_StartDataCall ret=!
[QL_CLI][]:Wait for network ready!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Network Ready!!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Call is connected!!
[QL_CLI][]:QL_WWAN_GetIPAddr ret = , valid_ip_cnt=; Interface IP address =10.107.130.219
[QL_CLI][]:QL_WWAN_GetDeviceName ret = , name=rmnet_data1
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:Old address deleted !!
[QL_CLI][]:APN[] dsi_net_evt_cb, evt=!
[QL_CLI][]:New address is generated!!
[QL_CLI][]:Gateway IP address =10.107.130.220
[QL_CLI][]:Primary DNS address =221.4.8.1
[QL_CLI][]:Secondary DNS address=0.0.0.0
[QL_CLI][]:[APN1]: OK

执行ifconfig命令:

/ # ifconfig
bridge0 Link encap:Ethernet HWaddr :::::
inet addr:192.168.225.1 Bcast:192.168.225.255 Mask:255.255.255.0
inet6 addr: fe80:::17ff:fe45:/ Scope:Link
UP BROADCAST MULTICAST MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (76.0 B) lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::/ Scope:Host
UP LOOPBACK RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (400.0 B) TX bytes: (400.0 B) rmnet0 Link encap:UNSPEC HWaddr ---------------
UP RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (776.0 B) rmnet_data0 Link encap:UNSPEC HWaddr ---------------
inet addr:10.74.177.45 Mask:255.0.0.0
inet6 addr: fe80::3d7f:a371:ef50:21c8/ Scope:Link
UP RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (388.0 B) rmnet_data1 Link encap:UNSPEC HWaddr ---------------
inet addr:10.107.130.219 Mask:255.0.0.0
inet6 addr: fe80::21b2:c928:28dc:eafc/ Scope:Link
UP RUNNING MTU: Metric:
RX packets: errors: dropped: overruns: frame:
TX packets: errors: dropped: overruns: carrier:
collisions: txqueuelen:
RX bytes: (0.0 B) TX bytes: (388.0 B)

其中rmnet_data0/1 Link encap都会分到一个ip地址。

运行quectel EC20 module example data的更多相关文章

  1. EC20 MODULE serial com log in passwd

    ec20 module would print debug info via debug uart, and you can log in by user root, the passwd is qu ...

  2. pyinstaller 打包生成exe之后运行提示‘no module name 'xxx'’错误

    python 3.7 pyinstaller 3.4 具体情况: pycharm中点击运行可成功执行,生成正确结果,没有报错. 双击run.py(程序运行的主文件),运行,可生成正确结果,没有报错. ...

  3. vs2017下发现解决python运行出现‘No module named "XXX""的解决办法

    对于使用vs2017开发python程序无疑发现,在解决方案资源管理器中设置把两个xxx.py,yyy.py文件都设置为启动文件,然后分别在vs2017这个IDE下运行这个两个文件在项目工程中运行,发 ...

  4. Scrapy运行ImportError: No module named win32api错误

    windows系统上出现这个问题的解决需要安装Py32Win模块,更方便的做法是: pip install pypiwin32

  5. React Native 0.56.1初始化项目运行出现错误(Module `AccessibilityInfo` does not exist in the Haste module map)

    当使用react-native init myApp初始化项目时,出现以下错误 出现以上错误的原因是因为0.56.1版本初始化项目就有问题,请见 https://github.com/facebook ...

  6. am335x system upgrade kernel ec20 simcom7600ce(十一)

    1      Scope of Document This document describes 4G hardware design, support quectel ec20 4G module/ ...

  7. Android Data Binding实战(一)

    在今年Google I/O大会上,Google推出Design Library库的同时也推出了Android Data Binding,那么什么是Data Binding?其名曰数据绑定,使用它我们可 ...

  8. 大数据技术之_19_Spark学习_04_Spark Streaming 应用解析 + Spark Streaming 概述、运行、解析 + DStream 的输入、转换、输出 + 优化

    第1章 Spark Streaming 概述1.1 什么是 Spark Streaming1.2 为什么要学习 Spark Streaming1.3 Spark 与 Storm 的对比第2章 运行 S ...

  9. Android Studio导入github下载的project和module

    前言:我们以前eclispe时代, 经常都是跑到github浏览第三方开源资源,然后下载下来,运行一下sample之类的,学习没有接触的第三方安卓库,但是到了Android Studio,在githu ...

随机推荐

  1. Vue.js 源码学习笔记 -- 分析前准备2 -- Object.defineProperty

    解析神奇的 Object.defineProperty   几行代码看他怎么用   var a= {} Object.defineProperty( a, "b", { value ...

  2. SWIFT中正则表达式验证邮箱

    在playground内写入以下代码,正则关键字跟其它语言的没什么区别 class Regex { let internalExpression:NSRegularExpression let pat ...

  3. UI基础:UILabel.UIFont 分类: iOS学习-UI 2015-07-01 19:38 107人阅读 评论(0) 收藏

    UILabel:标签 继承自UIView ,在UIView基础上扩充了显示文本的功能.(文本框) UILabel的使用步骤 1.创建控件 UILabel *aLabel=[[UILabel alloc ...

  4. Linux C socket 封装

    /************************************************************************** * Linux C socket 封装 * 声明 ...

  5. Unity3D游戏-愤怒的小鸟游戏源码和教程(一)

    Unity愤怒的小鸟游戏教程 本文提供全流程,中文翻译.Chinar坚持将简单的生活方式,带给世人!(拥有更好的阅读体验 -- 高分辨率用户请根据需求调整网页缩放比例) AngryEva游戏效果: 1 ...

  6. hdu2065 "红色病毒"问题 指数型母函数

    关于指数型母函数的题目,通过用公式并展开得到系数做的吧,取最后两位就是对100取模 #include<stdio.h> int QuickPow(int a,long long n,int ...

  7. stenciljs 学习一 web 组件开发

    stenciljs 介绍参考官方网站,或者 https://www.cnblogs.com/rongfengliang/p/9706542.html 创建项目 使用脚手架工具 npm init ste ...

  8. Kettle入门教程

    最近做的项目用到了ETL工具Kettle,这个工具相当好用,可以将各种类型数据作为数据流,经过处理后再生成各种类型的数据.正如其名“水壶”,将各个地方的水倒进水壶里,再用水壶倒入不同的容器.不过一来初 ...

  9. SQL语言:DDL/DML/DQL/DCL

    SQL (Structure Query Language)语言是数据库的核心语言. SQL 的发展是从1974年开始的,其发展过程如下: 1974年-----由Boyce和Chamberlin提出, ...

  10. mysql 存储过程知识点

    一.创建存储过程 create procedure sp_name() begin ......... end 二.调用存储过程 1.基本语法:call sp_name(): 注意:存储过程名称后面必 ...