Table of contents
Introduction
This explanation assumes that the i-PRO camera application development environment has been completed.
If you are not ready to build the development environment, please refer to here to complete it.
Also, in this tutorial, the SDK installation directory is described as を${SDK_DIR}
.
Operation overview
iac_server_sample_app is a sample application that communicates with iac_client_sample_app.
Send messages periodically from iac_client_sample_app.
External libraries required for operation
No special mention.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/iac_server_sample_app
${SDK_DIR}/src/adamapp/iac_client_sample_app
No Python source code.
How to build the sample app (C/C++)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR} $ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp/iac_server_sample_app $ make $ cd src/adamapp/iac_client_sample_app $ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp/iac_server_sample_app and ${SDK_DIR}/src/adamapp/iac_client_sample_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
Press the Setup >> button of iac_client_sample_app, and if the following screen is displayed, it is successful.
Press the Setup >> button of iac_server_sample_app, and if the following screen is displayed, it is successful.
How to use the sample app
In this sample app, messages are sent from iac_client_sample_app to iac_server_sample_app at a 1-second cycle. Try refreshing the screen by pressing the F5 key several times on the iac_server_sample_app screen.
You can see that the number following ALOHA!! is updated every second. This is updated because iac_client_sample_app is sending messages, so let's stop iac_client_sample_app.
Open the ADAM OPERATION UI. For ADAM OPERATION UI, please build the environment referring to here. Stop the iac_client_sample_app by pressing the button in the pink frame in the image below.
Open the iac_server_sample_app in this state and press the F5 key several times to refresh the screen.
Since iac_client_sample_app has stopped sending messages, you can see that the number following ALOHA!! is no longer updated at 1-second intervals.