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

'SCardTransmit() failed: 0000045D' on 5ber Ultra eUICC chip #157

Open
joeyoropesa-dev opened this issue Oct 2, 2024 · 22 comments
Open

'SCardTransmit() failed: 0000045D' on 5ber Ultra eUICC chip #157

joeyoropesa-dev opened this issue Oct 2, 2024 · 22 comments

Comments

@joeyoropesa-dev
Copy link

joeyoropesa-dev commented Oct 2, 2024

> C:\Users\Joey Oropesa\.minilpa\windows_x86\Dir\lpac.exe version
{"type":"lpa","payload":{"code":0,"message":"success","data":"v2.1.0"}}
> C:\Users\Joey Oropesa\.minilpa\windows_x86\Dir\lpac.exe driver apdu list
{"type":"driver","payload":{"env":"DRIVER_IFID","data":[{"env":"0","name":"Generic Smart Card Reader Interface 0"}]}}
> C:\Users\Joey Oropesa\.minilpa\windows_x86\Dir\lpac.exe profile list
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}
SCardTransmit() failed: 0000045D
SCardTransmit() failed: 0000045D

It simply doesn't read the card at all.

@septs
Copy link
Contributor

septs commented Oct 2, 2024

ERROR_IO_DEVICE

1117 (0x45D)

The request could not be performed because of an I/O device error.

from https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1000-1299-

this card has been opened by another program.

@septs septs closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
@joeyoropesa-dev
Copy link
Author

ERROR_IO_DEVICE
1117 (0x45D)
The request could not be performed because of an I/O device error.

from https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1000-1299-

this card has been opened by another program.

By what program - I don't have any other program that communicates with smart cards

@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Oct 2, 2024

Also, this too after restart:

SCardTransmit() failed: 8010002F
SCardTransmit() failed: 0000045D

And after getting this error, I'm getting this error

SCardTransmit() failed: 0000045D
SCardTransmit() failed: 0000045D

@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Oct 2, 2024

@septs So, what's the problem with this. Why it cannot just simply load. Did anyone reported these errors before about 5ber cards? What stopping 5ber card to be readed. Is it something wrong with my card? It works fine on smartphone but it doesn't work with OpenEuicc and similar LPA tools for android so I believe there is an compatibility issue here so communications aren't successful.

@septs
Copy link
Contributor

septs commented Oct 2, 2024

5ber.eSIM Ultra?

@joeyoropesa-dev
Copy link
Author

5ber.eSIM Ultra?

Yes. Here's documentation about it 5ber Ultra

@septs
Copy link
Contributor

septs commented Oct 2, 2024

5ber.eSIM Ultra, break change ISD-R AID, he doesn't meet the GSMA SGP.22 standards

but this is not bug

CC @estkme

@septs septs reopened this Oct 2, 2024
@septs septs changed the title [BUG] Cannot detect 5ber eUICC chip Cannot detect 5ber eUICC chip Oct 2, 2024
@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Oct 2, 2024

Thank you so much for re-opening issue. If this gets implemented and support 5ber eUICC chip in the near future, this could help alot with improving support with built-in LPA modules and device could actually recognize eUICC inside 5ber and be flagged as eSIM-compatible (with EID included in *#06#)

@septs
Copy link
Contributor

septs commented Oct 2, 2024

No, Android use standard ISD-R AID access eUICC chip

but 5ber Ultra is changed it

so no, unless you recompile the entire AOSP

@joeyoropesa-dev
Copy link
Author

No, Android use standard ISD-R AID access eUICC chip

but 5ber Ultra is changed it

so no, unless you recompile the entire AOSP

So, that's why OS cannot detect eUICC - hmm... can that be changed via patching miui-framework.jar or built-in LPA to actually support it or that will require changes in low-level firmware files like kernel or something..

Since the ROM that my device is running is closed source

@septs
Copy link
Contributor

septs commented Oct 2, 2024

it can be considered that 5ber ultra is not compatible with GSMA SGP.22

@septs septs changed the title Cannot detect 5ber eUICC chip Cannot detect 5ber Ultra eUICC chip Oct 2, 2024
@AndreySV
Copy link

AndreySV commented Nov 6, 2024

Could it be the same reason, why modem (Quectel EG25-G) can't open logical channel, when I'm trying to work with 5ber Ultra card on Linux?

$ sudo env LPAC_APDU=at AT_DEVICE=/dev/ttyS2 AT_DEBUG=1 lpac profile list
AT_DEBUG: AT+CCHO=?
AT_DEBUG: OK
AT_DEBUG: AT+CCHC=?
AT_DEBUG: OK
AT_DEBUG: AT+CGLA=?
AT_DEBUG: OK
AT_DEBUG: AT+CCHC=1
AT_DEBUG: ERROR
AT_DEBUG: AT+CCHC=2
AT_DEBUG: ERROR
AT_DEBUG: AT+CCHC=3
AT_DEBUG: ERROR
AT_DEBUG: AT+CCHC=4
AT_DEBUG: ERROR
AT_DEBUG: AT+CCHO="A0000005591010FFFFFFFF8900000100"
AT_DEBUG: ERROR
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}

