Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect to the local terminal?

952006Jul 27 2012 — edited Aug 6 2012
Hello
I have made a simple card applet and a host application with eclipse JCDE and JCOP. The card applet goes well by using JCOP shell command like /select and /send apdu, but the host.application can not found the local terminal "Remote|localhost:51007".

The Log of the card app:
cm> card-info
=> 80 F2 80 00 02 4F 00 00 .....O..
(1077 usec)
<= 08 A0 00 00 00 03 00 00 00 01 9E 90 00 .............
Status: No Error
=> 80 F2 40 00 02 4F 00 00 ..@..O..
(3005 usec)
cm> /terminal "tcl:10"
jcshell: Cannot init/open terminal: Cannot load DLL: C:\Users\tang\Desktop\Javacard development\eclipse\plugins\com.ibm.bluez.jcop.ecl(
- /terminal "winscard:4|FT SCR2000 0"
--Opening terminal
/terminal "winscard:4|FT SCR2000 1"
--Opening terminal
/terminal "winscard:4|FT SCR2000B 0"
--Opening terminal
/select |Test
jcshell: Not connected to a card, reset card first!
- /terminal "Remote|localhost:51007"
--Opening terminal
/card
--Waiting for card...
ATR=3B E9 00 00 81 31 FE 45 4A 43 4F 50 34 31 56 32 ;....1.EJCOP41V2
32 A7 2.
ATR: T=1, N=0, IFSC=254, BWI=4/CWI=5, Hist="JCOP41V22"
=> 00 A4 04 00 07 A0 00 00 00 03 00 00 00 .............
(1667 usec)
<= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65 o..............e
01 FF 90 00 ....
Status: No Error
cm> /term
Terminal: Remote(Socket[addr=localhost/127.0.0.1,port=51007,localport=51086]/JCOP (built: Dec 1 2005 12:35:27))
Status: Card present, 00000004
Last error:



The Log of the Offcard app:
Terminals Found: 4
PC/SC terminal FT SCR2000 0
PC/SC terminal FT SCR2000 1
PC/SC terminal FT SCR2000B 0
PC/SC terminal FT SCR2000B 1
Card Not Present

Thank you!

Edited by: 949003 on 2012-7-28 上午7:48
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2012
Added on Jul 27 2012
7 comments
1,031 views