Qt Simulator Manual 1.2.0

Simulating Near Field Communication

Near field communication (NFC) is a wireless communication technology that enables users to exchange information between devices that are located near each other. NFC has an extremely short range (approximately 1 centimeter) and a maximum transfer rate of 424 kbit/s. NFC is ideal for transferring small packets of data between two devices that touch each other. The short transmission range makes NFC an inherently secure communication technology. However, the data transfer itself is unencrypted, so any security measures must be implemented in the NFC application.

NFC-based communication between two devices is possible when one device acts as a reader/writer and the other as a tag. The tag is a thin simple device containing antenna and small amount of memory. It is a passive device, powered by magnetic field.

The reader is an active device, which generates radio signals to communicate with the tags. The reader powers the passive device in case of passive mode of communication.

The NFC tags can be used within applications such as posters, where small amounts of data can be stored and transferred to active NFC devices. The data stored on the NFC tag may contain any form of data such as URL, phone number, or calendar information.

To ensure interoperability between different NFC tag providers and NFC device manufacturers, the NFC Forum has defined a set of NCF Forum Tags.

Testing Tag Access

You can use Qt Simulator to test applications that use the NCF API for interacting with NFC Forum Tags. You can test target detection and loss, as well as tag access.

"NFC view"

To test target detection and tag access, double-click a tag in the NCF view to specify that the target is in the proximity of the simulated device. Double-click the target again to toggle the proximity status, and thus simulate target loss.

Editing Targets

Usually, you should be able to test your application by using the predefined tags. To edit them, click Edit Targets > Open and select an .nfc file.

"NFC Target Editor dialog"

To create a new target of the type NFC Tag Type 1 or NFC Tag Type 2, click Edit Targets. Specify details about the tag in the editor and click Save to save the tag as an .nfc file. You can also copy an .nfc file to the \stubdata\nfctargets folder to add a tag to the Targets list.

To remove a tag from the Targets list, delete the .nfc file from the \stubdata\nfctargets folder.


Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();