Nios4 is a platform for building management software. It is a program that, through tools and functions, lets you create your own data management system.
The data can be of any kind. Whether you need to manage your mother’s recipe book or the production of mechanical parts, Nios4 can be easily adapted.
The platform offers a gradual learning curve, so both beginners and more experienced programmers can start using it right away, beginning with creating data records and moving on to more specific calculations and automations.
Supported operating systems
The platform is available for four operating systems, plus the web version. The most complete version at the moment is the Windows one.
This guide uses that version to explain how the various commands work.
This program contains all the tools for editing and managing the database. Also, as the main development version, it always has the latest features.
For the Apple world there is a version for macOS computers that more or less mirrors the Windows version.
The web version, also developed from the Windows one, lets you use the system from any computer with an internet connection and a web browser.
For mobile there are versions for Android and iOS. The mobile systems deliberately have fewer options, since they are used mainly as terminals for reading and writing data through the Cloud or in Standalone mode.
The company’s goal is to bring the editing tools to both the macOS and web versions. This way users will be able to modify the system with the tool that best suits their needs.
Cloud or local use
Except for the web version, the whole system is designed to be used on the device both in the cloud and locally.
Local use means that the data is stored in a database on the device, which can be a PC or a phone. This data is not sent over the internet and is not directly accessible to the user.
If the user lost the phone or formatted it without first making a backup, the data would be lost for good.
Cloud use basically works like local use: data is read from and written to a database on the device, but the difference is that the data is also sent to an internet server. This lets you have the same data on several devices. Data written on the phone is automatically carried over to the PC through a process called “synchronization”. This way the user can keep using the system even without an internet connection, because the data is saved locally. When a connection becomes available, the device exchanges the information with the central server.
In this case, even if users lost all their devices, they could still recover their data with a new installation and synchronization.
Synchronization basics
Synchronization is the process of exchanging data between the central server and the programs. In practice, it updates the data of the same database and keeps it consistent across all the user’s devices.
When the user adds a new contact on the phone, it is saved in the local database. During synchronization the phone tells the central server about the new data and the server checks whether it already has it. If it doesn’t, the phone sends it to be saved. If the data has been modified, the values on the phone are compared with those on the server: if the phone’s values are more recent they are sent to the server; if the server’s data is more recent, the phone downloads it and overwrites the data in its local database.
This comparison is possible thanks to two fields present in every table of the database.
The first is a text field called GGUID, which contains a globally unique key generated by the device when new data is created. Given the complexity and length of the key, it is practically impossible for two devices to generate two identical keys in the same database.
The second field is a numeric value called TID. It represents the date and time when the data was created or last modified. The value is read from the device’s clock. The date is written in the format YYYYMMDDhhmmss as a number.
Back to the previous example: starting from the last synchronization date and time, the program extracts the data that has been created, modified or deleted. It sends the server the list of GGUIDs with their TIDs. The server checks whether it has these GGUIDs: if not, it writes the new data; if it does, it compares the TIDs received with its own. Based on the comparison, it decides whether to overwrite its data or tell the device to overwrite the data in its local database.
This process applies to the system management tables, to the user’s tables, and also to files and images.
Since synchronization is based on comparing creation and modification dates, it is essential that the devices’ clocks are as closely aligned as possible.
Online resources
The Nios4 system is constantly being changed and updated, so we recommend checking the reference sites to keep up with the latest news, or sending us an email for more information.
Platform website:
info@nios4.com
Developer website:
info@d-one.info
Chapters in this section:
