Data Connection Issue in HL7692 on Android Pie

Hello,

I am working on imx6 based custom platform with HL7692 modem. We have Android Pie running on the platform. I followed AirPrime- Android RIL Integration Guide 2.0 for modem integration. The RIL version used is Sierra Ril V9.0.3.0. We need Mobile Network access using SIM. Voice and SMS are not in scope.
We are using Airtel Prepaid 4G Sim card(India) for testing. SIM card is detected but data connection is not enabled and the APN list is null. I also observe that Settings->Mobile Networking option is greyed/disabled after the board boots up.
There following errors look prominent from the logs:
TelephonyManager: IMSI error: Subscriber Info is null
and the following error is recursive
ImsManager: Creating ImsService
MmTelFeatureConnection: create: binder is null! Slot Id: 0
ImsManager: Connector: Retrying getting ImsService…

Has anyone faced this kind of issue? Any help is appreciated.

Thanks and Regards,
Sabiya Francis

Hi sabiya.d,

You can download the latest Android RIL Software and retry.
Please set the APN manually for it.

You can get it here Android RIL Software

Help to tick “Solutions” if your question is answered.

Hi Donald,

Thank you for the response.

To set the APN manually, the Mobile Network Settings is disabled (greyed) when the android boots up. So Settings->Mobile Networks cannot be turned on manually.

Currently I am using AndroidRIL_V9.0.3.0. Is it not compatible with Android Pie?

The Latest RIL software that you have shared is for ARM 64bit. I do not see one for 32 bit. Please share the latest RIL software link for 32-bit.

Regards,
Sabiya Francis

Hi @sabiya.d

Which HL7692 firmware version are you using?
It supports HL769x.2.24.173100.201709051100.x7120m_1 firmare version (or newer).

If you are not in the latest HL7692 firmware, please download the latest one and retry.
AirPrime HL7692 Firmware

Please make sure that your SIM card is working well. You can contact to your service provider to check it.
I don’t have the latest 32bit Android RIL software.

Hi Donald,

We are working on Android Pie and the Firmware version is RHL769x.2.23.172400.201706231140.x7120m_1. I believe the RIL version AndroidRIL_V9.0.3 is compatible with this firmware version. Moreover, this is the suggested package by the vendor for Android Pie.

We are able to communicate with modem as AT commands, manually. Following is the log for the same.

echo “ATI9” | atinout - /dev/ttyACM0 -

RHL769x.2.23.172400.201706231140.x7120m_1
HL7692
HL769x.2.23
x7120m
FUSED
2017-06-23 11:44:41
r9909

OK

echo “AT+CGSN” | atinout - /dev/ttyACM0 -

355465070597691

OK

echo “AT+CMEE=1” | atinout - /dev/ttyACM0 -

OK

echo “AT+CPIN?” | atinout - /dev/ttyACM0 -

+CPIN: READY

OK
echo “AT+CCID” | atinout - /dev/ttyACM0 -

+CCID: 8991000903738341400

OK
echo “AT+CGDCONT?” | atinout - /dev/ttyACM0 -

+CGDCONT: 1,“IP”,“airtelgprs.com”,“100.67.102.250”,0,0,0,0,0,0

OK
echo “AT+CGATT?” | atinout - /dev/ttyACM0 -

+CGATT: 1

OK
echo “AT+CESQ” | atinout - /dev/ttyACM0 -

+CESQ: 99,99,255,255,20,51

OK
echo “AT+COPS?” | atinout - /dev/ttyACM0 -

+COPS: 0,2,“40445”,7

OK
echo “AT+COPS?” | atinout - /dev/ttyACM0 -

+COPS: 0,2,“40445”,7

OK
echo “AT+CREG?” | atinout - /dev/ttyACM0 -

+CREG: 2,1,“FFFF”,“00F2F929”,7

OK
echo “AT+XCELLINFO?” | atinout - /dev/ttyACM0 -

+XCELLINFO:0,5,404,45,15923497,202,8371,50,18,0

+XCELLINFO: 0,6,3626,99,46,9

OK
echo “AT+KSRAT?” | atinout - /dev/ttyACM0 - <

+KSRAT: 9

