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!

Video Tutorial - Create new project and debug javacard applet with JCIDE.

Applets Development Guide

Moderator: product

User avatar
product
Posts: 94
Joined: Wed May 20, 2015 2:04 am
Points: 416
Contact:

Video Tutorial - Create new project and debug javacard applet with JCIDE.

Postby product » Fri Aug 21, 2015 3:44 am

This video shows how to create new project and debug javacard applet with JCIDE.

phpBB [video]


Note:
    1. Download the attachment to view this video.
    2. Download the video from Google Drive.
You do not have the required permissions to view the files attached to this post. Please login first.

User avatar
javacardbr
Posts: 22
Joined: Mon Aug 10, 2015 9:38 am
Points: 104
Location: BRAZIL
Contact:

Re: Create new project and debug javacard applet with JCIDE.

Postby javacardbr » Fri Aug 21, 2015 9:45 am

Very good! Thanks.
Waiting the next guide :)
Learning every day ;)

User avatar
product
Posts: 94
Joined: Wed May 20, 2015 2:04 am
Points: 416
Contact:

Re: Create new project and debug javacard applet with JCIDE.

Postby product » Wed Aug 26, 2015 10:07 pm

The code used in this video as follows:

Code: Select all

package testApplet;

import javacard.framework.*;

public class testApplet extends Applet
{

   public static void install(byte[] bArray, short bOffset, byte bLength)
   {
      new testApplet().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
   }

   public void process(APDU apdu)
   {
      if (selectingApplet())
      {
         return;
      }

      byte[] buf = apdu.getBuffer();
      apdu.setIncomingAndReceive();
      short res = 0;
      switch (buf[ISO7816.OFFSET_INS])
      {
      case (byte)0x01:
         short tmp1 = buf[ISO7816.OFFSET_P1];
         short tmp2 = buf[ISO7816.OFFSET_P2];
         res  = (short)(tmp1 + tmp2);
         Util.setShort(buf, (short)0, res);
         apdu.setOutgoingAndSend((short)0, (short)2);
         break;
      case (byte)0x02:
         apdu.setOutgoingAndSend((short)0, (short)5);
         break;
      default:
         ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
      }
   }

}

GraceGIRL
Posts: 15
Joined: Fri May 15, 2015 3:25 am
Points: 30
Contact:

Re: Create new project and debug javacard applet with JCIDE.

Postby GraceGIRL » Thu Sep 10, 2015 10:31 pm

Thank you for sharing this video. :)


Return to “Applets Development Guide”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer