调试准备工作:
1. Firefly-RK3399 Ubuntu 16.04
2. EC20 4g组件
3. 移动卡/联通卡,不知道 物联网卡
官方 Ubuntu ec20 固件,已做处理,如果检测到 ec20 模组,并 sim卡 正常识别,则自动启动[/url][url=]quectel-CM 获取 IP,不必做其他处理[/url]RK3288 调试流程同样试用
流程:
1. 确定打上附件驱动补丁 ----> ec20-support.tar.gz
对应log 提示
[ 1110.823457] usb 1-1.4: New USB device found, idVendor=2c7c, idProduct=0125
[ 1110.824191] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1110.824987] usb 1-1.4: Product: Android
[ 1110.825345] usb 1-1.4: Manufacturer: Android
[ 1110.827980] op
tion 1-1.4:1.0: GSM modem (1-port) converter detected
[ 1110.829302] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[ 1110.831007] option 1-1.4:1.1: GSM modem (1-port) converter detected
[ 1110.832390] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[ 1110.834983] option 1-1.4:1.2: GSM modem (1-port) converter detected
[ 1110.836853] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[ 1110.839196] option 1-1.4:1.3: GSM modem (1-port) converter detected
[ 1110.841708] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[ 1110.844161] idVendor 11388 idP 293 bnum 5 ec20 det false
[ 1110.845863] qmi_wwan 1-1.4:1.4: cdc-wdm0: USB WDM device
[ 1110.846381] qmi_wwan 1-1.4:1.4: Quectel EC25&EC21&EC20R2.0&EG91&EG95&EG06&EP06&EM06&BG96 work on RawIP mode
[ 1110.853010] qmi_wwan 1-1.4:1.4 wwan0: register 'qmi_wwan' at usb-fe3c0000.usb-1.4, WWAN/QMI device, f6:29:fe:a2:e1:32
2. 内核 qmi 驱动配置打开
CONFIG_USB_NET_QMI_WWAN=y
重新编译,更新板子内核
3. 板子安装 deb包,拨号程序获取 IP 所需要的依赖包
$ sudo apt-get install busybox udhcpc
4. 附件 ---> default.script.tar.gz , Quectel_Linux_ConnectManager_SR01A01V21.zip 拷贝到 Firefly-RK3399 上
--- default.script 拷贝到
开发板 /usr/share/udhcpc/default.script , 缺少文件夹,自行创建
--- Quectel_Linux_ConnectManager_SR01A01V21.zip
|----- EC20 获取上网 IP 所需要的拨号程
|------ 开发板上解包后,执行
make
得到 quectel-CM 二进制程
FAQs
1.
$ mmcli -m 0
查看模组状态,如 sim卡是否正常识别等...
2.
$ systemctl status ec20.service
查看 quectel-CM 拨号程序 服务是否正常运行
原作者:luvings