OK

In Android, using logcat -b radio, we see the AT communication is happening and prints related to operator details (airtel, mmc=404/mnc=45) are displayed. However, the Subscriber Info is not updated. So the dumpsys isub log prints the following:

SubscriptionController:
mLastISubServiceRegTime=1608283462856
defaultSubId=-1
defaultDataSubId=-1
defaultVoiceSubId=-1
defaultSmsSubId=-1
defaultDataPhoneId=-1
defaultVoicePhoneId=-1
defaultSmsPhoneId=-1
++++++++++++++++++++++++++++++++
ActiveSubInfoList: is null
++++++++++++++++++++++++++++++++
AllSubInfoList: is null
++++++++++++++++++++++++++++++++
0: 12-18 14:54:22 pid=672 tid=672 [SubscriptionController] init by Context
1: 12-18 14:54:23 pid=672 tid=697 [getPhoneId]- no sims, returning default phoneId=2147483647
2: 12-18 14:54:23 pid=672 tid=672 [getPhoneId] asked for default subId=-1
3: 12-18 14:54:24 pid=672 tid=809 [getPhoneId] asked for default subId=-1
4: 12-18 14:54:24 pid=672 tid=843 [getActiveSubInfoList] Sub Controller not ready
5: 12-18 14:54:24 pid=672 tid=672 [getPhoneId] asked for default subId=-1
6: 12-18 14:54:05 pid=672 tid=843 [getActiveSubInfoList] Sub Controller not ready
7: 12-18 14:54:05 pid=672 tid=843 [getActiveSubInfoList] Sub Controller not ready
8: 12-18 14:54:05 pid=672 tid=843 [getActiveSubInfoList] Sub Controller not ready
9: 12-18 14:54:05 pid=672 tid=672 [getPhoneId]- no sims, returning default phoneId=2147483647

The Settings->Mobile Network option is visible, but disabled because the SIM info is not updated (no sim)
I have followed the instructions on AirPrime- Android RIL Integration Guide 2.0 and also enabled RIL by updating ro.radio.noril=false in the device mk file.
Is there anything else that needs to be taken care for Mobile Network to work?

Thanks and Regards,
Sabiya

Hi sabiya.d,

Please refer to 5.13 RIL Properties and 5.14 Detecting LTE modules in Android RIL Integration Guide 2.0
5.13 RIL Properties (RIL operation can be modified by setting various Android properties)
5.14 Detecting LTE modules:
UMTS LTE module detected
(vendor.) telephony.lteOnGsmDevice=1
(vendor.) telephony.lteOnCdmaDevice=0

Have you done it yet?

Hi Donald,

Yes the properties are set. Please see the below property values once the board is booted.
[telephony.lteOnCdmaDevice]: [0]
[telephony.lteOnGsmDevice]: [1]
[ro.sierra.voice]: [1]
[ro.telephony.default_network]: [10]
[ro.radio.noril]: [false]
[ro.carrier]: [unknown]
[ro.com.android.mobiledata]: [true]
[ril.sierra.dst]:
[ril.sierra.nitz]:
[ril.sierra.tz]:
[persist.sys.ril.type]: [HL]
[persist.sys.timezone]: [Asia/Kolkata]
[init.svc.vendor.radio-config-hal-1-0]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.ril-daemon-hl]: [running]
[init.svc.netd]: [running]
[gsm.current.phone-type]: [1]
[gsm.network.type]: [LTE]
[gsm.operator.alpha]: [IND airtel]
[gsm.operator.iso-country]: [in]
[gsm.operator.isroaming]: [false]
[gsm.operator.numeric]: [40445]
[gsm.sim.operator.alpha]:
[gsm.sim.operator.iso-country]:
[gsm.sim.operator.numeric]:
[gsm.version.baseband]: [RHL769x.2.23.172400.201706231140.x7120m_1]
[gsm.version.ril-impl]: [Sierra Ril V9.0.3.0_ARM_32 HL]

Hi @sabiya.d

Please contact your distributor or submit “Contact Us” on Sierrawireless for the latest 32bit Android RIL software and technical support.

Thank you Donald for the response.

Regards,
Sabiya