It's our great honour to announce the Industry’s First VHBR CCID reader - VHBR Dual interface smart card reader vR504. It is able to support the world’s fastest ePassports.

To celebrate the new product release, there is Special Discount for New Registered Members in our store.
- Get $20.00 OFF instantly for smart card reader vR504, R502 and bR301

Come to get the readers now!

Application deselect

JavaCard Applet Development Related Questions and Answers.
vikas
Posts: 8
Joined: Wed Mar 07, 2018 2:10 am
Points: 190
Contact:

Application deselect

Postby vikas » Fri May 18, 2018 2:39 am

Can we deselect the currently running applet without selecting the other one?
If so,how i can perform this?

TIA.

WhiteRabbit
Posts: 5
Joined: Thu May 17, 2018 11:04 am
Points: 40
Contact:

Re: Application deselect

Postby WhiteRabbit » Fri May 18, 2018 3:39 am

This question is good, I also want to know. If from the terminal side, the only thing needs to do is send some APDUs(I am not sure, but it should be). But if in applet internal codes, how to do it?

wumindejia
Posts: 44
Joined: Thu Sep 22, 2016 5:05 am
Points: 674
Contact:

Re: Application deselect

Postby wumindejia » Fri May 18, 2018 4:10 am

You can send the command of manage channel to close the channel of the application. The method of deselect is called when a SELECT APDU command or a Manage CHANNEL CLOSE APDU command is received by the Java Card runtime environment.

WhiteRabbit
Posts: 5
Joined: Thu May 17, 2018 11:04 am
Points: 40
Contact:

Re: Application deselect

Postby WhiteRabbit » Fri May 18, 2018 4:31 am

That means applet can call the method of deselect by itself...

vikas
Posts: 8
Joined: Wed Mar 07, 2018 2:10 am
Points: 190
Contact:

Re: Application deselect

Postby vikas » Fri May 18, 2018 5:48 am

Directly calling the deselect() is not working for me and i also don't want to send any APDU command for either SELECT or MANAGE CHANNEL CLOSE.
Is there any other way to deselet the applet without sending APDU commands?

wumindejia
Posts: 44
Joined: Thu Sep 22, 2016 5:05 am
Points: 674
Contact:

Re: Application deselect

Postby wumindejia » Fri May 18, 2018 5:54 am

vikas wrote:Directly calling the deselect() is not working for me and i also don't want to send any APDU command for either SELECT or MANAGE CHANNEL CLOSE.
Is there any other way to deselet the applet without sending APDU commands?

Cold reset or hot reset.

vikas
Posts: 8
Joined: Wed Mar 07, 2018 2:10 am
Points: 190
Contact:

Re: Application deselect

Postby vikas » Fri May 18, 2018 6:09 am

wumindejia wrote:
vikas wrote:Directly calling the deselect() is not working for me and i also don't want to send any APDU command for either SELECT or MANAGE CHANNEL CLOSE.
Is there any other way to deselet the applet without sending APDU commands?

Cold reset or hot reset.


sorry i didn't get this.Can u elaborate.

WhiteRabbit
Posts: 5
Joined: Thu May 17, 2018 11:04 am
Points: 40
Contact:

Re: Application deselect

Postby WhiteRabbit » Fri May 18, 2018 7:28 am

I think his meaning may be is to unplug the card from the reader by hand or trigger a warm reset by software(disconnect parameter).
It's time to read the Java Card Run Time Environment specification again. Perhaps there is an answer in the reference implementation.

vikas
Posts: 8
Joined: Wed Mar 07, 2018 2:10 am
Points: 190
Contact:

Re: Application deselect

Postby vikas » Fri May 18, 2018 7:44 am

no actually i am just implementing some code an i am not involved with any card rt now.
I just want to deselect the currently running Applet without sending any APDU's command.
so, i need some code or any logic to do this.

wumindejia
Posts: 44
Joined: Thu Sep 22, 2016 5:05 am
Points: 674
Contact:

Re: Application deselect

Postby wumindejia » Fri May 18, 2018 9:31 pm

vikas wrote:no actually i am just implementing some code an i am not involved with any card rt now.
I just want to deselect the currently running Applet without sending any APDU's command.
so, i need some code or any logic to do this.

Sorry, i don't know.


Return to “Questions & Answers”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer