

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# IoT SiteWise OPC UA コレクター
<a name="iotsitewise-opcua-collector-component"></a>

IoT SiteWise OPC UA コレクターコンポーネント (`aws.iot.SiteWiseEdgeCollectorOpcua`) を使用すると、 AWS IoT SiteWise ゲートウェイはローカル OPC UA サーバーからデータを収集できます。

このコンポーネントを使用すると、 AWS IoT SiteWise ゲートウェイは複数の OPC UA サーバーに接続できます。 AWS IoT SiteWise ゲートウェイの詳細については、「 *AWS IoT SiteWise ユーザーガイド*」の[「エッジ AWS IoT SiteWise での の使用](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/gateways-ggv2.html)」を参照してください。

**Topics**
+ [バージョン](#iotsitewise-opcua-collector-component-versions)
+ [タイプ](#iotsitewise-opcua-collector-component-type)
+ [オペレーティングシステム](#iotsitewise-opcua-collector-component-os-support)
+ [要件](#iotsitewise-opcua-collector-component-requirements)
+ [依存関係](#iotsitewise-opcua-collector-component-dependencies)
+ [構成](#iotsitewise-opcua-collector-component-configuration)
+ [入力データ](#iotsitewise-opcua-collector-component-input-data)
+ [出力データ](#iotsitewise-opcua-collector-component-output-data)
+ [ローカルログファイル](#iotsitewise-opcua-collector-component-log-file)
+ [ライセンス](#iotsitewise-opcua-collector-component-licenses)
+ [変更ログ](#iotsitewise-opcua-collector-component-changelog)
+ [関連情報](#iotsitewise-opcua-collector-component-see-also)

## バージョン
<a name="iotsitewise-opcua-collector-component-versions"></a>

このコンポーネントには、次のバージョンがあります。
+ 3.1.x
+ 3.0.x
+ 2.6.x
+ 2.5.x
+ 2.4.x
+ 2.3.x
+ 2.2.x
+ 2.1.x
+ 2.0.x

## タイプ
<a name="iotsitewise-opcua-collector-component-type"></a>

<a name="public-component-type-generic"></a>この<a name="public-component-type-generic-phrase"></a>コンポーネントはジェネリックコンポーネント (`aws.greengrass.generic`) です。[Greengrass nucleus](greengrass-nucleus-component.md) は、コンポーネントのライフサイクルスクリプトを実行します。

<a name="public-component-type-more-information"></a>詳細については、「[コンポーネントタイプ](develop-greengrass-components.md#component-types)」を参照してください。

## オペレーティングシステム
<a name="iotsitewise-opcua-collector-component-os-support"></a>

このコンポーネントは、次のオペレーティングシステムを実行するコアデバイスにインストールできます。
+ Linux
+ Windows

## 要件
<a name="iotsitewise-opcua-collector-component-requirements"></a>

このコンポーネントには次の要件があります。
+ Greengrass コアデバイスは、次のいずれかのプラットフォームで実行する必要があります。
  + OS: Ubuntu 20.04 以降

    アーキテクチャ: x86\$164 (AMD64) または ARMv8 (Aarch64)
  + OS: Red Hat Enterprise Linux (RHEL) 8

    アーキテクチャ: x86\$164 (AMD64) または ARMv8 (Aarch64)
  + OS: Amazon Linux 2

    アーキテクチャ: x86\$164 (AMD64) または ARMv8 (Aarch64)
  + OS: Debian 11

    アーキテクチャ: x86\$164 (AMD64) または ARMv8 (Aarch64)
  + OS: Windows Server 2019 以降

    アーキテクチャ: x86\$164 (AMD64)
+ Greengrass コアデバイスは、OPC UA サーバーへのアウトバウンドネットワーク接続を許可する必要があります。

## 依存関係
<a name="iotsitewise-opcua-collector-component-dependencies"></a>

コンポーネントをデプロイすると、 は互換性のあるバージョンの依存関係 AWS IoT Greengrass もデプロイします。つまり、コンポーネントを正常にデプロイするには、コンポーネントとその依存関係のすべての要件を満たす必要があります。このセクションでは、このコンポーネントの[リリースされたバージョン](#iotsitewise-opcua-collector-component-changelog)の依存関係と、各依存関係に対するコンポーネントのバージョンを定義するセマンティックバージョン制約をリスト表示しています。コンポーネントの各バージョンの依存関係は、[AWS IoT Greengrass コンソール](https://console.aws.amazon.com//greengrass)でも確認できます。コンポーネントの詳細ページで **[Dependencies]** (依存関係) リストを確認します。

次の表では、このコンポーネントのすべてのバージョンの依存関係を一覧表示します。


| 依存関係 | 互換性のあるバージョン | 依存関係タイプ | 
| --- | --- | --- | 
| [Greengrass nucleus](greengrass-nucleus-component.md) | >=2.3.0 <3.0.0 | ハード | 
| [ストリームマネージャー](stream-manager-component.md) | >2.0.10<3.0.0 | ハード | 
| [シークレットマネージャー](secret-manager-component.md) | >=2.0.8 <3.0.0 | ハード | 

コンポーネントの依存関係の詳細については、「[コンポーネント recipe のリファレンス](component-recipe-reference.md#recipe-reference-component-dependencies)」を参照してください。

## 構成
<a name="iotsitewise-opcua-collector-component-configuration"></a>

このコンポーネントに設定パラメータはありません。

 AWS IoT SiteWise コンソールまたは API を使用して、IoT SiteWise OPC UA コレクターコンポーネントを設定できます。詳細については、「AWS IoT SiteWise  ユーザーガイド」の「[ステップ 4: データソースを追加する - オプション](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-gateway-ggv2.html#add-data-sources-console)」を参照してください。

## 入力データ
<a name="iotsitewise-opcua-collector-component-input-data"></a>

このコンポーネントは、次の形式のデータのみを受け入れ、他のすべてのデータは無視され、破棄されます。次の表は、OPC UA データ型を SiteWise に相当するものにマッピングしています。


|  **SiteWise データ型**  |  **OPC UA データ型**  |  **説明**  | 
| --- | --- | --- | 
|  `STRING`  |  `String` `Guid` `XmlElement`  |  最大長 1024 バイトの文字列。  | 
|  `INTEGER`  |  `SByte` `Byte` `Int16` `UInt16` `Int32` `UInt32`\$1 `Int64`\$1  |  `-2,147,483,648 to 2,147,483,647` からの範囲の符号付き 32 ビット整数。  | 
|  `DOUBLE`  |  `UInt32`\$1 `Int64`\$1 `Float` `Double`  |  範囲が `–10^100 to 10^100` および `IEEE 754` の倍精度浮動小数点数。  | 
|  `BOOLEAN`  |  `Boolean`  |  `true` または `false`  | 

\$1 OPC UA データ型 `UInt32` と `Int64` のとき、SiteWise がその値を表すことができる場合は SiteWise データ型は `INTEGER` になります。それ以外の場合は `DOUBLE` になります。

## 出力データ
<a name="iotsitewise-opcua-collector-component-output-data"></a>



このコンポーネントは、 AWS IoT Greengrass ストリームマネージャーに`BatchPutAssetPropertyValue`メッセージを書き込みます。詳細は、「AWS IoT SiteWise API リファレンス」の「[BatchPutAssetPropertyValue](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html)」を参照してください。

## ローカルログファイル
<a name="iotsitewise-opcua-collector-component-log-file"></a>

このコンポーネントは次のログファイルを使用します。

------
#### [ Linux ]

```
/greengrass/v2/logs/aws.iot.SiteWiseEdgeCollectorOpcua.log
```

------
#### [ Windows ]

```
C:\greengrass\v2\logs\aws.iot.SiteWiseEdgeCollectorOpcua.log
```

------

**このコンポーネントのログを確認するには**
+ コアデバイスに次のコマンドを実行して、このコンポーネントのログファイルをリアルタイムに確認します。`/greengrass/v2` または *C:\$1greengrass\$1v2* を AWS IoT Greengrass ルートフォルダへのパスに置き換えます。

------
#### [ Linux ]

  ```
  sudo tail -f /greengrass/v2/logs/aws.iot.SiteWiseEdgeCollectorOpcua.log
  ```

------
#### [ Windows (PowerShell) ]

  ```
  Get-Content C:\greengrass\v2\logs\aws.iot.SiteWiseEdgeCollectorOpcua.log -Tail 10 -Wait
  ```

------

## ライセンス
<a name="iotsitewise-opcua-collector-component-licenses"></a>

<a name="component-core-software-license"></a>このコンポーネントは、[Greengrass Core ソフトウェアライセンス契約](https://greengrass-release-license.s3.us-west-2.amazonaws.com/greengrass-license-v1.pdf)に従ってリリースされています。

## 変更ログ
<a name="iotsitewise-opcua-collector-component-changelog"></a>

次の表は、コンポーネントの各バージョンにおける変更を示します。


|  **バージョン**  |  **変更**  | 
| --- | --- | 
| 3.1.0 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 3.0.3 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 3.0.2 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 3.0.1 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 3.0.0 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 2.6.0 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 2.5.1 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
| 2.5.0 | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
|  2.4.2  | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html) | 
|  2.4.1  | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html) | 
|  2.4.0  | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
|  2.3.0  | [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html) | 
|  2.2.0  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
|  2.1.3  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html) [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
|  2.1.1  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/greengrass/v2/developerguide/iotsitewise-opcua-collector-component.html)  | 
|  2.0.3  |  バグ修正と機能向上。  | 
|  2.0.2  |  エッジとのアセット優先度同期のバグ修正と機能向上。  | 
|  2.0.1  |  当初のバージョン  | 

## 関連情報
<a name="iotsitewise-opcua-collector-component-see-also"></a>
+ *AWS IoT SiteWise ユーザーガイド*の[「 AWS IoT SiteWiseとは](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/what-is-sitewise.html)」を参照してください。