RM520N-GL not show up as /dev/cdc-wdm0 on SDM845

I try to add a RM520N-GL as USB-modem on my SDM845 device with android 9,and i add the kernel driver and rild for it.

when i plug it into the system:


dmesg info
  624.646402] usbpd usbpd0: Type-C Sink connected
[  624.765307] msm-usb-ssphy-qmp 88e8000.ssphy: USB DP QMP PHY: Update TYPEC CTRL(2)
[  624.767355] msm-dwc3 a600000.ssusb: DWC3 exited from low power mode
[  624.769106] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[  624.769899] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[  624.772203] xhci-hcd xhci-hcd.1.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x02010810
[  624.772246] xhci-hcd xhci-hcd.1.auto: irq 1073, io mem 0x0a600000
[  624.772525] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[  624.772532] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  624.772537] usb usb3: Product: xHCI Host Controller
[  624.772540] usb usb3: Manufacturer: Linux 4.9.112-perf xhci-hcd
[  624.772544] usb usb3: SerialNumber: xhci-hcd.1.auto
[  624.773955] hub 3-0:1.0: USB hub found
[  624.774001] hub 3-0:1.0: 1 port detected
[  624.774322] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[  624.774846] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[  624.775102] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[  624.775108] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  624.775112] usb usb4: Product: xHCI Host Controller
[  624.775116] usb usb4: Manufacturer: Linux 4.9.112-perf xhci-hcd
[  624.775120] usb usb4: SerialNumber: xhci-hcd.1.auto
[  624.776549] hub 4-0:1.0: USB hub found
[  624.776597] hub 4-0:1.0: 1 port detected
[  624.836552] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  624.836649] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  624.883617] FG: fg_psy_get_property: unsupported property 7
[  624.883624] FG: fg_psy_get_property: unsupported property 7
[  624.885582] healthd: battery l=67 v=4204 t=26.0 h=2 st=3 c=0 fc=0 cc=0 chg=
[  624.887627] healthd: battery l=67 v=4204 t=26.0 h=2 st=3 c=0 fc=0 cc=0 chg=
[  625.043386] msm-dwc3 a800000.ssusb: DWC3 in low power mode
[  626.083465] msm-dwc3 a600000.ssusb: DWC3 in low power mode
[  627.556543] init: Created socket '/dev/socket/chre', mode 660, user 0, group 1000
[  627.849265] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  627.849364] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  627.860748] init: Service 'chre' (pid 4387) exited with status 44
[  627.860794] init: Sending signal 9 to service 'chre' (pid 4387) process group...
[  627.861087] libprocessgroup: Successfully killed process cgroup uid 1000 pid 4387 in 0ms
[  628.856175] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  628.856276] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  629.862813] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  629.862935] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  631.626835] FG: fg_psy_get_property: unsupported property 7
[  631.627232] FG: fg_psy_get_property: unsupported property 7
[  631.629868] healthd: battery l=67 v=4203 t=26.0 h=2 st=3 c=0 fc=0 cc=0 chg=
[  631.630328] healthd: battery l=67 v=4203 t=26.0 h=2 st=3 c=0 fc=0 cc=0 chg=
[  632.569177] init: Created socket '/dev/socket/chre', mode 660, user 0, group 1000
[  632.888037] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  632.888148] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  633.051605] init: Service 'chre' (pid 4396) exited with status 44
[  633.051674] init: Sending signal 9 to service 'chre' (pid 4396) process group...
[  633.052277] libprocessgroup: Successfully killed process cgroup uid 1000 pid 4396 in 0ms
[  633.894905] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  633.895022] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  634.219147] msm-dwc3 a600000.ssusb: DWC3 exited from low power mode
[  634.750490] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[  634.898808] init: Received control message 'interface_start' for 'android.hardware.radio@1.0::IRadio/slot1' from pid: 560 (/system/bin/hwservicemanager)
[  634.899025] init: Could not find service hosting interface android.hardware.radio@1.0::IRadio/slot1
[  634.899983] usb 3-1: New USB device found, idVendor=2c7c, idProduct=0801
[  634.899997] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  634.900011] usb 3-1: Product: RM520N-GL
[  634.900309] usb 3-1: Manufacturer: Quectel
[  634.900336] usb 3-1: SerialNumber: f3c6c3ec
[  634.903296] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903470] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903571] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903666] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903764] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903862] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.903960] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.904243] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.904344] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.904437] alloc_contig_range: [f5919, f591a) PFNs busy
[  634.938856] option 3-1:1.0: GSM modem (1-port) converter detected
[  634.940875] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[  634.942721] option 3-1:1.1: GSM modem (1-port) converter detected
[  634.945003] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[  634.946419] option 3-1:1.2: GSM modem (1-port) converter detected
[  634.948404] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[  634.950325] option 3-1:1.3: GSM modem (1-port) converter detected
[  634.952328] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB3
[  634.992036] qmi_wwan_q 3-1:1.4: cdc-wdm0: USB WDM device
[  634.993587] qmi_wwan_q 3-1:1.4: Quectel RM520N-GL work on RawIP mode
[  634.995865] qmi_wwan_q 3-1:1.4: rx_urb_size = 31744
[  635.003046] qmi_wwan_q 3-1:1.4 wwan0: register 'qmi_wwan_q' at usb-xhci-hcd.1.auto-1, RMNET/USB device, 96:90:30:b8:6b:4d
[  635.006547] net wwan0: qmap_register_device wwan0_1

