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