Windows 虚拟物联网¶
开始使用 Windows 虚拟物联网:
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 虚拟物联网。
注解
MRP(物料需求计划) 设备,包括摄像头和测量工具在内,都与 Windows 虚拟物联网不兼容。
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 计算机上安装 Windows 虚拟物联网:
Access Odoo’s download page, scroll down to the Virtual IOT section, and click Download.
打开下载的
.exe文件,让应用程序对设备进行更改,选择语言,然后点击 确认。点击 下一步,然后点击 我同意 接受条款和条件并继续。
确认计算机上有所需空间,然后点击 下一步。
在 目标文件夹 中输入 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.
检查是否可以在网络浏览器中访问 物联网系统主页 :
在 Windows 虚拟物联网计算机上,以及
通过导航到 URL
http://xxx:8069`(其中 `xxx是物联网系统的 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.
设备连接¶
大多数 设备 会通过 `Windows 即插即用 (PnP) <https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/introduction-to-plug-and-play>`_自动连接到用于 Windows 虚拟物联网的 Windows 计算机。但是,如果 Windows 无法在连接时自动识别设备,管理员可能需要手动安装相应的驱动程序。
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 防火墙 应用程序。
在窗口左侧选择 入站规则。
在窗口右侧的 操作 下,点击 新规则。
在打开的 新的入站规则向导 中,选择规则的 端口 类型,然后点击 下一步。
在 协议和端口 页面,确保选中 TCP 和 指定的本地端口,在字段中输入以下内容:
8069, 80, 443,然后点击 下一步。在 操作 页面,选择 允许连接 并点击 下一步。
在 简介 页面,禁用任何不适用于 Windows 计算机的连接类型,然后点击 下一步。
在 名称 页面,输入 名称 (例如,
Odoo)和可选的 说明 简介,然后点击 完成。
其他资料
Windows 虚拟物联网主页¶
要访问 Windows 虚拟物联网主页,请导航到 Windows 虚拟物联网计算机上的 URL http://localhost:8069,或从**与物联网系统在同一网络上**的另一台计算机打开网络浏览器,导航到 URL http://xxx:8069`(其中 `xxx 是物联网系统的 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 虚拟物联网¶
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 虚拟物联网¶
要卸载 Windows 虚拟物联网,请在 Windows 计算机上 卸载 Odoo 程序。在 Odoo 卸载 对话框中确认卸载,并完成步骤。