PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Some use examples
  • Implementation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
NFC (Near Field Communication) is a wireless communication technology at short range and high frequency used to exchange data (named "tag") between two devices or between a device and a bullet even at short distance (few centimeters).
The NFC technology is an extension of RFID : the main differences are a shorter communication distance (ten centimeters for the NFC) and a higher volume of exchanged data (40 bytes for most of the RFID tags and up to 8 KB for the NFC tags).
NFC allows several uses, some of them are related to the field of contactless cards (ATM, payment, access...) while others are based on the interaction between the individual persons and their environment : objects, persons.
  • The card emulation mode:
    In the card emulation mode (passive mode), the mobile device behaves like a contactless smart card. This mode is not supported at the moment on the Android devices.
  • The reader/writer mode:
    The mobile device becomes a reader of contactless cards (active mode) or a reader of "radio-labels" (electronic labels). This mode allows you to read information by moving your mobile device in front of electronic labels found in the street, on bus stops, monuments, posters, ... or on packages, products or business card (vCard), ...
    You also have the ability to write the content of these labels from the mobile device.
  • The "Peer-to-peer" mode:
    This mode allows two mobile devices to exchange information, for example vCard, photos, videos, money, tickets, etc. A device equipped with the NFC technology can exchange information with contactless smart cards but also with other devices equipped with this technology.

Some use examples

  • Payment by using a contactless credit card or a mobile device (cell phone, "Smartphone", laptop computer, tablet, ...) on a contactless payment device.
  • Payment of car park via a till accepting the contactless payment by using a NFC mobile device.
  • Buying and validating a transportation ticket or a ticket for a show via a mobile device.
  • Managing the vouchers in a store or a loyalty customer card.
  • Accessing and starting a vehicle via a mobile phone.
  • Reading information about products (price, composition, allergy, etc.) in a store.
  • Checking the access to restricted areas (meeting rooms, company, university, etc.).
  • Exchanging profiles between two users of a social network or between two gamers by "typing" the two phones (peer-to-peer mode).
  • Reading an electronic business card 
  • Synchronizing Internet tags and contacts between a PDA and a cell phone.
  • Retrieving the WiFi key of an access point by moving the "NFC device" near the hotspot.
Implementation
To manage the NFC, WINDEV Mobile proposes:
  • Two types of data to define the tag:
    Versions 18 and later
    nfcData
    New in version 18
    nfcData
    nfcData
    A nfcData variable is used to describe and handle the data of a nfcTag variable].
    Versions 18 and later
    nfcTag
    New in version 18
    nfcTag
    nfcTag
    The nfcTag type is used to define the advanced characteristics of a NFC tag (Near Field Communication).
  • Various functions:
    • Function to find out the status of the sensor:
      Versions 18 and later
      NFCStatus
      New in version 18
      NFCStatus
      NFCStatus
      Returns the activation status of the NFC sensor found on the device.
    • Functions to read and write the NFC tags:
      Versions 18 and later
      NFCReadTag
      New in version 18
      NFCReadTag
      NFCReadTag
      Starts reading a NFC tag or enables the detection of NFC tags for the current window.
      Versions 18 and later
      NFCWriteTag
      New in version 18
      NFCWriteTag
      NFCWriteTag
      Starts writing data onto a NFC tag.
    • Function to establish a "peer-to-peer" communication:
      Versions 18 and later
      NFCSendTag
      New in version 18
      NFCSendTag
      NFCSendTag
      Sends a NFC tag to another device.
Notes:
  • The NFC functions cannot be used in the simulator or in the emulator.
  • The NFC functions are available for the devices running Android version 2.3.3 or later (api level 10).
    A fatal error occurs if the function is used with an earlier system version.
    Reminder: To find out the version of Android system on which the application is run, use SysAndroidVersion.
Minimum required version
  • Version 18
Comments
Click [Add] to post a comment