RM551 LPAC Issue

Hi

I’m trying to use a Quectel RM551E-GL with firmware RM551EGL00AAR01A03M8G together with LPAC to manage a physical eSIM.

What often happens is that, on the first startup of the module (or even after a reboot following an eSIM profile change), the module stops responding to all APDU commands sent by LPAC, both via AT and QMI.

Performing the exact same operations with an RM502Q-GL does not produce any errors on module reboot. Tests done with different physical eSIMs (Lenovo, 9Esim) all show the same behavior on the 551.

After some attempts it starts working fine, but a reboot (module unplug, or an AT+CFUN=1,1) breaks it again, here is an example output:

root@BananaWRT:~# lpac chip info
AT_DEBUG: AT+C
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
Device missing AT+CCHO support
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}
root@BananaWRT:~# lpac chip info
AT_DEBUG: AT+C
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
Device missing AT+CCHO support
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}
root@BananaWRT:~# LPAC_APDU=uqmi LPAC_QMI_DEV=/dev/cdc-wdm0 LIBEUICC_DEBUG_APDU=1 /usr/lib/lpac chip info
Failed to connect to service
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}

And then, “magically” it works (both AT and QMI):

root@BananaWRT:~# LPAC_APDU=uqmi LPAC_QMI_DEV=/dev/cdc-wdm0 LIBEUICC_DEBUG_APDU=1 /usr/lib/lpac chip info
[DEBUG] [APDU] [TX] CLA: 81, INS: E2, P1: 91, P2: 00, Lc: 06, Data: BF 3E 03 5C 01 5A
[DEBUG] [APDU] [RX] SW1: 61, SW2: 15, Data:
[DEBUG] [APDU] [TX] CLA: 81, INS: C0, P1: 00, P2: 00, Lc: 15, Data:
[DEBUG] [APDU] [RX] SW1: 90, SW2: 00, Data: BF 3E 12 5A 10 89 04 40 45 11 67 27 49 48 00 00 00 12 00 70 51
[DEBUG] [APDU] [TX] CLA: 81, INS: E2, P1: 91, P2: 00, Lc: 03, Data: BF 3C 00
[DEBUG] [APDU] [RX] SW1: 61, SW2: 35, Data:
[DEBUG] [APDU] [TX] CLA: 81, INS: C0, P1: 00, P2: 00, Lc: 35, Data:
[DEBUG] [APDU] [RX] SW1: 90, SW2: 00, Data: BF 3C 32 80 1F 73 6D 64 70 2D 70 6C 75 73 2D 30 2E 65 75 2E 63 64 2E 72 73 70 2E 6B 69 67 65 6E 2E 63 6F 6D 81 0F 6C 70 61 2E 64 73 2E 67 73 6D 61 2E 63 6F 6D
[DEBUG] [APDU] [TX] CLA: 81, INS: E2, P1: 91, P2: 00, Lc: 03, Data: BF 43 00
[DEBUG] [APDU] [RX] SW1: 61, SW2: 1B, Data:
[DEBUG] [APDU] [TX] CLA: 81, INS: C0, P1: 00, P2: 00, Lc: 1B, Data:
[DEBUG] [APDU] [RX] SW1: 90, SW2: 00, Data: BF 43 18 A0 16 30 14 80 02 05 60 A1 0B 30 09 80 03 EE EE EE 81 00 82 00 82 01 00
[DEBUG] [APDU] [TX] CLA: 81, INS: E2, P1: 91, P2: 00, Lc: 03, Data: BF 22 00
[DEBUG] [APDU] [RX] SW1: 61, SW2: 7A, Data:
[DEBUG] [APDU] [TX] CLA: 81, INS: C0, P1: 00, P2: 00, Lc: 7A, Data:
[DEBUG] [APDU] [RX] SW1: 90, SW2: 00, Data: BF 22 77 81 03 02 03 01 82 03 02 03 00 83 03 24 07 18 84 0D 81 01 07 82 04 00 04 8C 20 83 02 25 11 85 05 06 7F 36 F3 C0 86 03 0F 01 00 87 03 02 03 00 88 02 03 98 A9 16 04 14 81 37 0F 51 25 D0 B1 D4 08 D4 C3 B2 32 E6 D2 5E 79 5B EB FB AA 16 04 14 81 37 0F 51 25 D0 B1 D4 08 D4 C3 B2 32 E6 D2 5E 79 5B EB FB 04 03 01 00 00 0C 0D 4B 4E 2D 44 4E 2D 55 50 2D 30 39 32 34
{"type":"lpa","payload":{"code":0,"message":"success","data":{"eidValue":"89044045116727494800000012007051","EuiccConfiguredAddresses":{"defaultDpAddress":"smdp-plus-0.eu.cd.rsp.kigen.com","rootDsAddress":"lpa.ds.gsma.com"},"EUICCInfo2":{"profileVersion":"2.3.1","svn":"2.3.0","euiccFirmwareVer":"36.7.24","extCardResource":{"installedApplication":7,"freeNonVolatileMemory":298016,"freeVolatileMemory":9489},"uiccCapability":["usimSupport","isimSupport","csimSupport","akaMilenage","akaCave","akaTuak128","akaTuak256","gbaAuthenUsim","gbaAuthenISim","eapClient","javacard","multipleUsimSupport","multipleIsimSupport","multipleCsimSupport"],"ts102241Version":"15.1.0","globalplatformVersion":"2.3.0","rspCapability":["additionalProfile","testProfileSupport"],"euiccCiPKIdListForVerification":["81370f5125d0b1d408d4c3b232e6d25e795bebfb"],"euiccCiPKIdListForSigning":["81370f5125d0b1d408d4c3b232e6d25e795bebfb"],"euiccCategory":null,"ppVersion":"1.0.0","sasAcreditationNumber":"KN-DN-UP-0924","certificationDataObject":{"platformLabel":null,"discoveryBaseURL":null}},"rulesAuthorisationTable":[{"pprIds":["ppr1","ppr2"],"allowedOperators":[{"plmn":"eeeeee","gid1":null,"gid2":null}],"pprFlags":[]}]}}}
root@BananaWRT:~# lpac chip info
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: ERROR
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CCHO: 1
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 4,"6115"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 46,"BF3E125A10890440451167274948000000120070519000"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 4,"6135"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 110,"BF3C32801F736D64702D706C75732D302E65752E63642E7273702E6B6967656E2E636F6D810F6C70612E64732E67736D612E636F6D9000"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 4,"611B"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 58,"BF4318A016301480020560A10B30098003EEEEEE810082008201009000"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 4,"617A"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: +CGLA: 248,"BF2277810302030182030203008303240718840D810107820400048C20830225118505067F36F3C086030F0100870302030088020398A916041481370F5125D0B1D408D4C3B232E6D25E795BEBFBAA16041481370F5125D0B1D408D4C3B232E6D25E795BEBFB04030100000C0D4B4E2D444E2D55502D303932349000"
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK
{"type":"lpa","payload":{"code":0,"message":"success","data":{"eidValue":"89044045116727494800000012007051","EuiccConfiguredAddresses":{"defaultDpAddress":"smdp-plus-0.eu.cd.rsp.kigen.com","rootDsAddress":"lpa.ds.gsma.com"},"EUICCInfo2":{"profileVersion":"2.3.1","svn":"2.3.0","euiccFirmwareVer":"36.7.24","extCardResource":{"installedApplication":7,"freeNonVolatileMemory":298016,"freeVolatileMemory":9489},"uiccCapability":["usimSupport","isimSupport","csimSupport","akaMilenage","akaCave","akaTuak128","akaTuak256","gbaAuthenUsim","gbaAuthenISim","eapClient","javacard","multipleUsimSupport","multipleIsimSupport","multipleCsimSupport"],"ts102241Version":"15.1.0","globalplatformVersion":"2.3.0","rspCapability":["additionalProfile","testProfileSupport"],"euiccCiPKIdListForVerification":["81370f5125d0b1d408d4c3b232e6d25e795bebfb"],"euiccCiPKIdListForSigning":["81370f5125d0b1d408d4c3b232e6d25e795bebfb"],"euiccCategory":null,"ppVersion":"1.0.0","sasAcreditationNumber":"KN-DN-UP-0924","certificationDataObject":{"platformLabel":null,"discoveryBaseURL":null}},"rulesAuthorisationTable":[{"pprIds":["ppr1","ppr2"],"allowedOperators":[{"plmn":"eeeeee","gid1":null,"gid2":null}],"pprFlags":[]}]}}}
AT_DEBUG:
AT_DEBUG:
AT_DEBUG:
AT_DEBUG: OK

By “magically,” I mean that after sending other AT commands to the module (in my case using an app called 3g-info), after a few minutes the eSIM access suddenly becomes available again and it can be queried via both AT and QMI. However, this behavior does not occur with other modules.

I suspect this is a bug, is it possible to investigate?

Thanks in advance!

Dear @stich86
In release note, it didn’t show eSIM feature.
The feature doesn’t support now. So it has some unpredictable problems.

Dear @silvia

I understand that this feature is not officially supported yet according to the release notes, but I wanted to let you know that it’s something almost all of your modules already support and it consistently works across all scenarios. For this reason, it’s likely there’s a bug in this case.

I hope you’ll consider investigating and addressing the issue.
Additionally, it would be helpful to know if and when MBIM will be implemented as a supported protocol on this modem.

Thanks :slight_smile:

Dear @stich86
Currently, it doesn’t have plan to support eSIM and MBIM.

I’ve seen new firmware that fixes some issue on U-SIM, have you made some improvements on the eSIM commands?

Thanks