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

did this applet ever work on any card? #1

Open
laf0rge opened this issue Mar 9, 2021 · 6 comments
Open

did this applet ever work on any card? #1

laf0rge opened this issue Mar 9, 2021 · 6 comments

Comments

@laf0rge
Copy link

laf0rge commented Mar 9, 2021

As it fails on both the sysmoUSIM-SJS1 and the sysmoISIM-SJA2 (which are based on completely different chips and operating systems), I'm wondering if this applet has ever been successfully used on any other card. It would be good to have confirmation on this, so we're sure the applet is known-working.

Thanks!

@dielenram
Copy link
Contributor

Hi, thanks for the comment.

This was our first attempt to use the open channel proactive command and we found some problems. Basically the "Bearer description TLV" was wrong and the device wasn't opening the channel. Unfortunately, this project was discontinued. So answering your question, it has never been used and doesn't work.

We had succeeded in a later project that we are about to integrate into our SIM card technology but it isn't going to be published as open source.

@laf0rge
Copy link
Author

laf0rge commented Mar 21, 2021

Hi Diego, thanks for your follow-up.

If I read you correctly, the Bearer Description TLV in this applet is wrong? This is good to know as we every so often get somebody contacting sysmocom about this, suspecting a problem in our cards rather than in this applet.

I willl now point any such inquiries to this issue. Hopefully somebody will invest the time to fix the TLV, now that it's know where the problem is.

@workaholic2002x
Copy link

workaholic2002x commented Jul 19, 2022

Hi, it is the only clean approach in the whole internet after few Chineese scripts.

The issue may be with "allocation" of max channel number with the applet during installation. As it is a optional parameter, (not even conditional), it's often missed
After a lot of exploration, got a clue from here
https://trustedconnectivityalliance.org/wp-content/uploads/2020/01/StepStonesRelease6_v100.pdf

And then it works. Atleast, Channel no allocated.

Yes, the code works with few modifications.

But, it's not a Rosy path. Usual simulator fails. Real device is the one to test with. And for that, hundreds of time someone need to load the applet. For that a "handly application" to be made to load and install the applet to SIM without removing from the SIM from UE. However, it itself is another clumsy job.

@workaholic2002x
Copy link

Once, channel is opened, it is always better to check channel status.

The second issue in the code is here
proHdlr.init((byte)PRO_CMD_SEND_DATA,(byte)0,channelID)
As per TS, the device ID is wrong. Usually Channel ID is 1-7. But device ID must be "2X". So, adding 32 with Channel ID shall give correct result.
The same for sending data, closing channel etc.

@workaholic2002x
Copy link

workaholic2002x commented Jul 19, 2022

Third observation, instead of hitting Google, better to hit a TCP server, like tcpbin.com at Port 4242 which echo backs the data. Sending a small data is good to start

Further, as implemented, Quallifier=1 is great for immediate link set up in OPEN_CHANNEL. Like other Chinese script, others should not make it 0, which does not open channel immediately.
Do, same for sending data (if anyone wants to implement)

@culy247
Copy link

culy247 commented Aug 18, 2022

@dielenram How to set domain instead of ipv4, how to change port to use https?

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

4 participants