是支持的,但是生成的节点只有ttyUSB0和ttyUSB1两个设备节点
是否支持GNSS,提供下模组的型号?
这个要改option.c ,正常应该有4个ttyUSB
模组的型号为EC800MCNGAR06A05M08,模块上面有gnss的接口,但是只生成了两个USB设备节点
提供下你当前使用的option.c
option.c 而不是 opticon.c
如果只是用EC800M的话,删掉这一段就可以
或者改成这样去兼容EC20 吧
//Quectel modules’s interface 4 can be used as USB network device
if (serial->dev->descriptor.idVendor == cpu_to_le16(0x2C7C) && serial->dev->descriptor.idProduct != cpu_to_le16(0x6002) ) {
//some interfaces can be used as USB Network device (ecm, rndis, mbim)
if (serial->interface->cur_altsetting->desc.bInterfaceClass != 0xFF) {
return -ENODEV;
}
//interface 4 can be used as USB Network device (qmi)
else if (serial->interface->cur_altsetting->desc.bInterfaceNumber >= 4) {
return -ENODEV;
}
}
你还没有去移植GPS服务和驱动。
Line 254: 01-01 08:00:01.424 1 1 I gnss : GNSS driver registered with major 509
Line 6766: 07-01 18:33:00.158 196 196 I servicemanager: Could not find android.hardware.gnss.IGnss/default in the VINTF manifest.
Line 6767: 07-01 18:33:00.158 422 422 D GnssJni : Trying IGnss_V2_1::getService()
Line 6769: 07-01 18:33:00.159 197 197 I hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@2.1::IGnss/default in either framework or device VINTF manifest.
Line 6770: 07-01 18:33:00.159 422 422 D GnssJni : gnssHal 2.1 was null, trying 2.0
Line 6775: 07-01 18:33:00.161 197 197 I hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@2.0::IGnss/default in either framework or device VINTF manifest.
Line 6776: 07-01 18:33:00.161 422 422 D GnssJni : gnssHal 2.0 was null, trying 1.1
Line 6777: 07-01 18:33:00.162 197 197 I hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@1.1::IGnss/default in either framework or device VINTF manifest.
Line 6778: 07-01 18:33:00.162 422 422 D GnssJni : gnssHal 1.1 was null, trying 1.0
Line 6779: 07-01 18:33:00.162 197 197 I hwservicemanager: getTransport: Cannot find entry android.hardware.gnss@1.0::IGnss/default in either framework or device VINTF manifest.
Line 11857: 07-01 18:33:06.245 590 604 D RILU : ttyGPS = ttyUSB1
getprop | grep gnss
IGnss 接口没有添加。
find -name “*.xml” 2>/dev/null | xargs grep IGnss
添加了1.0的gnss,EC25的gps是可以使用的,但是EC800M不能使用,使用AT指令返回坐标是正确的,但是上层没有互通,添加2.0的gnss EC25的gps也不能使用了,EC25和EC800M的gps不能通用的么
那就继续使用1.0
EC800M 用不了请提供下日志
logcat -b all
我查看了一下没有应用打开ttyUSB3,但是连接不上,顺便问一下5G 模块 RG200U-CN 不是使用qmi_wwan_q这个驱动吧,使用的哪个驱动进行拨号的
EC800M是不需要也用不到qmi_wwan_q 的。
RG200U 也不需要。