The Native API Library (libSTARTUPOPH5000.a) must be linked to the user application. When the code of the user application calls the function published in this SDK, the native API provided by the OS is called via this Native API Library.

You can also use the libraries published by the SDK (AdvancedMenu library, HttpRequest library, etc.) or your own library by linking it to the application program. These libraries, like the code in your application, use the native API functionality provided by the OS via the Native API Library.



User applications are developed in C language using the libraries provided by this SDK. The following program is an example of the simplest user application.

#include <stdio.h>
#include "lib.h"

void main(void)
{
    printf( "Hello World!\n" );

    while(1)
    {
        Idle();
    }
}

The OS initializes the system when the terminal starts or restarts, and calls the main() function of the user application after that. The user application performs all control while calling the functions of the library provided by the OS. The main function should not return as in this example.

You can install up to two user applications on OPH-5000i. You can install up to 3 application programs in total, including the Built-in applications included in the OS.
The installed user application is saved in the Flash Disk directory (/SYSTEM directory) managed by the OS.

Even while the user application is running, the System menu can be opened by special key operation. The application program to be started is selected by Switch application in the System menu. Select an application to start from the following.
  • Built-in App
  • User App #1
  • User App #2
Only one application program selected here is loaded in the executable memory, and it is automatically started every time the device is restarted.



Last updated: 2021/06/26