UpdateFileType command. STMicroelectronics ST25TA02K-D
Werbung
Werbung
ST25TA02K-D RF command sets
Value
Value
Table 46. R-APDU table of the EnablePermanentState command (continued)
Data SW1 SW2 Comment
-
0x6A
0x6A
0x82
0x86
File or application not found
Incorrect P1 or P2 values
Note:
For further return codes and definitions, refer to Section 5.6.2: Status and error codes
.
This command allows to modify the file type of a selected file to Proprietary file (0x05) or
NDEF file (0x04).
This command is granted only, when application and file are selected and if the file length and access right have previously been set to 0X00h (message invalid, all access rights granted).
This command will update the file type located in the CC file by writing into the EEPROM. In this case, the response timing will be around 6 ms.
Table 47 defines the UpdateFileType command.
Name CLA
Table 47. UpdateFileType command format
INS P1 P2 Lc Le
0xD6 0x00 0x00 0x01
Data
0x04 or
0x05
Value 0xA2
Class byte
Select instruction code
P1 field
P2 field
Number of bytes of data
-
File type
Table 48 describes the R-APDU of the UpdateFileType command.
Length
Value
Value
Value
Value
Value
Data
Table 48. R-APDU of the UpdateFileType command
SW1 SW2 Comment
-
-
-
-
-
-
1 byte
0x90
0x69
0x6A
0x6A
0x6A
1 byte -
0x00 Command completed
0x82 Security status not satisfied
0x80
0x82
0x86
CC file or System file selected
File or application not found
Incorrect P1 or P2 values
DocID027817 Rev 5 47/66
60
Herunterladen
Werbung