%&'"()*+,,-,,.".
The default composition of the flash, includes a recovery file system base in
busybox-1.27.2. This file system can be booted in case the Debian file system
can not be booted, for example after changing critical files that prevent the unit
from booting up.
%% $)'
Once the cross compiler is installed, the user can use this compiler in the
desired development environment, for example, Netbeans.
To use the available APIs library functions, add the includes to owa4x files in
application header files and compile the application using the provided cross
compiler.
owa4x files to be included in customer header files are:
<owa4x/RTUControlDefs.h>
<owa4x/IOs_ModuleDefs.h>
<owa4x/ GSM_ModuleDefs.h>
<owa4x/ INET_ModuleDefs.h>
<owa4x/ GPS2_ModuleDefs.h>
<owa4x/owcomdefs.h>
<owa4x/owerrors.h>
All API module libraries have been written in C Language using the
KDeveloper environment with gcc 5.3 cross-compiler tool, under LINUX
Xubuntu 16.04 Operating system. It is recommended, to avoid problems from
the development environment, to use the same language, compiler, and
environment when possible.
Usually, a Client application is comprised of a main executable program, and a
set of libraries. This set of libraries can be of two types: system libraries, both
static and dynamically loaded; and owa4x API module libraries, always used in
a dynamic way.
Once an application is defined, what the user has to do is select which libraries
will be used and get pointers to the needed functions, using them as C
language normal functions. For a better use of system resources, it is
recommended to unload all functions of a library, as well as the library itself,
when it is known that it will not be used any more in the program’s scope. Also,
it is not necessary to get all functions pointers in a library, if some of them will
not be used in the program: it is a waste of memory, and system resources
which can be useful for other tasks, and will improve the system behaviour in
general.
Another alternative is to use the .h header of the library to compile the program
against the library.
6.6.1 Available APIs
In this section there is an overview of the available APIs and an explanation of
their functionality. For further information about the APIs and their functions, it is
recommended to read through Programming Guide and API 59
6.6.1.1 API for owa4x Control (RTU)
This API provides functions to enter the low power modes and RTC.
&,