米尔小助手1 发表于 2023-6-7 11:02:03

【米尔瑞萨RZ/G2L开发板-试用体验】4g模块上网

一个接插件的玩笑上次开机后,发现一个问题想看背面标识翻起时发现板卡就掉电了,测试了一下12V电源的插头发现无论如何弯折都没有问题,然后查看《MYC-YG2LX 硬件设计指南-1.0.pdf》中的电源接口
https://file1.elecfans.com/web2/M00/88/88/wKgaomRrQRaAJ7WYAAEfISZhuxY410.png
https://file1.elecfans.com/web2/M00/88/89/wKgZomRrQSiADNmPAADMqvILPbI077.png

果断找来一个DC公头将VCC接到1,GND接到6.然后随意翻动板卡,板卡再也不和开玩笑了。

https://file1.elecfans.com/web2/M00/88/88/wKgaomRrQZGAf4sWACZLt3nCYjk033.png

说回正题硬件连接硬件连接上板卡,USB设备简单直接上就行。

https://file1.elecfans.com/web2/M00/88/89/wKgZomRrQgmAcoAkACj3dNbALfE447.png
驱动加载查看VID和PID

https://file1.elecfans.com/web2/M00/88/88/wKgaomRrQq-AAPkgAAAt-2AtoJc531.png
其中: 2c7c:0125 EC20的VID和PIDdmesg查看kernel加载模块情况

https://file1.elecfans.com/web2/M00/88/89/wKgZomRrRH2ADQIHAAEUcy_JRuo473.png
AT指令初步测试查询信号强度

https://file1.elecfans.com/web2/M00/88/88/wKgaomRrQ6iAC2jnAAAdxFenGQ4512.png
28是信号质量,范围在0~31之间(99表示无信号),数值越大,信号越大查询卡是否识别

https://file1.elecfans.com/web2/M00/88/88/wKgaomRrRAKAEATAAAAPjj-P3GI120.png
READY代表就绪查询运营商

https://file1.elecfans.com/web2/M00/88/88/wKgaomRrRDyAOTAZAAAVauk2Iuw742.png
移动卡root@myir-yg2lx:~# quectel-CM -s cmnet &
12218
root@myir-yg2lx:~# Quectel_QConnectManager_Linux_V1.6.0.16
Find /sys/bus/usb/devices/1-1.1 idVendor=0x2c7c idProduct=0x125, bus=0x001, dev=0x005
Auto find qmichannel = /dev/cdc-wdm0
Auto find usbnet_adapter = wwan0
netcard driver = qmi_wwan, driver version = 5.10.83-cip1-yocto-standard
ioctl(0x89f3, qmap_settings) failed: No such file or directory, rc=-1
Modem works in QMI mode
cdc_wdm_fd = 7
Get clientWDS = 7
Get clientDMS = 1
Get clientNAS = 2
Get clientUIM = 1
Get clientWDA = 1
requestBaseBandVersion EC20CEHDLGR06A09M1G
requestGetSIMStatus SIMStatus: SIM_READY
requestSetProfile cmnet///0
requestGetProfile cmnet///0
requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
ifconfig wwan0 0.0.0.0
ifconfig wwan0 down
requestSetupDataCall WdsConnectionIPv4Handle: 0x87071740
ifconfig wwan0 up
busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: sending discover
udhcpc: no lease, failing
File:ql_raw_ip_mode_check Line:127 udhcpc fail to get ip address, try next:
ifconfig wwan0 down
echo Y > /sys/class/net/wwan0/qmi/raw_ip
ifconfig wwan0 up
busybox udhcpc -f -n -q -t 5 -i wwan0
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending select for 10.140.144.114
udhcpc: lease of 10.140.144.114 obtained, lease time 7200
RTNETLINK answers: File exists
查看一下ip地址,
https://file1.elecfans.com/web2/M00/88/88/wKgaomRrSZGACjaDAAJuk4jEym8361.png轻松4g上网。

李俊 发表于 2023-6-8 14:38:56

能上网是真的很酷:lol:lol:lol

rx-ted 发表于 2023-7-8 20:13:44

Hello,我看到你焊接DC12V,官方那个没供电吗?

米尔小助手1 发表于 2023-7-21 08:55:04

rx-ted 发表于 2023-7-8 20:13
Hello,我看到你焊接DC12V,官方那个没供电吗?

有供电的
页: [1]
查看完整版本: 【米尔瑞萨RZ/G2L开发板-试用体验】4g模块上网