老是Status: CLA value not supported

cm>  send F0EE7FFF00
=> F0 EE 7F FF 00                                     .....
(280180 nsec)
<= 6E 00                                              n.
Status: CLA value not supported


-----------------------------

要按JCOP指导讲的所有scripts运行一次都可以连上

file:///E:/Teach-JavaCard/jcop/doc/guide/shell/tutorial.html#info




A Sample JCShell Session
The following sequence of JCShell commands represents a typical shell session in which an applet is loaded onto a card, a command is sent to the applet for testing purposes and finally the applet is deleted.

Switch trace mode on and connect to a PC/SC smart card reader
/mode trace=on
/terminal


Reset the card (request ATR) and select the CardManager
/card


Set the keys in key set 255 of the JCShell for authentication later on
set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F
set-key 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F
set-key 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F


Begin authentication using the appropriate key set
init-update 255


Complete authentication
ext-auth


Upload the package holding the applet
upload c:/sample.cap


Install the applet in the package
install |PackageAID |AppletAID


Display the card registry to check if the applet is loaded and installed
card-info


Select the applet
/select |AppletAID


Send a command to the applet (e.g. for testing the applet)
/send 00CA000100


Select the CardManager again
select


Do authentication again
init-update 255
ext-auth


Delete the applet and the package
delete |AppletAID
delete |PackageAID


Display the card registry to check if the package/applet is gone
card-info


-----------------------------------------------

在以在install scripts 后加上

/mode trace=on
/terminal
/card
set-key 255/1/DES-ECB/404142434445464748494A4B4C4D4E4F
set-key 255/2/DES-ECB/404142434445464748494A4B4C4D4E4F
set-key 255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
init-update 255
ext-auth
card-info
/select A00000000987

猜你喜欢

转载自ap0406708.iteye.com/blog/1697914
CLA