我正在尝试将一个FFFFFFFFFFFF键加载到万能5321读取器的易失性内存中。但是我得到了一个错误SW1 SW2: 69 86。有人能说出原因吗?(也许万能键不支持编写易失性键?)。
以下是代码:
bcla = 0xFF;
bins = 0x82;
bp1 =0x0 // Load key in volatile memory
bp2 = 0x20 // store in the volatile memory
len = 0x6; // Length = 6 bytes
sendBuffer[0] = bcla;
sendBuffer[1] = bins;
sendBuffer[2] = bp1;
sendBuffer[3] = bp2;
sendBuffer[4] = len;
// Now, copy the actual key to the send buffer
for (int k =0 ;k<=5;k++)
sendBuffer[k + 5] = str3[k]; // This will copy FFFFFFFFFFFF key
// then make call to scardtransmit.. also set length of send buffer to 11发布于 2013-09-17 05:15:18
69 86表示"Command not Allowed"。
试试这个..。
CLA = FF
INS = 82
P1 = 00
P2 = 60/61 (键Id,键A为60,密钥B为61 )
Lc = 06 (数据字段中键的长度)
数据字段=键的值(以6个字节为单位)
示例:
FF 82 00 60 06 FFFFFFFFFFFF
https://stackoverflow.com/questions/18830280
复制相似问题