Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of contents

...

Table of Contents
minLevel1
maxLevel4

はじめに

...

Overview

...

Here we will explain the steps to build the iPRO Camera SDK app using the Azure IoT Edge container and check its operation. Also, in this tutorial, the SDK installation directory is described as ${SDK_DIR}として記載します。.

Info

このチュートリアルはSDK This tutorial only supports SDK ver.2.00以降のみ対応しています。SDK .00 or later. Please note that it cannot be used with SDK ver.2.00未満では利用できませんので注意ください。

動作確認手順

Visual Studio Code上で新規のIoT Edge Solutionを作成する

...

00 or lower.

Operation confirmation procedure

...

Create a new IoT Edge Solution on Visual Studio Code

The following describes the case where the sample app to be referenced is skeleton_sample_app for the C version, additional_info_sample_app、作成するEdge Solutionがtest_appの場合について説明します。注意点としてEdge Solutionの名称はすべて小文字である必要があります。

C版/Python版アプリの説明

...

C版/Python版いずれのアプリも動作確認方法はほぼ同様です。C版を例に説明しますが、異なる部分は適宜説明します。また、アプリのパスは以下の通りですので、適宜読み替えてください。

...

app for the Python version, and test_app for the Edge Solution to be created. Please note that the Edge Solution name must be in all lowercase letters.

Description of C version/Python version application

Info

The operation confirmation method for both the C version and Python version of the application is almost the same. I will explain using the C version as an example, and the different parts will be explained as appropriate. Also, the application path is as follows, so please read it as appropriate.

C version app path
${SDK_DIR}/src/adamapp

Python版アプリのパスPython version app path
${SDK_DIR}/src/adamapp-py

[SDKフォルダ]直下でVisual Studio Codeを立ち上げます。Launch Visual Studio Code directly under [SDK folder].

Code Block
cd ${SDK_DIR}
code .

 

Copy the ”${SDK_DIR}/src/adamapp/skeleton_sample_app フォルダを同じフォルダ内にコピーします。app” folder into the same folder.

...

コピーしたフォルダをtest_appにリネームします。[コピーしたフォルダRename the copied folder to test_app.

Rename the "skeleton_sample_app" folder in [copied folder]/container/modules の「skeleton_sample_app」フォルダもtest_appにリネームします。Visual Studio CodeのEXPLORERからコピーしたフォルダto test_app.

Right-click the folder (test_app) を右クリックし、「Find in Folder…」を選択し、SEARCHウィンドウを表示します。copied from Visual Studio Code's EXPLORER and select "Find in Folder..." to display the SEARCH window.

...

検索で「skeletonSearch for "skeleton_sample_app」を検索しすべて「test_app」に置き換えます。対象は以下となります。app" and replace everything with "test_app". The targets are as follows.

  • ${SDK_DIR}\src\adamapp\test_app\container\deployment.template.json

  • ${SDK_DIR}\src\adamapp\test_app\container\modules\test_app\module.json

...

  • The following must be enabled in the Visual Studio Code "LOCAL" extension

    • Dev Containers

    • Remote - SSH, Remote - SSH: Editing Configuration FIles, Remote - Tunnels, Remote Development, Remote Explorer

    • WSL

  • The following must be enabled in Visual Studio Code's "WSL: UBUNTU-20.04" extension:

    • Azure Account

    • Azure IoT Edge

    • Azure IoT Hub

  • "WSL: Ubuntu-20.04" is displayed at the bottom left of the Visual Studio Code screen.

    Image RemovedImage Added
  • If permission denied is displayed in Build IoT Edge Solution, check whether the current user has access rights to the target directory.

    Code Block
    sudo chown -r ipro:ipro [development directory]
    ※ipro:ipro is an example, so please set it according to each environment.

    Run the above to change the owner.

...