and the usb info

cat /sys/kernel/debug/usb/devices
T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 4.09
S:  Manufacturer=Linux 4.9.112-perf xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.1.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=2c7c ProdID=0801 Rev= 5.04
S:  Manufacturer=Quectel
S:  Product=RM520N-GL
S:  SerialNumber=f3c6c3ec
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=option
E:  Ad=83(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
E:  Ad=87(I) Atr=03(Int.) MxPS=  10 Ivl=32ms
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan_q
E:  Ad=88(I) Atr=03(Int.) MxPS=   8 Ivl=32ms
E:  Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=0f(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

and i can get the device node:

130|sdm845:/ # ls /dev/ttyU
ttyUSB0  ttyUSB1  ttyUSB2  ttyUSB3
130|sdm845:/ # microcom /dev/ttyUSB2
AT
OK
130|sdm845:/ # ls /dev/cdc*
ls: /dev/cdc*: No such file or directory

but the /dev/cdc-wdm* is not show up, i don`t not why, need the help.

… and about the ril log

01-01 02:46:44.211 D/RILD    (  997): **RIL Daemon Started**
01-01 02:46:44.211 D/RILD    (  997): **RILd param count=3**
01-01 02:46:44.220 W/RILD    (  997): RIL_SAP_Init not defined or exported in /vendor/lib64/libreference-ril.so: undefined symbol: RIL_SAP_Init
01-01 02:46:44.220 D/RILD    (  997): RIL_Init argc = 3 clientId = 0
01-01 02:46:44.220 I/RIL     (  997): Client id received 0
01-01 02:46:44.220 D/RILD    (  997): RIL_Init rilInit completed
01-01 02:46:44.220 I/RILC    (  997): SIM_COUNT: 1
01-01 02:46:44.220 E/RILC    (  997): RIL_register: RIL_RadioFunctions * null
01-01 02:46:44.220 D/RILD    (  997): RIL_Init RIL_register completed
01-01 02:46:44.220 D/RILD    (  997): RIL_register_socket completed
01-01 02:46:44.973 D/TelephonyManager(  921): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline (Permission denied)
01-01 02:46:44.973 D/TelephonyManager(  921): /proc/cmdline=
11-08 13:15:46.172 D/TelephonyManager(  922): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline (Permission denied)
11-08 13:15:46.172 D/TelephonyManager(  922): /proc/cmdline=
11-08 13:15:51.399 E/TelephonyManager( 1254): IMSI error: Subscriber Info is null
11-08 13:15:56.616 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.637 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.666 D/TelephonyRegistry( 1254): systemRunning register for intents
11-08 13:15:56.677 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.805 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.814 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.836 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:56.897 D/TDC     ( 1647): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:15:56.897 D/TDC     ( 1647): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:15:56.905 D/TelephonyComponentFactory( 1647): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:15:56.905 D/TelephonyComponentFactory( 1647): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:15:56.906 D/TelephonyComponentFactory( 1647): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:15:56.908 D/CdmaSSM ( 1647): subscriptionSource from settings: 0
11-08 13:15:56.908 I/PhoneFactory( 1647): Cdma Subscription set to 0
11-08 13:15:56.908 I/PhoneFactory( 1647): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:15:56.914 D/TelephonyRegistry( 1254): notifyCellLocationForSubscriber: subId=0 cellLocation=Bundle[{cid=-1, lac=-1, psc=-1}]
11-08 13:15:56.914 D/TelephonyRegistry( 1254): notifyCellLocationForSubscriber: subId=1 cellLocation=Bundle[{cid=-1, lac=-1, psc=-1}]
11-08 13:15:56.915 I/PhoneFactory( 1647): Network Mode set to 22
11-08 13:15:56.915 D/QtiTelephonyComponentFactory( 1647): makeQtiRIL
11-08 13:15:56.915 D/RILJ    ( 1647): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:15:56.954 W/CarrierConfigManager( 1507): Error getting config for subId -1 ICarrierConfigLoader is null
11-08 13:15:56.961 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:15:58.347 D/TelephonyRegistry( 1254): listen oscl: hasNotifySubscriptionInfoChangedOccurred==false no callback
11-08 13:16:57.989 D/TDC     ( 2412): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:16:57.989 D/TDC     ( 2412): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:16:57.990 D/TelephonyComponentFactory( 2412): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:16:57.990 D/TelephonyComponentFactory( 2412): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:16:57.990 D/TelephonyComponentFactory( 2412): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:16:57.991 D/CdmaSSM ( 2412): subscriptionSource from settings: 0
11-08 13:16:57.991 I/PhoneFactory( 2412): Cdma Subscription set to 0
11-08 13:16:57.991 I/PhoneFactory( 2412): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:16:57.992 I/PhoneFactory( 2412): Network Mode set to 22
11-08 13:16:57.992 D/QtiTelephonyComponentFactory( 2412): makeQtiRIL
11-08 13:16:57.992 D/RILJ    ( 2412): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:16:58.258 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 1628): Starting QcrilMsgTunnel Service
11-08 13:16:58.264 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 1628): Attempt to bind service returned with: true
11-08 13:16:58.265 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 1628): Registering for intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW
11-08 13:16:58.277 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 1628): QcrilMsgTunnelService Connected Successfully (onServiceConnected)
11-08 13:17:58.882 D/TDC     ( 2775): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:17:58.882 D/TDC     ( 2775): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:17:58.886 D/TelephonyComponentFactory( 2775): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:17:58.886 D/TelephonyComponentFactory( 2775): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:17:58.886 D/TelephonyComponentFactory( 2775): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:17:58.887 D/CdmaSSM ( 2775): subscriptionSource from settings: 0
11-08 13:17:58.887 I/PhoneFactory( 2775): Cdma Subscription set to 0
11-08 13:17:58.887 I/PhoneFactory( 2775): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:17:58.897 I/PhoneFactory( 2775): Network Mode set to 22
11-08 13:17:58.897 D/QtiTelephonyComponentFactory( 2775): makeQtiRIL
11-08 13:17:58.897 D/RILJ    ( 2775): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:17:59.196 I/ImsManager( 1611): Creating ImsService
11-08 13:17:59.196 W/MmTelFeatureConnection( 1611): create: binder is null! Slot Id: 0
11-08 13:17:59.196 I/ImsManager( 1611): Creating ImsService
11-08 13:17:59.196 W/MmTelFeatureConnection( 1611): create: binder is null! Slot Id: 1
11-08 13:19:00.599 D/TDC     ( 3165): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:19:00.599 D/TDC     ( 3165): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:19:00.601 D/TelephonyComponentFactory( 3165): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:19:00.601 D/TelephonyComponentFactory( 3165): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:19:00.601 D/TelephonyComponentFactory( 3165): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:19:00.602 D/CdmaSSM ( 3165): subscriptionSource from settings: 0
11-08 13:19:00.602 I/PhoneFactory( 3165): Cdma Subscription set to 0
11-08 13:19:00.602 I/PhoneFactory( 3165): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:19:00.603 I/PhoneFactory( 3165): Network Mode set to 22
11-08 13:19:00.603 D/QtiTelephonyComponentFactory( 3165): makeQtiRIL
11-08 13:19:00.603 D/RILJ    ( 3165): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:20:00.810 D/TDC     ( 3318): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:20:00.810 D/TDC     ( 3318): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:20:00.811 D/TelephonyComponentFactory( 3318): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:20:00.811 D/TelephonyComponentFactory( 3318): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:20:00.811 D/TelephonyComponentFactory( 3318): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:20:00.812 D/CdmaSSM ( 3318): subscriptionSource from settings: 0
11-08 13:20:00.812 I/PhoneFactory( 3318): Cdma Subscription set to 0
11-08 13:20:00.812 I/PhoneFactory( 3318): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:20:00.813 I/PhoneFactory( 3318): Network Mode set to 22
11-08 13:20:00.814 D/QtiTelephonyComponentFactory( 3318): makeQtiRIL
11-08 13:20:00.814 D/RILJ    ( 3318): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:21:00.951 D/TDC     ( 3510): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:21:00.951 D/TDC     ( 3510): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:21:00.954 D/TelephonyComponentFactory( 3510): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:21:00.954 D/TelephonyComponentFactory( 3510): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:21:00.954 D/TelephonyComponentFactory( 3510): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:21:00.955 D/CdmaSSM ( 3510): subscriptionSource from settings: 0
11-08 13:21:00.955 I/PhoneFactory( 3510): Cdma Subscription set to 0
11-08 13:21:00.955 I/PhoneFactory( 3510): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:21:00.956 I/PhoneFactory( 3510): Network Mode set to 22
11-08 13:21:00.956 D/QtiTelephonyComponentFactory( 3510): makeQtiRIL
11-08 13:21:00.956 D/RILJ    ( 3510): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:21:01.375 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): Starting QcrilMsgTunnel Service
11-08 13:21:01.377 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): Attempt to bind service returned with: true
11-08 13:21:01.378 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): Registering for intent ACTION_UNSOL_RESPONSE_OEM_HOOK_RAW
11-08 13:21:01.388 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): QcrilMsgTunnelService Connected Successfully (onServiceConnected)
11-08 13:21:01.388 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): Calling onQcRilHookReady callback
11-08 13:21:01.397 D/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): sendOemRilRequestRaw returns value = -1
11-08 13:21:01.397 W/use-Rlog/RLOG-QC_RIL_OEM_HOOK( 3584): QCRIL_EVT_HOOK_GET_CONFIG failed w/ com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
11-08 13:24:21.817 D/TDC     ( 4138): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:24:21.817 D/TDC     ( 4138): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:24:21.819 D/TelephonyComponentFactory( 4138): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:24:21.821 D/TelephonyComponentFactory( 4138): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:24:21.822 D/TelephonyComponentFactory( 4138): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:24:21.822 D/CdmaSSM ( 4138): subscriptionSource from settings: 0
11-08 13:24:21.822 I/PhoneFactory( 4138): Cdma Subscription set to 0
11-08 13:24:21.822 I/PhoneFactory( 4138): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:24:21.824 I/PhoneFactory( 4138): Network Mode set to 22
11-08 13:24:21.824 D/QtiTelephonyComponentFactory( 4138): makeQtiRIL
11-08 13:24:21.825 D/RILJ    ( 4138): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:27:42.135 D/TDC     ( 4572): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:27:42.135 D/TDC     ( 4572): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:27:42.136 D/TelephonyComponentFactory( 4572): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:27:42.140 D/TelephonyComponentFactory( 4572): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:27:42.140 D/TelephonyComponentFactory( 4572): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:27:42.141 D/CdmaSSM ( 4572): subscriptionSource from settings: 0
11-08 13:27:42.141 I/PhoneFactory( 4572): Cdma Subscription set to 0
11-08 13:27:42.141 I/PhoneFactory( 4572): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:27:42.142 I/PhoneFactory( 4572): Network Mode set to 22
11-08 13:27:42.142 D/QtiTelephonyComponentFactory( 4572): makeQtiRIL
11-08 13:27:42.142 D/RILJ    ( 4572): RIL: init preferredNetworkType=22 cdmaSubscription=0)
11-08 13:31:02.395 D/TDC     ( 4957): updateOrInsert: inserting: Modem { uuid=modem, state=0, rilModel=0, rat={}, maxActiveVoiceCall=1, maxActiveDataCall=1, maxStandby=1 }
11-08 13:31:02.395 D/TDC     ( 4957): updateOrInsert: inserting: Sim { uuid=sim, modemUuid=modem, state=0 }
11-08 13:31:02.397 D/TelephonyComponentFactory( 4957): classLoader = dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/qti-telephony-common.jar"],nativeLibraryDirectories=[/system/lib64]]]
11-08 13:31:02.398 D/TelephonyComponentFactory( 4957): cls = class com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory
11-08 13:31:02.398 D/TelephonyComponentFactory( 4957): constructor method = public com.qualcomm.qti.internal.telephony.QtiTelephonyComponentFactory()
11-08 13:31:02.399 D/CdmaSSM ( 4957): subscriptionSource from settings: 0
11-08 13:31:02.399 I/PhoneFactory( 4957): Cdma Subscription set to 0
11-08 13:31:02.399 I/PhoneFactory( 4957): ImsResolver: defaultImsPackage: org.codeaurora.ims
11-08 13:31:02.402 I/PhoneFactory( 4957): Network Mode set to 22
11-08 13:31:02.402 D/QtiTelephonyComponentFactory( 4957): makeQtiRIL
11-08 13:31:02.402 D/RILJ    ( 4957): RIL: init preferredNetworkType=22 cdmaSubscription=0)

after i plug the 5G dongle into my device, it show me there is no sim card.
wait for the reply, thanks.

Is it Quectel SA800U?
have you applied the RIL patch for sdm845?

Have you applied the Quectel RIL driver?
The native service qcrild on SDM845 don’t support RM520N. You should make the rild work and remove the qcrild. If it is Quectel SA800U the Quectel Smart team could help you.

hi bean,

Thanks for your reply.

I have removed qcrild and am now using “Quectel_Android_RIL_Driver_V3.5.66”.

The device is now plugged into the system, the SIM card can be found, the corresponding carrier (China Mobile, China Telecom) can be detected, there is a signal display in the UI bar, and SMS can be received.

But there are still the following problems:

  1. Unable to send SMS
  2. Unable to create network connection with mobile data

hi bean,

my radio log si attach as attachment, please help to check it.
radio.txt (325.4 KB)

Please provide the vendor/etc/vintf/manifest.xml .

For Android 9, you should try the ndk version RIL lib, but not the Android 10.

hi bean,

i am using the NDK version RIL lib, not the Android 10.
Quectel_Android_RIL_Driver_V3.5.66\RIL_ndk\64bit\libreference-ril.so
manifest.xml.txt (27.8 KB)

about the manifest.xml:

  1. I change the android.hardware.radio from 1.2 into 1.0.
  2. Not write the android.hardware.radio.deprecated 1.0, because it will report an error at the logcat.

Blockquote
11-27 22:54:26.886 4247 4247 I ServiceManagement: getService: Trying again for android.hardware.radio.deprecated@1.0::IOemHook/slot1…
11-27 22:54:27.888 4247 4247 W ServiceManagement: Waited one second for android.hardware.radio.deprecated@1.0::IOemHook/slot1…

  1. and remove the android.hardware.secure_element@1.0, because the logcat always print:

Blockquote
11-27 22:54:26.886 4247 4247 I ServiceManagement: getService: Trying again for android.hardware.secure_element@1.0::ISecureElement/SIM1…
11-27 22:54:27.888 4247 4247 W ServiceManagement: Waited one second for android.hardware.secure_element@1.0::ISecureElement/SIM1

but … when I remove the android.hardware.secure_element, it can`t get the sim card status.

now, i have no idea about it.

Please remove it.

<hal format="hidl">
    <name>vendor.qti.hardware.radio.qcrilhook</name>
    <transport>hwbinder</transport>
    <version>1.0</version>
    <interface>
        <name>IQtiOemHook</name>
        <instance>oemhook0</instance>
        <instance>oemhook1</instance>
    </interface>
    <fqname>@1.0::IQtiOemHook/oemhook0</fqname>
    <fqname>@1.0::IQtiOemHook/oemhook1</fqname>
</hal>

You should modify the telephony_injection.xml also. It will choose the Qualcomm telelphony but not the Google framework.

hi bean,

i will remove the vendor.qti.hardware.radio.qcrilhook and try it again, but i do not find telephony_injection.xml in my source code, do you know how to confirm the system is using the Qualcomm telephony or Google framework?

Please check the patch I sent.

hi bean,

i remove the vendor.qti.hardware.radio.qcrilhook, but the system can`t show any infomation for me after i plug the RM520N-GL into my device.

this is logcat.txt and radio.txt
radio.txt (324.2 KB)
logcat.txt (827.1 KB)

and you said for me, try to check the patch you sent me, but I didn’t get any of the patches you sent over, were they sent to my email or attachments?

wait for your reply.

I have sent you the patch for Quectel SA800U. QUECTEL SA800U is based on Qualcomm sdm845.
I will try send you the older RIL lib later.

The route cause is that the RIL do not take the modem as regsitered state but in DATA_REGISTRATION_STATE
12-04 22:20:11.997 D/ATC ( 991): AT< +COPS: 0,2,“46011”,7
12-04 22:20:11.997 D/ATC ( 991): AT< OK
12-04 22:20:11.999 D/ATC ( 991): AT> AT+CGREG?
12-04 22:20:12.000 D/ATC ( 991): AT< +CGREG: 2,0
12-04 22:20:12.000 D/ATC ( 991): AT< OK
12-04 22:20:12.000 D/ATC ( 991): AT> AT+CFUN?
12-04 22:20:12.001 D/ATC ( 991): AT< +CFUN: 1
12-04 22:20:12.001 D/ATC ( 991): AT< OK
12-04 22:20:12.001 D/ATC ( 991): AT> AT+COPS=3,2;+COPS?
12-04 22:20:12.002 D/ATC ( 991): AT< +COPS: 0,2,“46011”,7
12-04 22:20:12.002 D/ATC ( 991): AT< OK
12-04 22:20:12.003 D/RILC ( 991): onRequest: VOICE_REGISTRATION_STATE
12-04 22:20:12.003 D/RILC ( 991): onRequest,7662 g_is_scan_ing = 0
12-04 22:20:12.003 D/ATC ( 991): AT> AT+COPS=3,2;+COPS?
12-04 22:20:12.004 D/RILJ ( 1567): [3766]< DATA_REGISTRATION_STATE {.regState = NOT_REG_MT_NOT_SEARCHING_OP, .rat = 0, .reasonDataDenied = 7, .maxDataCalls = 1, .cellIdentity = {.cellInfoType = NONE, .cellIdentityGsm = [], .cellIdentityWcdma = [], .cellIdentityCdma = [], .cellIdentityLte = [], .cellIdentityTdscdma = []}} [SUB0]

ok, thanks for your patch, I’ll try it out.

and Quectel_Android_RIL_Driver_V3.5.66 version do not contain these files: “chat, ip-down, ip-up”, is it contained in the older RIL lib?

Quectel_Android_RIL_Driver_V3.6.22_1206_only_for_test_not_official.zip (883.6 KB)

This is NDK build. Only for test. Others please don’t try it.

hi Bean,

I try to apply the patch and the NDK build version for test.
this is the radio.log radio.txt (284.5 KB)

I found out that my chip is SDA845 and the source code is open source, the TAG is “LA.UM.7.3.r1-06900-sdm845.0”, this source code was released 4 years ago when 5g was not yet popular, do I need to do an upgrade to the source code to work properly? Or can I just modify my local source code to support 4g only?

And with the patch you gave, there is a partial modification to qcril, I don’t have the code for the qcril-hal part, which is provided as a prebuilt.