JCIDE和pyapdutool

时间:2016-08-30 17:10:01

标签: javacard

我用gcide编写了一个代码。当我想在gpshell中调试它时,我看到了这条消息:

Start jcvm_gp successfully.
Connect Simulator:eJava Token successfully.
>> /card -a ""
ATR=3B 70 13 00 00

>> 00 A4 04 00 00
<< .. 90 00

>> set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F

>> init-update 255
<< ..90 00

>> ext-auth
<< ..90 00

>> upload 
<< .. 90 00

>> install A000000308 A00000030800001000 A00000030800001000  
<< .. 90 00

>> cardinfo
<< .. 90 00

Card Manager AID   :  A000000003000000
Card Manager state :  OP_READY

    Application:  SELECTABLE (--------) A00000030800001000
    Load File  :      LOADED (--------) A000000308
     Module    :                        A00000030800001000

 1. Disconnect apdu port with JCVM successfully. 

 2. Connect JAVACOS Virtual Contact Reader 0 successfully. Connect JAVACOS        Virtual Contactless Reader 1  successfully.

 3. Connect CL port failed,IP:127.0.0.1:Port:0.
    Reason: The requested address is not valid in its context.
 4. Connect CB port successful,IP:127.0.0.1  Port:51836 T0

但是例如当我写命令/select时,我得到了Jcvm没有连接。

>> /select "A0 00 00 03 08 00 00 10 00"
>> 00 A4 04 00 09 A0 00 00 03 08 00 00 10 00 00
<< 00 00   Jcvm is not connected
Win32 Interface already disconnected.

我也启用了pcsc接口,我使用了模拟器:ejavatoken但是在调试模式下有一段时间它连接了 PyAPDUTool 但有时没有。 每个人都可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

请记住,eJava Token只有联系端口,您无法连接CL端口。

如果您想连接非接触式端口,请将JCIDE模拟器更改为“模拟器:默认”,“模拟器:A40CR”或“模拟器:A22CR”,然后您可以在pyapdutool /中随意连接联系人或非接触式gpshell。