Heli
This application allows you to read and edit the contents of a Heli Tag. A Heli Tag is an NFC tag (type V) that is attached to a cable. The application considers two independent sections: the first, public, is accessible to everyone in reading and writing, only to the 'maintenance' user. The second requires the maintenance password to be read as well as to be modified. The Heli Tag are manufactured by PULR.
Note:
You can test on your mobile :
This application also demonstrates how to use a library (since most of the NFC nodes are imported from a public library).
Hardware
You will need:
- A phone with NFC enabled
- An Heli Tag from PULR.
The App
This App allows you to read and write data stored inside an Heli Tag. It starts by checking the current Heli Tag configuration. If it's not configured (NFC tag memory is empty), it will ask the user to initialize it.
Initialization will:
- Define a
maintenance
user with an initial empty password. This password can be changed once logged in. - Create two memory areas:
- A
public
area that can be read without restriction but write only after logging in (with themaintenance
user password). - A
protected
area where read and write are protected by themaintenance
user password.
- A
Once initialized, the user will have access to the information contained in the "public" section of the tag. This information includes a label, a description, and text defining the two ends of the cable (origin/destination).
User can also define the maintenance
user password to view and modify the protected
section.
UI Editor
The UI features two modes that correspond to the following possible states:
#noTagContainer
when you did not tap an Heli Tag yet.#hasTagContainer
when you tap an Heli Tag. The heli tag can have two distinct state:#tagNotConfiguredContainer
when your Heli Tag has not been initialized yet (NFC Tag memory is empty).#tagConfiguredContainer
when your Heli Tag has been initialized (NFC Tag memory is partitionned in two areas to store public and protected data)
Data Flow Editor
Key features:
- It is organized into modular blocks that are described below
- It uses additional user library
heli
(pageExtensions > App Creator Libraries
) that contains logic to configure/read/write data to your Heli Tag through NFC and manage authenticated sessions.
-section- | -Description- |
---|---|
1 | Initialize Heli Tag device when user performs an NFC tap on an Heli Tag |
2 | Read Heli Tag current configuration |
3 | Initialize Heli Tag configuration when user click on button "Initialize" |
4 | Error management nodes. When an error occurs we display a toast messsage and we log the error in the console |
5 | Update UI container visibility according to the Heli Tag configuration state (configured or not) |
6 | Manage protected data read/write (when user is autenticated whith "maintenance" user) |
7 | Change maintenance password related nodes |
8 | Clear button |
9 | Manage public data read/write |