Altova MobileTogether Designer

Near Field Communication (NFC) is a set of wireless technologies which allows for the transfer of data across short distances—typically 4cm (1.5 inch) or less—between two NFC-enabled devices. The technology is most commonly seen in use when payments are made by touching an NFC-enabled credit/debit card to an NFC-enabled payment terminal. NFC allows the transfer of small payloads of data, usually text or numbers. But NFC can also be used to transfer other kinds of data (such as images and files) between two NFC-enabled devices.

 

For more information about NFC, see nearfieldcommunication.org, Wikipedia, and the NFC Forum.

 

NFC-enabled devices

NFC-enabled devices may be active or passive. A passive device—for example an NFC tag—contains information that other (active) NFC devices, such as smartphones, can read. Active devices can read information and send it. A smartphone is an active NFC device. It can read information from passive NFC devices as well as exchange information with other NFC-enabled devices.

 

If security of communication is important, NFC can establish a secure connection and use encryption.

 

Android Beam™ and NFC availability on Android

Android Beam™ (hereafter Android Beam) is an app that is available on Android devices since Android 4.0. It can be used to share data between two Beam-enabled devices. Typically, the currently open content (web page, photo, contact information, etc) on one device is beamed to the other device by touching the devices back-to-back.

 

Note:Although Android Beam is available in the OS, it will not be available for use on a device if the device does not support NFC (for example, if the device does not contain an NFC chip).

 

In order to use Android Beam on a device, make sure that (i) the device supports NFC, and (ii) both NFC and Android Beam are enabled on the device. To check the availability of NFC and Android Beam, and to enable them, go to the Settings | Network tab of the Android device. If the NFC and Android Beam options are available, then enable them if you want to use them. If both options are not available and if the OS is later than Android 4.0, then NFC is not available on the device.

 

Note:If both an Android device and a Windows device are NFC-enabled, then they can communicate with each other via NFC.

 

NFC availability on Windows and iOS

 

Windows: To check the availability of NFC on a Windows device and enable it, go to: Settings | Tap+Send.

iOS: NFC is used only with Apple Pay. It cannot be used for sharing other kinds of data.

 

Note:If both an Android device and a Windows device are NFC-enabled, then they can communicate with each other via NFC.

 

NDEF technology

NFC data is sent and received in the form of NFC Data Exchange Format (NDEF) messages. In the NDEF format, each communication is an NFC tag. Each NFC tag contains an NDEF message, and each NDEF message contains one or more NDEF records. When an active NFC device is unlocked, it will automatically search for NFC tags in its vicinity. Depending on the intent of any discovered NFC tag, the device will determine how to best handle the NFC tag. It is important that the device does not ask the user what action to take. This is because any user input will cause the device to be moved away from the NFC tag, thus breaking the connection. For more information, see the Android Developer Guide.

 

One important point to keep in mind while designing for NFC in MobileTogether is that the payload of the NFC message (that is, the content of the message) is stored and transferred in hexBinary format. The lexical space of the hexBinary format is a simple coding (of data points) as hexadecimal values. For example: The string hi when converted to hexBinary format is 6869 (since the hex representation of h is 68 and the hex value of i is 69).

 

NFC tags

The term NFC tag is used to refer to two different concepts:

 

a piece of data that is transferred using the NDEF technology (see NDEF technology immediately above)

a passive NFC device that contains NFC data

 

The second kind of NFC tag listed above is a hardware object that contains a microchip. In its simplest form, this kind of NFC tag resembles a postage label. The most significant properties of this kind of NFC tag are: (i) it contains data that can be read; (ii) the data it contains can be overwritten multiple times till the NFC tag is locked; (iii) once it is locked, the NFC tag cannot be overwritten any more.

 

For more information, see NFC Tags Explained.

 

MobileTogether and NFC

MobileTogether solutions support NFC in the following ways:

 

NFC tags can be read and data from them can be processed further (Android and Windows devices)

Messages can be pushed from one device to another (from Android and Windows devices)

Files can be beamed from one Android-Beam-enabled Android device to another Android-Beam-enabled Android device

 

Note:NFC support is not available on iOS devices.

 

In this section

 

Discovering and Reading NFC Tags

Pushing Data to Other Devices

NFC-Related Events

Design Components for NFC

 

© 2017-2023 Altova GmbH