Hello,
I have a problem working with "HelloApplet" from Nokia NFC/RFID SDK.
I installed the HelloApplet (on the javacard of the shell),
and the HelloMidlet (on the Nokia 3220)..
When I open HelloMidlet and enter the name "Marc",
the HelloApplet
correctly answers "Hello Marc"...
When I try to send APDU using a usb reader, I always get
the error "6985" (Conditions of use not satisfied)
[COLOR="Red"]Is it possible connect to applets (installed on
Nokia 3220 NFC shell) using a USB reader?
Anyone has any tips on how to do this?
[/COLOR]--------------------------------------------------------------------------
I use an OMNIKEY CardMan 5121. (works great for uploading Applet)
I made a Java application to transmit APDU to the Nokia 3220 NFC shell.
I send the following APDU to the GSM:
80 01 00 00 04 4A 61 6E 65 (as written in Nokia SC Programmers manual)
Explained:
(80 01 00 00 == for HelloApplet to get triggered)
(04 == 4 bytes coming)
(4A 61 6E 65 == Jane)
I also tryed to switch Nokia 3220 shell SCCmode (SC-on,SC-only,SC-off)
no effect with that either...
CMD output: (from Java source)Open terminal ...
--Waiting for card...
ATR=3B 88 80 01 00 73 C8 40 00 00 90 00 62 ;....s.@....b
=> 80 01 00 00 04 4A 61 6E 65 .....Jane
(8571 usec)
<= 69 85 i.
Status: Conditions of use not satisfied
Java source: (for sending APDU)import java.io.*;
import com.ibm.jc.*;
import com.ibm.jc.terminal.*;
public class test_apdu
{
public static void main(String[] args)
{
System.out.println("Open terminal ...");
JCTerminal term = JCTerminal.getInstance
("pcsc:4", "OMNIKEY CardMan 5x21-CL 0");
term.open();
TraceJCTerminal _term = new TraceJCTerminal();
_term.setLog(new PrintWriter(System.out));
_term.init(term);
term = _term;
JCard card = new JCard(term, null, 10000);
byte[] send_final = {
(byte)0x80,(byte)0x01,(byte)0x00,
(byte)0x00,(byte)0x04,(byte)0x4A,
(byte)0x61,(byte)0x6E,(byte)0x65};
System.out.println("SEND...");
byte ontvangen[]= term.send(0,send_final,0,send_final.length);
term.close();
}
}