Windows仮想IoT¶
Windows仮想IoTの使用を開始するには:
Make sure the computer runs an updated version of Windows (Windows 10 or Windows 11), whether it's a laptop, desktop, or server.
Install the Windows virtual IoT on the Windows computer.
Windows仮想IoTに、デバイス を接続します。
注釈
MRP 用のデバイス(カメラや計測ツールなど)は、Windows 仮想 IoT には対応していません。
It is also possible to create a Windows Virtual Machine on a macOS/Linux computer. However, this option is not supported by Odoo, and no troubleshooting assistance will be provided.
重要
Never make the Windows virtual IoT accessible from the public Internet. IoT systems are designed to provide your database with access to devices on your local network. Exposing them to the public Internet would create a security risk.
インストール¶
Windowsパソコンに Window仮想IoTをインストールするには:
Access Odoo's download page, scroll down to the Virtual IOT section, and click Download.
ダウンロードした
.exeファイルを開き、アプリがデバイスに変更を加えることを許可し、言語を選択して、 OK をクリックしてください。次へ をクリックし、同意する をクリックして利用規約に同意し、続行してください。
パソコンに必要な空き容量があることを確認し、次へ をクリックしてください。
インストール先フォルダ にC:\odoo と入力し、インストール をクリックします。
警告
Do not install Odoo's Windows virtual IoT in any Windows user directory, as this can cause issues with HTTPS certificate generation.
GPL Ghostscriptを設定します。次へ をクリックし、利用規約に同意して、インストール、そして 完了 をクリックします。
Click Next and Finish to complete the setup. The IoT system's homepage automatically opens in a web browser with the URL
http://localhost:8069.Restart the Windows virtual IoT service.
以下を確認して、 IoTシステムのホームページ にウェブブラウザからアクセスできることを確認してください:
Windows仮想 IoTコンピューター上でアクセスできること
同じネットワーク上 の別のデバイスから、URL
http://xxx:8069(xxxはIoTシステムのIPアドレス) にアクセスできることon another device on the same network as the IoT system by navigating to the URL
https://xxx(wherexxxis the IoT system's IP address) to test for HTTPS connection.ちなみに
別のデバイスから IoTシステムのホームページ にアクセスできない場合は、ポート8069を通じた通信を許可するために、:ref:`Windowsファイアウォール <iot/windows-iot/firewall> ` のルールを作成してください。
デバイス接続¶
ほとんどの デバイス は、`Windowsプラグアンドプレイ (PnP) <https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-plug-and-play>_ ` を通じて、Windows仮想IoT用に使用されているWindowsコンピューターに自動的に接続されます。ただし、接続時にWindowsがデバイスを自動的に認識しない場合は、管理者が適切なドライバーを手動でインストールする必要があります。
ちなみに
デバイスをコンピューターに接続した後、IoTシステムのホームページ を更新して、デバイスが一覧に表示されていることを確認してください。デバイスが表示されない場合は、IoTシステムのホームページ から :ref:`ハンドラーを再読み込み <iot_updating_iot/handlers>`してください。
Windowsファイアーウォール設定¶
Firewalls help keep devices secure but can sometimes block legitimate connections. If the Windows virtual IoT isn't accessible on the LAN, for example, from another device, it could be due to a firewall blocking the connection. To prevent this issue, configure exceptions for network discovery in the OS or firewall settings.
注釈
Windows コンピューターにサードパーティ製のファイアウォールソフトウェアがインストールされている場合は、ファイアウォールの例外設定を行うために、そのソフトウェアのドキュメントを参照してください。
To create a rule on Windows Defender and allow communication through the required ports, follow these steps:
Windowsのスタートメニューで
ファイアウォールを検索し、Windows Defenderファイアウォール (セキュリティ機能付き)アプリを選択します。ウィンドウの左側で、受信の規則 を選択します。
ウィンドウの右側、 アクション の下にある 新規規則 をクリックします。
表示された 新しい受信の規則ウィザード ` で、規則の種類として :guilabel:`ポート を選択し、次へ をクリックします。
プロトコルおよびポート ページで、TCP と 指定されたローカル ポート が選択されていることを確認し、フィールドに次のように入力します:
8069, 80, 443、その後 次へ をクリックします。アクション ページで 接続を許可 を選択し、 次へ をクリックします。
プロファイル ページで、お使いのWindows コンピューターに該しない接続タイプのチェックを外し、次へ をクリックします。
名前 ページで、名前 (例:
Odoo) を入力し、必要に応じて簡単な 説明 を追加してから、完了 をクリックします。
Window仮想IoTホームページ¶
Windows仮想IoTのホームページにアクセスするには、Windows仮想IoTコンピューター上で URL`http://localhost:8069` にアクセスするか、IoTシステムと同じネットワーク上の別のコンピューターからウェブブラウザーを開き、http://xxx:8069 (ここで xxx はIoTシステムのIP アドレス) にアクセスします。
Once the Windows virtual IoT is connected to the Odoo database, its homepage can be accessed from Odoo by opening the IoT app, clicking the relevant IoT box's card, and clicking Homepage.
注釈
アクセスを許可するように、Windowsファイアウォールが設定されている ことを確認してください。
Windows仮想IoTの再起動方法¶
To manually restart the Windows IoT server, search the Windows start menu for services and
select the Services app. Scroll down to the odoo-server-xxx service, right-click it, and
select Start or Restart.
Windows仮想IoTのアンインストール方法¶
Windows仮想IoTをアンインストールするには、Windows コンピューター上で、Odooプログラムを アンインストール します。アンインストールを確認し Odooアンインストール ダイアログの手順を完了してください。