Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AndreySV opened this issue Nov 27, 2024 · 6 comments
Open

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

AndreySV opened this issue Nov 27, 2024 · 6 comments

Comments

@AndreySV
Copy link

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
Copy link

rdtmaster commented Nov 29, 2024

Try to reset eUICC memory.

@AndreySV
Copy link
Author

Try to reset eUICC memory.

Do you mean lpac chip purge ?

@rdtmaster
Copy link

Try to reset eUICC memory.

Do you mean lpac chip purge ?

Yes

@AndreySV
Copy link
Author

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

@rdtmaster
Copy link

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

Are you sure this card used to be functional in the first place?

@AndreySV
Copy link
Author

Initially I don't wanted to register and use 5ber app. So I have not loaded any profile to SIM-card before.
I started to play with lpac right away and there was no 'install_failed_due_to_insufficient_memory_for_profile' . download profile failed with lpac. I tried to look at debug logs and try different AT ports. I've tried couple times lpac-quectel version with some tty patches without any changes in results. Download profile started to quickly fail with 'install_failed_due_to_insufficient_memory_for_profile' after maybe 15-20 try of profile download. Before that download profile failed with different error and went much further in the process. Now download profile fails with 'install_failed_due_to_insufficient_memory_for_profile' pretty fast at some early stage.

I have lpac logs from the first run, that failed with 'unknown,unknown' and from run, that failed with install_failed_due_to_insufficient_memory_for_profile. Final parts of them are put in the issue description. Do they contain useful information? Could I check, what failed? Does card report error codes, when something fails? Is there any documentation about that?

Since chip info always reported plenty of free memory and profile list was empty, I was thinking, that trying to load profile is harmless, when it fails. Was it wrong assumption?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants