主题 : Quectel 4G模組使用 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 147745
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2022-07-29
最后登录: 2022-08-09
楼主  发表于: 19天前

 Quectel 4G模組使用

您好,我手上有一片Nanopi Neo Core需要使用EC20的LTE模組,參照的這裡的使用方式
How to use 4G Module on NanoPC-T4

但是在兩個不同版本的系統上確有不同的結果,
在舊的Ubuntu 16.04 (nanopi-neo-core_sd_friendlycore-xenial_4.14_armhf_20210425.img.zip)上是可以正確連結的
复制代码
  1. # quectel-CM
  2. [07-29_11:39:27:685] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.34
  3. [07-29_11:39:27:686] quectel-CM profile[1] = (null)/(null)/(null)/0, pincode = (null)
  4. [07-29_11:39:27:689] Find /sys/bus/usb/devices/4-1 idVendor=2c7c idProduct=0125
  5. [07-29_11:39:27:690] Find /sys/bus/usb/devices/4-1:1.4/net/wwan0
  6. [07-29_11:39:27:690] Find usbnet_adapter = wwan0
  7. [07-29_11:39:27:690] Find /sys/bus/usb/devices/4-1:1.4/usbmisc/cdc-wdm0
  8. [07-29_11:39:27:690] Find qmichannel = /dev/cdc-wdm0
  9. [07-29_11:39:27:702] /proc/551/fd/7 -> /dev/cdc-wdm0
  10. [07-29_11:39:27:702] /proc/551/exe -> /usr/lib/libqmi/qmi-proxy
  11. [07-29_11:39:29:708] cdc_wdm_fd = 7
  12. [07-29_11:39:29:788] Get clientWDS = 1
  13. [07-29_11:39:29:820] Get clientDMS = 1
  14. [07-29_11:39:29:852] Get clientNAS = 2
  15. [07-29_11:39:29:884] Get clientUIM = 1
  16. [07-29_11:39:29:916] Get clientWDA = 1
  17. [07-29_11:39:29:948] requestBaseBandVersion EC20CEHCLGR06A01M1G_AUD
  18. [07-29_11:39:30:012] requestSetEthMode QMUXResult = 0x1, QMUXError = 0x46
  19. [07-29_11:39:30:044] requestGetSIMStatus QMUXResult = 0x1, QMUXError = 0x5e
  20. [07-29_11:39:30:076] requestGetProfile[1] Internet///0
  21. [07-29_11:39:30:108] requestRegistrationState MCC: 466, MNC: 5, PS: Attached, DataCap: LTE
  22. [07-29_11:39:30:140] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
  23. [07-29_11:39:30:204] requestRegistrationState MCC: 466, MNC: 5, PS: Attached, DataCap: LTE
  24. [07-29_11:39:30:236] requestSetupDataCall WdsConnectionIPv4Handle: 0x86ac4000
  25. [07-29_11:39:30:300] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
  26. [07-29_11:39:30:332] ifconfig wwan0 up
  27. [07-29_11:39:30:364] Fail to access /usr/share/udhcpc/default.script, errno: 13 (Permission denied)
  28. [07-29_11:39:30:364] busybox udhcpc -f -n -q -t 5 -i wwan0
  29. [07-29_11:39:30:399] udhcpc (v1.23.2) started
  30. [07-29_11:39:30:428] Sending discover...
  31. [07-29_11:39:30:468] Sending select for 100.78.96.126...
  32. [07-29_11:39:30:508] Lease of 100.78.96.126 obtained, lease time 7200
  33. ifconfig wwan0
  34. wwan0     Link encap:Ethernet  HWaddr 02:e0:86:8f:66:7d
  35.           inet6 addr: fe80::e0:86ff:fe8f:667d/64 Scope:Link
  36.           UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
  37.           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
  38.           TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
  39.           collisions:0 txqueuelen:1000
  40.           RX bytes:612 (612.0 B)  TX bytes:768 (768.0 B)

新版的Ubuntu 20.04 (nanopi-neo-core_eflasher_friendlycore-focal_4.14_armhf_20210618.img.zip)卻不行
复制代码
  1. # quectel-CM
  2. [07-29_19:32:27:190] WCDMA&LTE_QConnectManager_Linux&Android_V1.1.34
  3. [07-29_19:32:27:190] quectel-CM profile[1] = (null)/(null)/(null)/0, pincode = (null)
  4. [07-29_19:32:27:192] Find /sys/bus/usb/devices/4-1 idVendor=2c7c idProduct=0125
  5. [07-29_19:32:27:192] Find /sys/bus/usb/devices/4-1:1.4/net/wwan0
  6. [07-29_19:32:27:192] Find usbnet_adapter = wwan0
  7. [07-29_19:32:27:193] Find /sys/bus/usb/devices/4-1:1.4/usbmisc/cdc-wdm0
  8. [07-29_19:32:27:193] Find qmichannel = /dev/cdc-wdm0
  9. [07-29_19:32:27:211] cdc_wdm_fd = 7
  10. [07-29_19:32:27:293] Get clientWDS = 1
  11. [07-29_19:32:27:325] Get clientDMS = 1
  12. [07-29_19:32:27:357] Get clientNAS = 2
  13. [07-29_19:32:27:389] Get clientUIM = 1
  14. [07-29_19:32:27:421] Get clientWDA = 1
  15. [07-29_19:32:27:453] requestBaseBandVersion EC20CEHCLGR06A01M1G_AUD
  16. [07-29_19:32:27:549] requestGetSIMStatus SIMStatus: SIM_READY
  17. [07-29_19:32:27:581] requestGetProfile[1] internet///0
  18. [07-29_19:32:27:613] requestRegistrationState2 MCC: 466, MNC: 1, PS: Attached, DataCap: LTE
  19. [07-29_19:32:27:645] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
  20. [07-29_19:32:27:709] requestRegistrationState2 MCC: 466, MNC: 1, PS: Attached, DataCap: LTE
  21. [07-29_19:32:27:741] requestSetupDataCall WdsConnectionIPv4Handle: 0xe17c16f0
  22. [07-29_19:32:27:805] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
  23. [07-29_19:32:27:837] ifconfig wwan0 up
  24. [07-29_19:32:27:853] busybox udhcpc -f -n -q -t 5 -i wwan0
  25. udhcpc: started, v1.30.1
  26. udhcpc: sending discover
  27. udhcpc: sending discover
  28. udhcpc: sending discover
  29. udhcpc: sending discover
  30. udhcpc: sending discover
  31. udhcpc: no lease, failing


請問新舊的ROM這部分有啥差異嗎?謝謝
[ 此帖被oldrookie在2022-07-29 19:50重新编辑 ]