Linux 4G/5G 驱动移植、实践测试记录
本篇记录SIMCOM7600ce (LTE CAT4)、SIM8200 (5G) 模块驱动程序移植过程,备忘记录。
移植环境:
嵌入式平台NUC980 ARM9,内核版本linux-4.4 版本,内核中已经有 ppp 拨号软件,只需要在内核编译前打开设置选项就可以。采用拨号 RNDIS 方式。
1). 内核配置4G/5G 模块相关选项汇总如下
> Device Drivers
--> USB support
-- --> USB Serial Converter support
-- -- <*> USB driver for GSM and CDMA modems> Device Drivers
--> Network device support
-- -- <*> PPP (point-to-point protocol) support
-- -- <*> PPP BSD-Compress compression
-- -- <*> PPP Deflate compression
-- -- [*] PPP filtering
-- -- < > PPP MPPE compression (encryption)
-- -- [*] PPP multilink support
-- -- <*> PPP over Ethernet
-- -- < > PPP over IPv4 (PPTP)
-- -- < > PPP over L2TP
-- -- <*> PPP support for async serial ports
-- -- <*> PPP support for sync tty ports
注:其中关于网络部分基础选项、usb相关基础选项,根据需求自行添加。
2). 每个模块NDIS拨号脚本内容
2.1) simcom7600ce ndis 拨号脚本
echo -e "at\n\r">/dev/ttyUSB2
sleep 1
echo -e "AT+CUSBPIDSWICTH=9011,1,1\n\r">/dev/ttyUSB2
sleep 1
echo -e "at+csq?\n\r">/dev/ttyUSB2
sleep 1
# 电信卡的接入点ANP = ‘ctnet’
echo -e "at+cgdcont=6,\"ipv4v6\",\"ctnet\"\n\r">/dev/ttyUSB2
sleep 1
echo -e "at+cgact=1,1\n\r">/dev/ttyUSB2
sleep 2
echo -e "at+cgpaddr=1\n\r">/dev/ttyUSB2
sleep 3
udhcpc -i usb0 &
sleep 1
2.2) A7600C1 (LTE CAT1 模块)拨号脚本,此模块有自动识别运营商APN的功能,所以没有设置APN的内容。
echo -e "at\n\r">/dev/ttyUSB2
sleep 1
echo -e "AT+CUSBPIDSWICTH=9011,1,1\n\r">/dev/ttyUSB2
sleep 1
echo -e "at+dialmode=0\n\r">/dev/ttyUSB2
sleep 3
udhcpc -i usb0 &
sleep 3
2.3) SIM8200 5G模块的ndis拨号脚本
echo -e "at\n\r">/dev/ttyUSB2
sleep 1
# 此处配置pid = 9011 为ndis拨号方式,预防模块为其他类型拨号参数
echo -e "AT+CUSBCFG=usbid,1e0e,9011\n\r">/dev/ttyUSB2
sleep 1
echo -e "at+csq\n\r">/dev/ttyUSB2
sleep 1
# 移动卡的接入点ANP = ‘cmnet’
echo -e "at+cgdcont=1,\"ip\",\"cmnet\"\n\r">/dev/ttyUSB2
sleep 1
echo -e "at+cgact=1,1\n\r">/dev/ttyUSB2
sleep 2
echo -e "at+cgpaddr=1\n\r">/dev/ttyUSB2
sleep 1
echo -e "AT+cpsi?\n\r">/dev/ttyUSB2
sleep 3
udhcpc -i usb0 &
sleep 1
2.4) 华为ME909s 模块移动卡拨号脚本
echo -e "at\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+csq?\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+cgdcont=1,\"ip\",\"cmnet\"\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+cgact=1,1\n\r">/dev/ttyUSB0
sleep 3
echo -e "at+cgpaddr=1\n\r">/dev/ttyUSB0
sleep 1
echo -e "at^ndisdup=1,1\n\r">/dev/ttyUSB0
sleep 1
udhcpc -i usb0 &
sleep 1
2.5)深圳有方的N720 模块电信卡拨号
echo -e "at\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+csq?\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+cgdcont=1,\"ip\",\"ctnet\"\n\r">/dev/ttyUSB0
sleep 1
echo -e "at+cgact=1,1\n\r">/dev/ttyUSB0
sleep 2
echo -e "at+cgpaddr=1\n\r">/dev/ttyUSB0
sleep 3
udhcpc -i usb0 &
sleep 1
- 测试验证信息如下:
3.1) 华为me906s 模块插入后识别usb识别信息
usb 1-2: new high-speed USB device number 2 using nuc980-ehci
usb 1-2: New USB device found, idVendor=12d1, idProduct=15c1
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: HUAWEI Mobile V7R11
usb 1-2: Manufacturer: Huawei Technologies Co., Ltd.
usb 1-2: SerialNumber: 0123456789ABCDEF
cdc_ether 1-2:2.0 usb0: register 'cdc_ether' at usb-nuc980-ehci-2, CDC Ethernet Device, 02:1e:10:1f:00:00
option 1-2:2.2: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2:2.3: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
option 1-2:2.4: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
option 1-2:2.5: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
option 1-2:2.6: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4
3.2) SIMCOM8000 5G模块usb2.0打印信息
usb 1-2: new high-speed USB device number 3 using nuc980-ehci
usb 1-2: device descriptor read/64, error -71
//此处的pid为9001是 qcom 拨号方式
usb 1-2: New USB device found, idVendor=1e0e, idProduct=9001
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: SDXPRAIRIE-MTP _SN:0987AA7D
usb 1-2: Manufacturer: QCOM
usb 1-2: SerialNumber: 0123456789ABCDEF
option 1-2:1.0: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2:1.1: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
option 1-2:1.2: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2
option 1-2:1.3: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3
option 1-2:1.4: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4
至此,4G / 5G 模块移植完成。
Linux 4G/5G 驱动移植、实践测试记录相关推荐
- linux ec20 usb驱动移植,linux下EC20 4G模块驱动移植
之前有移植过ME909s MU609,主要工作就是把4G模块当做USB设备,挂载在linux上,驱动移植主要是能够让板子识别到模块,并产生SUB多个虚拟的节点,用于操作模块,拨号上网 关于内核的配置, ...
- Linux WIFI模块驱动移植
作者 QQ群:852283276 微信:arm80x86 微信公众号:青儿创客基地 B站:主页 https://space.bilibili.com/208826118 参考 请问有知道atheros ...
- 嵌入式linux usb wifi驱动移植
文档名称:嵌入式linux usb wifi驱动移植 版本历史 版本号 时间 内容 v1.0b001 2012-6-18 初始版本,介绍在嵌入式 ...
- Linux Charger IC 驱动移植总结
Linux Charger IC 驱动移植总结 文章目录 Linux Charger IC 驱动移植总结 1 设备树的基本知识 设备树的概念 设备树的基本结构 compatible属性 举个栗子 2 ...
- Linux移植4G上网卡,Linux下ME3760_v2驱动移植方式,中兴4G网卡移植
USB串口驱动添加 配置内核将USB driver for GSM and CDMA modems选上 Cd kernel Make menuconfig Devicedrivers->usb ...
- ubuntu加载4G模块驱动的调试过程记录
一个工业平板电脑,原本安装的是win7系统,希望改用ubuntu系统.其他的驱动都好说,关键是有个4G模块,平板电脑厂家使用的是一个小品牌的,ubuntu内部没有集成驱动,需要自己编译驱动.这个对li ...
- linux不同内核驱动移植问题,基于tiny4412的Linux内核移植 -- MMA7660驱动移植(九-2)...
作者信息 作者: 彭东林 邮箱:pengdonglin137@163.com QQ:405728433 平台简介 开发板:tiny4412ADK + S700 + 4GB Flash 要移植的内核版本 ...
- c920摄像头驱动 linux,4G模块驱动 - PanGuBoard - 湃兔核i2SOM
PanGu开发板搭载的Linux系统己经支持USB接口的4G通信模块,支持列表如下: 型号USB VID/PID厂商通讯方式安装方式通讯速度 EC20CFD-512-STD EC20CEHC-128- ...
- esp32系列(11):ESP32 IDF平台 mpu6050 DMP 驱动移植及测试上位机开发
目录 1 DMP 官方库介绍 1.1 DMP与MPL(Motion Processing Libraries)功能 1.2 运行MPL的硬件要求 1.3 Motion Driver 6.12 的架构 ...
- STM32MP157 Linux系统移植开发篇17:Linux内核摄像头驱动移植
本文章为<STM32MP157 Linux系统移植开发篇>系列中的一篇,笔者使用的开发平台为华清远见FS-MP1A开发板(STM32MP157开发板).stm32mp157是ARM双核,2 ...
最新文章
- 【五线谱】符干朝向与连音线 ( 符干朝向 | 第三线以下符干朝上 | 第三线以上符干朝下 | 连音线 )
- Ubuntu14.04引导菜单修复
- 如何让html重点表单自动对齐,html – 如何对齐多个表单元素?
- 数列互质(莫队算法)
- python 函数中的面试题
- html5在别的电脑上打不开,U盘在别台电脑上打不开的原因分析及解决
- linux编译安装mysql的意思,linux编译模式安装mysql 步骤说明
- matlab 串口 事件,MATLAB 串口通信
- 可道云kodexplorer隐藏免费版按钮及简单修改使用方法
- 2018版 主流SDR设备横向比较
- R3 3200G和R3 2200G性能差距 锐龙R33200G和R32200G对比
- Python地理数据处理 十一:空间参照系统(SRS)
- 工具类:登录密码的加解密(jsencrypt实现前端RSA非对称加密解密
- LSTM模型的推导与实现
- 开发者将 Sailfish 系统导入Nexus 5 运行流畅
- SpringBoot--简单处理高并发demo
- 关于SN74HC14PW
- 利用microPython驱动TM1638芯片
- 手机管理服务器文件夹,手机查看云服务器文件夹
- 基于 Python 的图书借阅管理系统(附报告源码)