ICODE SLIX2 Commands
The ptxNativeTag_T5T API comes with some basic commands implemented, like read/write/lock single block and multiple blocks. There are many more ICODE SLIX commands however, which are not included in the SDK. There is a non-official example implementation of these commands using the non-OS IOT Reader SDK. The example can easily be applied to the OS and POS SDKs as well.
Example 1
This example supports the following commands:
Get Random Number -
0xB2Set Password -
0xB3Write Password -
0xB4Protect Page -
0xB6Enable Privacy -
0xBARead Inventory -
0xA0Get System Information -
0xAB
The project is made for the RA2E1 Evaluation Board and the example application includes a command line interface. For this a serial emulator software is required, like Tera Term.
1. Set up the UART pins of the RA2E1 EVB
2. Add SLIX2 DEMO in project setting
3. Set Transmit to CR+LF and enable "Local echo" in Terminal settings of Tera Term
4. Open the emulator and approach a tag to the antenna
5. For Set password (write) settings, enter b3 -> 02 -> password 4byte as shown below (initial value is “0000”)
6. For single block write, enter 21 -> block number to change value -> data to enter (4byte) in that order
Command Examples with SPI MOSI:
This approach is more integrated, it involves making changes to the ptxNativeTag_T5TSetCommandHeader() function in ptxNativeTag_T5T.c and to the ptxNativeTag_T5T_t structure in ptxNativeTag_T5T.h .
Project:
Example 2
This example contains only 3 commands (Get Random Number, Set Password and Protect Page) and the project uses the SDK's RA4M2 reference implementation (EK-RA4M2 Evaluation Board). This approach involves no changes to core SDK functions or structures. The example application executes the commands in order once a T5T tag is activated, then exits the application loop. Output is printed to UART (pin 112 TX, pin 113 RX). Command parameters can be changed in ptx_IOT_RD_Main.c .
Get Random Number command using UID:
Flags: 0x22 (Address Mode, High Data Rate)
Command: 0xB2
IC Mfg code: 0x04
UID: 0xE0040150D7BA5662
Random number received: 0x3F61
Set Password command using UID:
Flags: 0x22 (Address Mode, High Data Rate)
Command: 0xB3
IC Mfg code: 0x04
UID: 0xE0040150D7BA5662
Password identifier: 0x01 (Read)
XOR password calculated from random number and password: 0x3E613E61
Protect Page command using UID:
Flags: 0x22 (Address Mode, High Data Rate)
Command: 0xB6
IC Mfg code: 0x04
UID: 0xE0040150D7BA5662
Protection pointer address: 0x14
Extended protection status: 0x01 (page L is read protected)
Project: