estkme-group / lpac

C-based eUICC LPA
GNU Affero General Public License v3.0
311 stars 75 forks source link

SIM card isn't working after several failed profile downloads #173

Open AndreySV opened 2 days ago

AndreySV commented 2 days ago

I've tried to download profile to 5ber Premium SIM-card using Quectel EG25-G.

sudo env LPAC_APDU=at AT_DEVICE=/dev/ttyS2 AT_DEBUG=1 LIBEUICC_DEBUG_APDU=1 ./output/lpac profile download -s xxxxx-server -m xxxxxx-xxxxxxx-xxxxxxxx-xxxxx
sudo env LPAC_APDU=at AT_DEVICE=/dev/ttyUSB2 AT_DEBUG=1 LIBEUICC_DEBUG_APDU=1 ./output/lpac profile download -s xxxxx-server -m xxxxxx-xxxxxxx-xxxxxxxx-xxxxx

download failed with following errors:

=4,"9000">AT+CGLA=1,250,"81E2110778D115AC1B7E18F9E19B55A3593EE55A9A6701A574FA653947F27DE76852E5D2334CED66C85B19D3C4728D2B7DEF04C7CC02568E4C1734618CD7ECD7A07AD93F60C9024086DE52A722969C92113A2B470ED111FA91A8E96A43A06DC879A425ED69809C60F58E76671A2F89AD65845DF31F2D20EFD960504B4E"
AT+CGLA=1,250,"81E2110778D115AC1B7E18F9E19B55A3593EE55A9A6701A574FA653947F27DE76852E5D2334CED66C85B19D3C4728D2B7DEF04C7CC02568E4C1734618CD7ECD7A07AD93F60C9024086DE52A722969C92113A2B470ED111FA91A8E96A43A06DC879A425ED69809C60F58E76671A2F89AD65845DF31F2D20EFD960504B4E"
<AT+CGLA=1,250,"81E2110778D115AC1B7E18F9E19B55A3593EE55A9A6701A574FA653947F27DE76852E5D2334CED66C85B19D3C4728D2B7DEF04C7CC02568E4C1734618CD7ECD7A07AD93F60C9024086DE52A722969C92113A2B470ED111FA91A8E96A43A06DC879A425ED69809C60F58E76671A2F89AD65845DF31F2D20EFD960504B4E"
+CGLA: 4,"9000"

OK
=4,"9000">AT+CGLA=1,130,"81E291083CE57D17D091CAE84088B4EA76A9677BD54A24A208B2A5D33CC36DBB6244F3A529927CD66B7CF8F2413C273DDB9267D970624CD916CCA72CB2CE995E31"
AT+CGLA=1,130,"81E291083CE57D17D091CAE84088B4EA76A9677BD54A24A208B2A5D33CC36DBB6244F3A529927CD66B7CF8F2413C273DDB9267D970624CD916CCA72CB2CE995E31"
<AT+CGLA=1,130,"81E291083CE57D17D091CAE84088B4EA76A9677BD54A24A208B2A5D33CC36DBB6244F3A529927CD66B7CF8F2413C273DDB9267D970624CD916CCA72CB2CE995E31"
ERROR
{"type":"lpa","payload":{"code":-1,"message":"es10b_load_bound_profile_package","data":"unknown,unknown"}}
>AT+CCHC=1
AT+CCHC=1
<AT+CCHC=1
OK

And profile list was empty.

After many tries 'profile download' started to fail much quicker and with a different error

{"type":"progress","payload":{"code":0,"message":"es10b_load_bound_profile_package","data":"a1-sys-00.rspservice.online"}}
AT_DEBUG: AT+CGLA=1,250,"81E2110078BF3682B7C5BF2381B682010180106158B864C61E4984B4615620D40EF100A618800188810110841061312D7379732D30302E7273707365725F4941048B452E511F57B3023F895888A51EBCF2062845A8A2B454D9CD8EB191C58A321DE70D34AB303B0BB3F7B91DBF38F07980859CD2CA21BE6370ED78ED61"
AT_DEBUG: +CGLA: 4,"9000"
AT_DEBUG: 
AT_DEBUG: OK
AT_DEBUG: AT+CGLA=1,152,"81E2910147E161B1E45F3740CD07FBAB2CAF8CE1FAE1CAF008E55B0A80C8D2FCED51DB96BC19B58289C704F042E67CB19ADE1C0AC35E448B3C21EEC6D8D374008418C90EF765C0DEBB882A09"
AT_DEBUG: +CGLA: 4,"9000"
AT_DEBUG: 
AT_DEBUG: OK
AT_DEBUG: AT+CGLA=1,66,"81E291001CA01A8718063938E3D5914245CFBFECE315534160E04FF48D49D32BA3"
AT_DEBUG: +CGLA: 4,"619A"
AT_DEBUG: 
AT_DEBUG: OK
AT_DEBUG: AT+CGLA=1,10,"81C000009A"
AT_DEBUG: +CGLA: 312,"BF378196BF275080106158B864C61E4984B4615620D40EF100BF2F24800100810207800C1B61312D7379732D30302E727370736572766963652E6F6E6C696E65060B2B06010401828C434D0101A208A10680010181010A5F37401CE0851A5F4F662432F83064B2EC7E02462B86A0905F55B1E2982BD8FD14A94E1B893DE911227F3E7400D5A278A6BFC0D39744EA26C1C00A8C464A8A071532049000"
AT_DEBUG: 
AT_DEBUG: OK
{"type":"lpa","payload":{"code":-1,"message":"es10b_load_bound_profile_package","data":"configure_isdp,install_failed_due_to_insufficient_memory_for_profile"}}
AT_DEBUG: AT+CCHC=1
AT_DEBUG: OK

Information about memory from chip info

extCardResource":{"installedApplication":0,"freeNonVolatileMemory":503433,"freeVolatileMemory":16253}

SIM card isn't recognized by any phone anymore, isn't detected by 5ber official app. I've tried it on five different phones. I suspect, that all internal memory is full with unfinished profile downloads and I don't know how to get from this broken state.

rdtmaster commented 1 day ago

Try to reset eUICC memory.

AndreySV commented 17 hours ago

Try to reset eUICC memory.

Do you mean lpac chip purge ?

rdtmaster commented 14 hours ago

Try to reset eUICC memory.

Do you mean lpac chip purge ?

Yes

AndreySV commented 13 hours ago

I've tried that already, but it doesn't help. Profile download fails with 'install_failed_due_to_insufficient_memory_for_profile' as before.