JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Communicate with two applets on the same java card
Communicate with two applets on the same java card
I have two applets separately in two different packages on the same java card. And I want to communicate with each applet.
I also know that i can not communicate with the two applets simultaneously .
So I should select the first applet and send APDU to it,
deselect the first applet and select the second one, send APDU to it...
I really wonder to know how to do it properly with logical channels. Is there a method to save my operation flow ? I mean I don't need to select and deselect every time i send APDU.
I also know that i can not communicate with the two applets simultaneously .
So I should select the first applet and send APDU to it,
deselect the first applet and select the second one, send APDU to it...
I really wonder to know how to do it properly with logical channels. Is there a method to save my operation flow ? I mean I don't need to select and deselect every time i send APDU.
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: Communicate with two applets on the same java card
You can use MANAGE CHANNEL command(see GP Spec.)to open two logical channel.
Then select the first applet in channel 0 and the second applet in channel 1.
Change reference control parameter to specify to which channel you want to send APDU.
Note: If your two applets in a single package, you must also implement MultiSelectable interface in both applets.
Then select the first applet in channel 0 and the second applet in channel 1.
Change reference control parameter to specify to which channel you want to send APDU.
Note: If your two applets in a single package, you must also implement MultiSelectable interface in both applets.
Who is online
Users browsing this forum: No registered users and 33 guests