Page 1 of 1

Question about APDU

Posted: Sun Oct 08, 2017 8:52 pm
by colkif
I have downloaded the new JCIDE. And it's an excellent tool for java card developers I think.
But when I program my Hello world applet, I have two questions.

- Where will be the bytes sent if we used the method APDU.sendBytes() ?
- From where APDU.getBuffer() retrieves bytes?

Re: Question about APDU

Posted: Sun Oct 08, 2017 9:18 pm
by mabel
A1: Method sendBytes() causes the card to send a number of bytes to terminal from current APDU buffer.
A2: Method getBuffer() returns a reference to a byte array buffer contained command data sent from terminal to the card.

If you use JCIDE to run your applet, you may communicate with the simulator.