IoTシステムのOdooへの接続

前提条件

IoT システムを Odoo データベースに接続するには、以下の前提条件を満たしている必要があります:

  • モノのインターネット(IoT)アプリが インストールされている 必要があります。

  • IoTシステムがネットワークに接続されている必要があります。

  • The device connecting to Odoo must be on the same network as the IoT system.

注釈

IoTシステムは 本番環境 のインスタンスに接続することが推奨されます。その他のタイプの環境では、問題が発生する可能性があります(例:HTTPS 証明書の生成 に関する問題など)。

接続

To connect the IoT system to an Odoo database, open the IoT app and click Connect.

The browser then scans the network to which the computer is connected for available IoT systems. If an IoT system is detected, it is connected automatically. If multiple IoT systems are found, select the appropriate one in the popup that opens, then click Connect. If no IoT system is detected automatically, try connecting it to the database using a pairing code or a connection token.

ちなみに

The IoT system’s name is composed of either the IoT box or the Windows computer’s motherboard serial number, followed by its pairing code.

ペアリングコードを使用して接続する

注釈

  1. Retrieve the IoT system's pairing code:

    Connect the IoT box to an external monitor or a USB printer. If the IoT box was already plugged prior to this, restart it.

    • External monitor: The pairing code will be displayed on the screen after (re)starting the IoT box.

    • USB-connected printer: The pairing code should be printed automatically.

    ちなみに

    IoT Boxに外部モニターやプリンタが接続されていない場合は、IoT Box のホームページ にアクセスしてください。コードは ペアリングコード セクションに表示されます。

  2. OdooでIoT アプリを開き、接続 をクリックします。

  3. In the Searching for an IoT Box popup that opens, click Use Pairing Code.

  4. Enter the Pairing code and click Connect.

接続トークンを使用した接続

  1. Enable the developer mode.

  2. OdooでIoT アプリを開き、接続 をクリックします。

  3. In the Searching for an IoT Box popup that opens, click Offline pairing.

  4. In the Pair an IoT Box offline popup that opens, copy the Token.

  5. IoT box または Windows仮想IoT ホームページにアクセスしてください。

  6. In the Odoo database connected section, click Configure.

  7. コピーしたトークンを :guilabel:` サーバートークン` フィールドに貼り付け、:guilabel:` 接続` ボタンをクリックしてください。

注釈

Once the IoT system is connected to a database:

IoTシステムフォーム

Once the IoT system is connected to the Odoo database, it is displayed as a card in the IoT app. Click the card to access the IoT system's form, which allows to access the IoT box's or Windows virtual IoT's homepage and view the list of devices connected to the IoT system.

ちなみに

Enable the developer mode to access the IoT system's Technical Information, such as its Domain Address, Image Version, and SSL Certificate End Date. By default, drivers are automatically updated every time the IoT system is restarted. To disable automatic updates, uncheck the Automatic drivers update option.

Disconnecting an IoT system from a database

To disconnect the IoT system from a database, follow these steps:

  1. Open the IoT app and click the relevant IoT system's card.

  2. Click the (Actions) icon, and select Delete.

ちなみに

Alternatively:

  1. IoT box または Windows仮想IoT ホームページにアクセスしてください。

  2. Click Configure in the Odoo database connected section.

  3. Click Disconnect in the popup that opens.

HTTPS certificate

HTTPS is the secure, encrypted version of HTTP. It uses TLS (previously SSL) certificates to authenticate the server and protect the data exchanged between a browser and a website. Some network devices, such as payment terminals, require a valid HTTPS certificate to communicate with the IoT system; without it, they cannot interact properly.

注釈

このドキュメントおよび Odoo全体において、**HTTPS 証明書**という用語は、HTTPS 接続を可能にする有効な SSL証明書を指します。

When the IoT system is (re-)started and connected to a database, it automatically downloads the HTTPS certificate if the database meets the following eligibility criteria:

  • データベースは 本番 インスタンスである必要があります。データベースインスタンスは、コピー、複製、ステージング、開発環境であってはなりません。

  • The Odoo subscription must be ongoing (In Progress status).

証明書を受信した後:

  • The IoT system's homepage address is updated to a new HTTPS URL ending with .odoo-iot.com.

  • The HTTPS certificate banner displays the certificate's validity period. To view this information, click the (cogs) button at the top-right of the IoT system's homepage.

    HTTPS 証明書の有効期限が記載された IoT Box ホームページ。