Hi,
I am working on SLIX2 tag using reference document from NXP as SL2S2602 with NXP controller PN7120. What I was trying is to program the tag with all possible security provided by Tag. Here is my procedure,
- Connect
- getRandomNumber
- XorPassword =
Utils.xor(Utils.append(rndBlock,rndBlock)!!, byteArrayOf(0, 0, 0, 0))
- setReadPassword
- setWritePassword
- writePasswordRead (01 as READ_PASSWORD_IDENTIFIER)
- writePasswordWrite (02 as WRITE_PASSWORD_IDENTIFIER)
Till this functionality, I get all response as success, but once I start writing protect Page for each block through,
- protectPage(0.toByte(), 10.toByte()), which internally convert as,
| Flags | Protect Page | IC Mfg Code | Optional UID | Page number | Protection Status |
* |--------+--------------+--------------+--------------+-------------+--------------------|
* | 8 bits | 8 bits | 8 bits | 64 bits | 8 bits | 8 bits |
rawCmd(ICODE_CMD_PROTECT_PAGE, NFCV_FLAG_ADDRESS, byteArrayOf(ID_NXP).plus(mUid).plus(pageNum).plus(protectionStatus))
where I send transceive Cmd: 0x20 B6 04 UID(8bytes) 00 10,
response Cmd: 01 0F
I have no clue what went wrong. Also there is no sample example for all these password related API's.
Any sample for these API will be highly appreciated,
- Lock Password
- 64Bit Password Protection
- Protect Page
- Lock Protect Page
- Destroy
- Enable Privacy
- Protect EAS/AFI
Can somebody help me out with any sample ?
Regards,
Praween