Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Application deselect

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

Application deselect

Post by 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

Post by 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: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: Application deselect

Post by 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

Post by WhiteRabbit » Fri May 18, 2018 4:31 am

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

vikas
Posts: 11
Joined: Wed Mar 07, 2018 2:10 am
Points :358
Contact:

Re: Application deselect

Post by 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: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: Application deselect

Post by 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: 11
Joined: Wed Mar 07, 2018 2:10 am
Points :358
Contact:

Re: Application deselect

Post by 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

Post by 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: 11
Joined: Wed Mar 07, 2018 2:10 am
Points :358
Contact:

Re: Application deselect

Post by 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: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: Application deselect

Post by 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.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 58 guests

JavaCard OS : Disclaimer