PreviousNext
Generating QR Code Image
Help > Generating Smart Connect QR Code > Generating QR Code Image

The last step is to generate the QR Code image containing the encoded IQRF Code. Again, the Tools/IQRF Code Tools (Ctrl+Alt+S) or IQRF_IDE_Command.exe will do the job. Alternatively, there are dozens of either online or command-line tools to generate QR Codes for the given text (IQRF Code in our case). Please pay attention to the sufficient image size, resolution, print quality, print material quality, its adhesiveness, and the location of the QR Code at the product.

 

*UnhideHtmlStart*<p class=MsoNormal>The following video shows creating IQRF Code using IQRF IDE.</p><br>*UnhideHtmlStop*

*UnhideHtmlStart*<iframe width="560" height="315" src="https://www.youtube.com/embed/1nMSHHMxk5Q" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>*UnhideHtmlStop*

8      IQRF Code at NFC

Alternatively, the IQRF Code used for the Smart Connect can be stored at the NFC chip integrated into the product. Then IQRF Network Manager mobile application can read the IQRF Code from NFC chip and execute the Smart Connect. NFC must comply with ISO/IEC 15693 or NFC forum type 5.

 

The same IQRF Code that is used at Smart Connect QR Code is to be simply stored at the nonvolatile NFC chip memory starting from the address 0. Currently, the application is tested and works with NFC chip ST25DV04K from ST. If the NFC chip uses the same RF commands then the mobile application will support it too. Make sure the NFC content is protected against modification via RF.

 

We recommend storing Nop before every MID, IBK, and  HWPID so their data bytes are favorably aligned at the byte boundary (not at the nibble boundary). Please find below the pseudocode for writing a new IQRF Code into NFC memory. Of course, it does not make sense to write the IQRF Code to the NFC every time the product is started, just for the first time.

 

1.     Start writing to the NFC memory from address 0.

2.     Write Nop+MID tags (byte 0x15).

3.     Write 4 bytes of MID, MSB first, i.e. for MID 0x12345678, write 0x12, 0x34, 0x56, 0x78.

4.     Write Nop+IBK tags (byte 0x25).

5.     Write 16 bytes of IBK.

6.     Write Nop+HWPID tags (byte 0x35).

7.     Write 2 bytes of HWPID, MSB first, i.e. for HWPID 0x1234, write 0x12, 0x34.

8.     Write End tag (byte 0x00).

9.     Stop writing to the NFC memory.