APDU更新记录中的最后3位是什么?
-- -- -- -- -- 0 0 0 First record
-- -- -- -- -- 0 0 1 Last record
-- -- -- -- -- 0 1 0 Next record
-- -- -- -- -- 0 1 1 Previous record
-- -- -- -- -- 1 0 0 Record number given in P1 例如APDU 00 DC 00 03 08 .
我更新当前EF (基本文件)上的当前记录,但以前的记录是什么?
谢谢你的建议。
发布于 2013-10-28 09:08:29
有3种模式来更新记录。每个APDU由5个字节组成,第一个字节是类,然后是INS,然后是P1、P2和长度。就你而言:-
Class - '00'
INS - 'DC'
P1 - '00'
p2 - '03'
Length - '08'现在的模式由P2决定。
'02' = next record;
'03' = previous record;
'04' = absolute mode/current mode, the record number is given in P1 with P1='00' denoting the current record.现在,假设您位于第2条记录,并且希望更新第3条记录,那么您将给P2作为'02‘,如果您想更新1记录,那么您将P2作为'03’。如果您想更新相同的第二条记录,请给出P1='00‘和P2='04’。如果您想更新第6记录,那么给P1='06‘和P2='04’。
如果你想要更多的澄清,请问。
https://stackoverflow.com/questions/19615329
复制相似问题