Mifareultralight Data Format
The storage area of NFC tags is divided into 16 pages. Each page can store 4 bytes, and each page can store 64 bytes (512 bits ). The page number starts from 0 (0 to 15 ). The first four pages (0 to 3) store information related to NFC tags (such as the serial number and control bit of NFC tags ). The actual data is stored from page 1 (4 to 15 pages ).
Read and Write mifareultralight data
Use the mifareultralight. Get method to obtain the mifareultralight object, call the mifareultralight. Connect Method for connection, and use the mifareultralight. writepage method to write one page (4 bytes) at a time ). You can also use the mifareultralight. readpages method to read four consecutive pages each time. If the number of the page to be read exceeds 15, read from the beginning. For example, you can read data from page 1 (number 14. The readpages method reads data on pages 14, 15, 0, and 1.
Write a program for reading and writing data in mifareultralight format