OK1043A-C开发板RM500Q-GL调试笔记
OK1043A-C开发板RM500Q-GL调试笔记 2021.7.9
设置串口工具,使用RS-232线缆将开发版与PC连接,使用USB转COM线缆需安装驱动,检查任务管理器中COM口状态,图中所示使用COM3口通讯。
5G转接卡安装SIM卡并上电,通过USB与开发版连接,打开putty,按照如图所示配置串行口为COM3,波特率为115200。
按回车进入命令行界面,用户名和密码均为root
移远 RM500Q-GL 模块测试:
控制台输入lsusb检查5G模块是否连接成功
使用 ifconfig 命令可以看到移远 RM500Q-GL 5G 模块模块产生的节点名称为 eth0
以插入移动 SIM 卡测试 5G 上网为例,测试是否连接外网:
root@localhost:~# /root/Net_Tools/quectel-CM-5G & [1] 4961 [01-01_08:01:34:141] Quectel_QConnectManager_Linux_V1.4.2 [01-01_08:01:34:142] Find /sys/bus/usb/devices/2-1 idVendor=0x2c7c idProduct=0x800 [01-01_08:01:34:142] Auto find qmichannel = /dev/qcqmi0 [01-01_08:01:34:142] Auto find usbnet_adapter = eth0 [01-01_08:01:34:143] qmap_mode = 1, muxid = 0x81, qmap_netcard = eth0 [01-01_08:01:34:143] Modem works in QMI mode [01-01_08:01:34:143] qmap_mode = 1, muxid = 0x81, qmap_netcard = eth0 [01-01_08:01:34:170] Get clientWDS = 7 [01-01_08:01:34:203] Get clientDMS = 8 [01-01_08:01:34:234] Get clientNAS = 9 [01-01_08:01:34:267] Get clientUIM = 10 [01-01_08:01:34:299] requestBaseBandVersion RM500QGLAAR01A01M4G_BETA_20200330F 1 [Mar 15 2020 04:00:00] [01-01_08:01:34:427] requestGetSIMStatus SIMStatus: SIM_READY [01-01_08:01:34:459] requestGetProfile[1] ///0 [01-01_08:01:34:490] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE [01-01_08:01:34:522] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED [01-01_08:01:34:554] requestSetupDataCall WdsConnectionIPv4Handle: 0xf5fb72f0 [01-01_08:01:34:683] ifconfig eth0 up [01-01_08:01:34:688] Fail to access /usr/share/udhcpc/default.script, errno: 2 (No such file or directory) [01-01_08:01:34:688] busybox udhcpc -f -n -q -t 5 -i eth0 udhcpc: started, v1.27.2 udhcpc: sending discover udhcpc: sending select for 10.134.255.146 udhcpc: lease of 10.134.255.146 obtained, lease time 7200
拨号完成之后需要运行 dhclient 命令
root@localhost:~# dhclient root@localhost:~# ping www.baidu.com -I eth0 -c 5 PING www.a.shifen.com (39.156.66.14) from 10.134.255.146 eth0: 56(84) bytes of data. 64 bytes from 39.156.66.14 (39.156.66.14): icmp_seq=1 ttl=51 time=27.9 ms 64 bytes from 39.156.66.14 (39.156.66.14): icmp_seq=2 ttl=51 time=25.4 ms 64 bytes from 39.156.66.14 (39.156.66.14): icmp_seq=3 ttl=51 time=27.8 ms 64 bytes from 39.156.66.14 (39.156.66.14): icmp_seq=4 ttl=51 time=26.9 ms 64 bytes from 39.156.66.14 (39.156.66.14): icmp_seq=5 ttl=51 time=27.9 ms --- www.a.shifen.com ping statistics – 5 packets transmitted, 5 received, 0% packet loss, time 4006ms rtt min/avg/max/mdev = 25.471/27.245/27.993/0.979 ms