Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it now!

Application deselect

JavaCard Applet Development Related Questions and Answers.
vikas
Posts: 6
Joined: Wed Mar 07, 2018 2:10 am
Points: 106
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: 35
Joined: Thu Sep 22, 2016 5:05 am
Points: 558
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: 6
Joined: Wed Mar 07, 2018 2:10 am
Points: 106
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: 35
Joined: Thu Sep 22, 2016 5:05 am
Points: 558
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: 6
Joined: Wed Mar 07, 2018 2:10 am
Points: 106
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: 6
Joined: Wed Mar 07, 2018 2:10 am
Points: 106
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: 35
Joined: Thu Sep 22, 2016 5:05 am
Points: 558
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 2 guests

JavaCard OS : Disclaimer