13. NFC technology: Read and Write Data in non-ndef format

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.