inputalarm_app

 

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


inputalarm_app is a sample application that receives alarm input events and outputs alarm types.

 

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/inputalarm_app

No Python source code.

 

How to build the sample app (C/C++)


This article describes how to build it as AdamApp.
If you want to build it as Container AdamApp for Azure IoT Edge, see below.

Development tutorial (Container AdamApp for Azure IoT Edge) - Technology Partner FAQ (En) - Confluence (atlassian.net)

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/inputalarm_app $ make

It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp/inputalarm_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).

 

It is successful if the characters like the image below are displayed.

 

How to use the sample app


Receive an alarm input event and try to output an alarm type.
When run the sample app, it looks like this:

After confirming, close the sample app.

Configure Alarm settings to check the operation of the sample application. Here, VMD alarm is set to ON for explanation.

By displaying the image of the camera and putting your hand etc. in front of the lens of the camera, you can confirm that the VMD Alarm is detected in the lower right.

When you start the sample application again, you can confirm that the alarm input event is received and the alarm type is output.