问题引出
EC25 RIL Implementation on Android 11 - Technical Subjects / Driver - Quectel Forums
日志分析
第一份日志提供只有部分radio日志,看不到一些关键信息
1. RIL 版本(reference-ril 的版本);
2. libril.so 的版本,既然使用了IRadio1.4 无法使用Android自带的libril;
3.内核驱动信息;
建议使用logcat -b all 抓日志;
从日志里可以看到的信息
06-12 13:13:00.700 D/RILJ ( 922): [0122]< DATA_REGISTRATION_STATE {.base = {.regState = REG_HOME, .rat = 14, .reasonDataDenied = -647901744, .maxDataCalls = 65535, .cellIdentity = {.cellInfoType = LTE, .cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte = [{.base = {.mcc = 502, .mnc = 12, .ci = 28315945, .pci = 120, .tac = 43505, .earfcn = 225}, .operatorNames = {.alphaLong = MY MAXIS, .alphaShort = MY MAXIS}, .bandwidth = 15000}], .cellIdentityTdscdma = []}}, .vopsInfo = {.lteVopsInfo = {.isVopsSupported = true, .isEmcBearerSupported = true}}, .nrIndicators = {.isEndcAvailable = false, .isDcNrRestricted = false, .isNrAvailable = false}} [PHONE0]
这个说明上层检测到模块已经注网了。
Line 685: 06-12 13:13:00.047 D/NDIS ( 506): ioctl(0x89f3, qmap_settings) failed: Operation not supported on transport endpoint, rc=-1
Line 686: 06-12 13:13:00.047 D/NDIS ( 506): qmap_mode = 0
Line 687: 06-12 13:13:00.047 D/NDIS ( 506): profile call_count: 1
Line 723: 06-12 13:13:00.099 D/NDIS ( 506): Get clientWDS = 5
Line 731: 06-12 13:13:00.131 D/NDIS ( 506): Get clientWDS = 6
Line 750: 06-12 13:13:00.164 D/NDIS ( 506): Get clientWDA = 1
Line 758: 06-12 13:13:00.197 D/NDIS ( 506): qmidev_wds_bind_mux_data_port_and_set_ip_family
Line 759: 06-12 13:13:00.197 D/NDIS ( 506): curCallID=0, curIpFamily=4
Line 760: 06-12 13:13:00.227 D/NDIS ( 506): curCallID=0, curIpFamily=6
Line 766: 06-12 13:13:00.292 D/NDIS ( 506): qmidev_init exit
Line 767: 06-12 13:13:00.292 D/NDIS ( 506): qmidev_wds_start_data_call curCallID=0, curIpFamily=4
Line 820: 06-12 13:13:00.581 D/NDIS ( 506): qmidev_wds_start_data_call WdsConnectionIPv4Handle: 0xe18091f0
Line 821: 06-12 13:13:00.581 D/NDIS ( 506): qmidev_wds_get_runtime_settings curCallID=0, curIpFamily=4
Line 822: 06-12 13:13:00.611 D/NDIS ( 506): qmidev_data_call_state_change IPv4ConnectionStatus[0]: CONNECTED
这说明QMI拨号成功了。
结论
他反馈不能上网,应该是内核自带的qmi_wwan.c 驱动的问题,需要用移远提供的 qmi_wwan_q.c.