Chinaunix首页 | 论坛 | 博客
  • 博客访问: 754739
  • 博文数量: 98
  • 博客积分: 4934
  • 博客等级: 上校
  • 技术积分: 1151
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-12 19:55
文章分类

全部博文(98)

文章存档

2014年(1)

2013年(2)

2012年(4)

2011年(25)

2010年(33)

2009年(33)

分类: Java

2010-07-30 16:30:46

This driver is a Windows version of the JCOP Simulation ifdhandler (see for more information). It enables a PC/SC client software on Windows 2000 to talk with the JCOP simulator.

Files

  1. jcop_vr.sys: kernel-mode driver.
  2. jcop_proxy.exe: user-mode application.

As it seems to be difficult for me to invoke socket functions (or TDI functions) from a kernel-mode driver, the user-mode application invokes Winsock functions to mediate interaction between the kernel-mode driver and the JCOP simulator.

Notice

  • Works only for Windows 2000: This driver is developed as a legacy smart card driver and needs a help of Smart Card Helper service which has been deprecated from Windows XP SP2.
  • T=1 is not fully supported: As this driver is a virtual driver, it has minimal error free operations. No error detection and correction is implemented.
  • No warranty: This software is provided on an "AS IS" basis and without any warranty. This software includes a kernel-mode driver and may induce a Blue Screen of Death (and damage your system), but you are solely responsible for determining the appropriateness of using this software.

Installation & usage (or how to debug your JavaCard Applet)

  1. Install jcop_vr.sys. I usually use DIP.exe provided at .

2. Execute Eclipse or JCOP Tools.
3. Set some break points in your JavaCard Applet and invoke the JCOP debugger.

4. Type "/close" in the JCOP Shell window to close the JCOP Shell session. Otherwise, you can not connect to the JCOP simulation socket server.

5. Execute jcop_proxy.exe. Type "jcop_proxy start" in command prompt.

After you have successfully started jcop_proxy.exe, you will see the following dialog. Press "OK".

6. Open service in control panel, select "Smart Card" service (not "Smart Card Helper" service) and restart it.

7. Execute your own PC/SC application and invoke some commands.
8. To stop jcop_proxy.exe, type "jcop_proxy stop" in command prompt.

After you have successfully stopped jcop_proxy.exe, you will see the following dialog.

  • You may need some reboot to make this driver work properly. For example, if you have uninstalled this driver, you need to restart your pc before the next installation.

阅读(1507) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~