refactor: move ISO15693 magic tag handling to the device side
Identification, writing and failure handling for magic Gen1 and V3 tags now runs in a single field session on the device, which reports PM3_SUCCESS only when the UID reads back as requested. armsrc/iso15693.c: - SetTag15693Uid() probes 0x38/0x39/0x3E/0x3F and refuses to write when any of them answers with data, verifies the UID afterwards and blanks the four blocks again when it did not change. - SetTag15693Uid_v3() and FinalizeTag15693_v3() are new, both check the 0x14/0x15 configuration signature before writing and verify after. client/src/cmdhf15.c: - csetuid and cfinalize now only select a command and print the status. The V3 block helpers and constants move to armsrc, which restores the original read helper with its CALLOC message and the ISO15_ERROR_HANDLING_* macros. Behaviour change: hf 15 cfinalize without -y no longer energizes the tag and no longer reports configuration mode before asking for confirmation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e74bb0f2e5
commit
f0a502b279
5 files changed
+321
-285
No files matched your search
@@ -1026,6 +1026,8 @@ typedef struct {
|
||||
|
||||
#define CMD_HF_ISO15693_CSETUID 0x0316
|
||||
#define CMD_HF_ISO15693_CSETUID_V2 0x0333
|
||||
#define CMD_HF_ISO15693_CSETUID_V3 0x0334
|
||||
#define CMD_HF_ISO15693_CFINALIZE_V3 0x0335
|
||||
|
||||
#define CMD_LF_SNIFF_RAW_ADC 0x0360
|
||||
|
||||
|
||||
Reference in new issue
Block a user