I. Introduction
The first half of this article mainly describes the installation and use of the NJJ29C2 CADS GUI, and the second half describes how to configure the CADS host computer to achieve key IMMO HT3 authentication.
2. Install NJJ29C2 CADS GUI
1. Click on the url: v0.30.0 |nwjs2 and download nwjs-v0.30.0-win-x64. zip, as shown in Figure 1.
Figure 1 Download nwjs-v0.30.0-win-x64. zip
2. Unzip “NJJ29C2_CADS_4.4. zip" (you need to go to NXP's official website to apply for download) & "nwjs-v0.30.0-win-x64. zip", will “njj29c2cadsgui. Copy "exe" to the ”nwjs-v0.30.0-win-x64" folder, double-click to open it, as shown in Figure 4, at this point, the installation of the computer on the NJJ29C2 GUI is complete.
图 2 NJJ29C2_CADS_4.4
图 3 NJJ29C2 CADS GUI 软件
Figure 4 NJJ29C2 GUI initial interface
Third, the use of NJJ29C2 GUI
1. According to Figure 5, connect the hardware and use the software J-Flash to "NJJ29C2_CADS. The ”bin" file is burned to the WPI low frequency board, as shown in Figure 6.
Figure 5 Hardware connection diagram
Figure 6 Burning NJJ29C2_CADS. bin file
2. Press the WPI low frequency board reset button (MCU-RST), the corresponding version information is displayed above the CADS, and the communication of the Console interface has serial port printing data, as shown in Figure 7.
Figure 7 NJJ29C2 GUI initialization interface
3. As shown in Figure 8, the NJJ29C2 GUI can refresh & select the serial port. The LF antenna parameters can be configured in the PKE interface. After the configuration is complete, you can click on the corresponding mode to generate the corresponding configuration command.
Figure 8 Description of the PKE interface
4. In the Console interface, press “Choose File” to select the sample text, and send the configuration command through “Send command to board".
Figure 9 Sample text
Figure 10 Console interface description
4. IMMO HT-3 certification
1. Initialize the configuration of NJJ29C2, drive the antenna TX5/RX2, the IMMO type is LM, and the drive current is 0.5A.
Figure 11 Initialization configuration command
[Note] The current of the IMMO drive antenna configuration is too high, causing NJJ29C2 to be unable to distinguish the LF data returned by NCF29A1. It is recommended to set the drive current to 0.5A.
2. According to the IMMO HT3 authentication protocol, configure NJJ29C2 to drive the low-frequency antenna to send corresponding commands. The NCF29A1 IMMO HT-3 authentication process is shown in Figure 13.
Figure 12 IMMO HT-3 authentication command
Figure 13 IMMO HT-3 certification Process
3. Copy the code (the appendix has the complete code) to the Console interface corresponding to the NJJ29C2 DEMO, click “Send command to board”, and send the serial port command. You can get the 32bits IDE & 48bits Response corresponding to NCF29A1 in Communication, as shown in Figure 15.
Figure 14 Console interface
Figure 15 NCF29A1 IDE & RESPONSE obtained
V. Reference materials
[1] UM-SCA2010-NJJ29C2 CADS User Manual. pdf
[2] UM-SCA1903-NJJ29C2 Customer Demo Operation. pdf
[3] UM-SCA1905-NJJ29C2 Customer Demo Operation GUI. pdf
[4] S32K144 CADS 调试 - 大大通(简体站) (wpgdadatong.com.cn)
VI. Appendix
IMMO HT-3 certification code
REM: Script tested with NJJ29C2A6 (6CH C0) on WPI LF Board and CADS v4.12
REM: Deviation to default device initialization: PHASEALIGN_DSBL = 1, IMMO ICOILMAX_INIT = 3A, ICOILMAX_OP = 6A
CMD_CONFIG_DEVICE(1,0x08,0x02,0x0C,0x40,0x25,0x01,0xD5,0x25,0x10,0x00,0x03,0xFF,0x85,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
REM: Modify the default LF driver ton time (TONTAR) to optimize the LF driver duty cycle (ton/8us).
CMD_CONFIG_ADVANCED(1,0x03,0xBB,0xB3,0xE5,0x15,0xF2);
CMD_CONFIG_DRIVER(0,0xED,0x02,0x38,0x44,0xEB,0x30,0xF0,0x10,0x82,0x38,0x3F,0xEB,0x30,0xF0);
REM: Disable SPI logging to avoid extension of the LF activation time due to UART
SPILOG_CONFIG(0);
RESP_PARSING_CONFIG(1);
CMD_SAVE(3);
REM: CMD_START_LF_TRANSMIT_DATA for update of IMMO antenna impedance
CMD_START_LF_TRANSMIT_DATA(1,0x04,0x10,0x20,0x04,0x05);
REM: Wait for IRQ to get information about success of LF transmission for antenna impedance learning
WAIT_IRQ(50);
REM: Start the LF carrier, T_ACTIMMO 2.048ms,0.5Ap, TX5, RX2, LM
CMD_START_IMMO(1,0x0C,0x01,0x68,0x20,0x43,0x11,0x00,0x12,0x14);
REM: Transponder boot time + margin
DELAY(29);
REM: 5-bit GET_IDE LF command (HT3: 11100)
CMD_START_IMMO_TRANSCEIVE(1,0x05,0x28,0x00,0xE0);
REM: WAIT until the transponder response is received
WAIT_IRQ(40);
REM: Host software shall confirm that RESP_GENERIC after IRQ reports LF_INFO = 1
REM: Request the data received from the tranponder 32-bits IDE + 8-bits CRC
CMD_GET_DEVICE_INFO(0,1);
REM: 64-bit Challenge (0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00)
CMD_START_IMMO_TRANSCEIVE(1,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00);
REM: WAIT calculation time 8.8ms
DELAY(10);
REM: 16-bit MAC (0xAB,0x83),receive 48-bit Response
CMD_START_IMMO_TRANSCEIVE(1,0x10,0x30,0x00,0xAB,0x83);
REM: WAIT until the transponder response is received
WAIT_IRQ(40);
REM: Host software shall confirm that RESP_GENERIC after IRQ reports LF_INFO = 1
REM: Stop LF carrier
CMD_STOP_ALL(1,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00);
REM: In this example the IMMO is stopped before reading the response to avoid extension of the operation time
REM: due to the transfer of the log messages
REM: Request the data received from the tranponder 48-bits Response
CMD_GET_DEVICE_INFO(0,1);
CMD_SAVE(0);
AUTONOMOUS_MODE(1,2,2000);
comment