@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Nov 8, 2024

Wait... since this is not an bug but incompatibility issue, will support be implemented or simply we need to accept fact that 5ber Ultra cannot be managed on PCs due to incompatibility

@AndreySV
Copy link

Are 5ber Premium SIM-cards suffer from the same problem?

@joeyoropesa-dev
Copy link
Author

Are 5ber Premium SIM-cards suffer from the same problem?

I don't believe but you can try - maybe they started to implement this change to every new 5ber eSIM card (that includes premium and standard editions too, not just ultra but you will need to test that by yourself)

@joeyoropesa-dev
Copy link
Author

Any news on this case? Should this be closed if support for these cards are not planned for this project

@joeyoropesa-dev
Copy link
Author

@estkme Should we close this issue for the reason mentioned above?

@estkme
Copy link
Contributor

estkme commented Nov 20, 2024

well, at least I know how to "support" 5ber ultra , but I have no idea wether it will make some trouble, since we are also sell eUICC cards, we have business competitive with 5ber.

@joeyoropesa-dev
Copy link
Author

joeyoropesa-dev commented Dec 3, 2024

well, at least I know how to "support" 5ber ultra , but I have no idea wether it will make some trouble, since we are also sell eUICC cards, we have business competitive with 5ber.

It would not be any issue - it could actually help 5ber.SIM users to improve support and flexibility on more devices and other eSIM providers too 👍 - I would even pay extra for this kind of support to both your project and 5ber.SIM and pay for your eUICC SIM product to get this kind of support ✨

@Root-Core
Copy link

I have a similar issue with the 5ber Standard, using Linux:

[manjaro-lenovo manjaro]# lpac version
{"type":"lpa","payload":{"code":0,"message":"success","data":"v2.1.0"}}
[manjaro-lenovo manjaro]# lpac driver apdu list
{"type":"driver","payload":{"env":"DRIVER_IFID","data":[{"env":"0","name":"Lenovo Integrated Smart Card Reader 00 00"}]}}
[manjaro-lenovo manjaro]# lpac profile list
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}

@estkme Thank you very much for your efforts, it would be greatly appreciated if this problem could be fixed. If you decide not to release anything, could you point us in the right direction?

@CoelacanthusHex
Copy link
Contributor

I have a similar issue with the 5ber Standard, using Linux:

[manjaro-lenovo manjaro]# lpac version
{"type":"lpa","payload":{"code":0,"message":"success","data":"v2.1.0"}}
[manjaro-lenovo manjaro]# lpac driver apdu list
{"type":"driver","payload":{"env":"DRIVER_IFID","data":[{"env":"0","name":"Lenovo Integrated Smart Card Reader 00 00"}]}}
[manjaro-lenovo manjaro]# lpac profile list
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}

@estkme Thank you very much for your efforts, it would be greatly appreciated if this problem could be fixed. If you decide not to release anything, could you point us in the right direction?

The issue about the 5ber standard edition will continue at #175

@CoelacanthusHex CoelacanthusHex changed the title Cannot detect 5ber Ultra eUICC chip 'SCardTransmit() failed: 0000045D' on 5ber Ultra eUICC chip Dec 13, 2024
@estkme
Copy link
Contributor

estkme commented Dec 17, 2024

I have a similar issue with the 5ber Standard, using Linux:

[manjaro-lenovo manjaro]# lpac version
{"type":"lpa","payload":{"code":0,"message":"success","data":"v2.1.0"}}
[manjaro-lenovo manjaro]# lpac driver apdu list
{"type":"driver","payload":{"env":"DRIVER_IFID","data":[{"env":"0","name":"Lenovo Integrated Smart Card Reader 00 00"}]}}
[manjaro-lenovo manjaro]# lpac profile list
{"type":"lpa","payload":{"code":-1,"message":"euicc_init","data":""}}

@estkme Thank you very much for your efforts, it would be greatly appreciated if this problem could be fixed. If you decide not to release anything, could you point us in the right direction?

302984f#diff-540b8e2653e840b9e2ee21f53e7b4f6c9c0ffdc0e36566824efd7273f0386073R175

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

6 participants