This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
library:rk3568:4gmodule [2022/11/21 19:55] lhaosen [1.3 mmcli] |
library:rk3568:4gmodule [2023/07/18 00:37] (current) lhaosen [AT 功能] |
||
---|---|---|---|
Line 2: | Line 2: | ||
连接EC20模块 | 连接EC20模块 | ||
+ | |||
+ | ===== - 主要命令 ===== | ||
+ | lsusb | ||
+ | quectel-CM | ||
+ | mmcli -m 0 | ||
+ | ip address | ||
+ | ping | ||
===== - 基本命令例子 ===== | ===== - 基本命令例子 ===== | ||
Line 19: | Line 26: | ||
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | ||
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | ||
+ | </ | ||
+ | |||
+ | 执行 lsusb 命令,如果出现如下内容则模块已经成功被 Linux 系统识别到。 | ||
+ | |||
+ | Bus 002 Device 009: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem | ||
+ | |||
+ | 其中,0x2C7C 和 0x0125 分别是 Quectel EC25/EC20 R2.0 的 VID 和 PID 编号。 | ||
+ | |||
+ | ==== - AT指令接口 ==== | ||
+ | |||
+ | 当连接模块并加载 USB 驱动成功后,在 /dev 目录下将会创建出几个 tty 设备节点。例如 / | ||
+ | |||
+ | < | ||
+ | root@firefly:/ | ||
+ | crw-rw---- 1 root dialout 188, 0 Jun 7 16:37 / | ||
+ | crw-rw---- 1 root dialout 188, 1 Jun 28 2021 / | ||
+ | crw-rw---- 1 root dialout 188, 2 Jun 7 16:37 / | ||
+ | crw-rw---- 1 root dialout 188, 3 Jun 7 16:36 / | ||
+ | </ | ||
+ | |||
+ | |||
+ | 测试AT指令 | ||
+ | < | ||
+ | root@firefly:/ | ||
+ | [13] 1137 | ||
+ | root@firefly:/ | ||
+ | |||
+ | Quectel | ||
+ | EC20F | ||
+ | Revision: EC20CEFILGR06A07M1G | ||
+ | |||
+ | OK | ||
+ | root@firefly:/ | ||
+ | [14] 1138 | ||
+ | root@firefly:/ | ||
+ | root@firefly:/ | ||
+ | OK | ||
+ | |||
+ | |||
+ | root@firefly: | ||
+ | [4] 1065 | ||
+ | root@firefly: | ||
+ | root@firefly: | ||
+ | +QCCID: 89860000191998625782 | ||
+ | |||
+ | OK | ||
+ | |||
</ | </ | ||
Line 129: | Line 183: | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== - 双卡控制 ==== | ||
+ | |||
+ | 信号名: CARD_SEL \\ | ||
+ | 核心模块引脚: 276 \\ | ||
+ | GPIO:GPIO3_C5 | ||
+ | PIN No: 117 = 32 * 3 + 8 * 2 + 5 \\ | ||
+ | 功能: 0 : eSim; 1:卡座 | ||
+ | |||
+ | 默认输出: 1 | ||
+ | |||
+ | |||
+ | rk3568-firefly-core.dtsi 删除 GPIO3_C5的驱动。 | ||
+ | |||
+ | |||
+ |