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
update_sample_app is a sample application that updates the application.
An SD card is required, so only cameras that can use SD cards will work.
External libraries required for operation
To build with C/C++, need below:
libcurl
The use of external libraries will be explained later.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/update_sample_app
No Python source code.
How to build the sample app (C/C++)
See here for building with C/C++.
How to use the sample app
Here, let's update skeleton_sample_app. See here for how to build skeleton_sample_app.
When you install update_sample_app and skeleton_sample_app and open ADAM OPERATION UI, you will see the following state.
Next, create a skeleton_sample_app for updating. ${SDK_DIR}/src/adamapp/skeleton_sample_app/configuration.txt Open it and change it as below.
APPVERSION V0.2
↓
APPVERSION V0.3
When you build, "SkeletonSampleApp_V0_3_ambaCV2X.ext" will be created, so save it under the {SD card drive}\adamapp folder. Then insert the SD card into the camera.
If the {SD card drive}\adamapp folder does not exist, it can be generated by installing and running the sample app.
Copy the Install ID of skeleton_sample_app and press the AppPrefs button of update_sample_app.
Set appropriate values for each item.
For FileName, specify the update skeleton_sample_app build file name saved on the SD card. For UserID/Password, please specify the information used when logging into the camera. For InstallID, specify the Install ID of skeleton_sample_app that you were copying. Please specify Trigger from Waiting to Start. Once you have specified everything, press the Apply Edit button and close AppPrefs.
After updating, check the App Version of skeleton_sample_app. You can confirm that it has been updated from V0.2 to V0.3.
Appendix
How to change preferences
This application has some preferneces which a user is able to change.
When changing some preferneces, push "AppPrefs" button in "ADAM OPERATION UI" html page.
FileName:
Set transfer app file name.UserID, Password:
Set web authenticate userid and password.InstallID:
Set the InstallID of the app to update.
If not set, get own ID and update self.Trigger:
Change [Start] to start the update.