Connect Windows IoT Odoo¶
A Virtual IoT box is a computer program that needs to be downloaded and installed on a Windows computer. This requires a Windows operating system with an Odoo 16 or later database.
The Windows virtual IoT box works the same way as a physical IoT box, with the ability to run most of the same devices. All POS devices work with it, such as a scale or printer. Payment terminals will also work, but it should be noted that MRP devices are not compatible. These include cameras or measurement tools.
The following items will be needed to complete the Windows IoT installation.
Odoo 16 database or any version above.
IoT compatible devices (except those mentioned above). Refer to: Odoo’s compatible IoT devices.
Device drivers for Windows.
Odoo recommends using an updated, recent version of Windows (Windows 10/11) as some older operating systems can cause the Windows virtual IoT to not work.
Windows computer (laptop, desktop, or server).
Odoo IoT subscription. Refer to: Internet of Things (IoT) eligibility.
Connect the Windows virtual Iot box to an Odoo database¶
The Windows virtual IoT box is simple to setup in just a few easy steps. Follow this process when installing the Windows virtual IoT software for the first time.
Download and initial installation¶
To begin the installation, navigate to the Odoo 16 or higher installation package for Enterprise or
Community - Windows edition at Odoo’s download page. Next, install
and setup the Odoo
.exe file. After the instructions screen, click Next to start
the installation and agree to the TOS.
During the next step of the installation, select Odoo IoT from the Select the type of install dropdown.
For reference, the following should be installed:
Ensure there is enough space on the computer for the installation and click Next.
Setting the destination and completing the installation¶
To complete the installation, select the Destination Folder and click Install.
C:\odoo as the install location will allow for the Nginx server to start. If the
folder doesn’t exist, then create it. Otherwise the installation files will be spread throughout
the hard drive.
Odoo’s Windows virtual IoT software shouldn’t be installed inside any of the Window’s User’s directories. Doing so won’t allow for Nginx to initialize.
The installation may take a few minutes. When complete, click Next to continue.
Ensure that the Start Odoo box is checked and click Finish. After
installation, the Odoo server will run and automatically open
http://localhost:8069 on your web
browser. The webpage should display the IoT box homepage.
A restart of the Windows IoT program may be necessary should the web browser not display anything. Restart Windows IoT box
Next, connect the IoT devices to the Windows computer. Windows should automatically detect the device because the driver is pre-installed on the computer. If not, search for and install the Windows driver for the device.
Following connecting devices to the computer, refresh the IoT box homepage and verify the device is seen. If not, reload the handlers through the IoT box homepage.
Finally, connect Windows IoT to a database using existing instructions (manually using the Token).
Now the installation is complete, the devices connected to IoT can be used to complete processes/actions.
Restart Windows IoT box¶
In some instances a manual restart of the physical IoT box can resolve the issue of an IoT box not showing up on the database. For the Windows virtual IoT box a manual restart of the Odoo server can resolve database connection issues.
To restart the virtual Windows IoT server:
Servicesinto the Windows Search Bar.
Select the Odoo service.App and scroll down to the
Right click on Odoo and select Start or Restart. This action will manually restart the Odoo IoT server.
Firewalls keep devices safe and secure. Sometimes they can block connections that should be made though. The Windows virtual IoT box software may not be reachable to the LAN due to a firewall preventing the connection. Consult your local IT support team to make exceptions (network discovery) in the OS or firewall program. Windows has their own firewall as do other virus protection programs.
A client might encounter a time when they are able to reach the homepage of the IoT box, yet they cannot access it from another computer/mobile device/tablet on the same network.
Making an exception on Windows Defender¶
It’s possible to allow other devices to access the Windows virtual IoT
box while keeping the firewall on. This is done by creating a rule on Windows Defender and
allowing communication through port
8069. The following process describes the steps to take in
order to make this exception.
Create a rule in Windows Defender¶
First, open the Windows Firewall by navigating to the
Firewall. Then, open the program. In the left-hand
menu, navigate to Advanced Settings.
Once Advanced Settings have been selected, click Inbound Rules in the left-hand menu. Then, in the right-hand menu column (under Inbound Rules), click on New Rule to create a new rule.
Configure new rule¶
On the Port. Then click Next. From
the page leave the rule application to TCP. Then,
select Specific Local Ports for the ports option. In the text box, type in
8069. Finally click Next to continue to the next step.
On the Allow the connection and click Next. The following page on the wizard is the Profile page. On this page, select whichever connection type applies to the network the Windows machine is operating on. Ideally, select Private only connections. The Private connection type is the most secure connection while allowing the selected port to communicate. Click Next to continue.page, select
Finally, assign a new, unique name to the rule. For example, this name can be
add a brief description in the Description field. Click Finish to complete
the Rule Configuration wizard. Now, the new rule is active and devices can connect to
the Windows virtual IoT box.
Uninstalling Windows IoT¶
Uninstalling the Windows virtual IoT box is done through the Windows
program manager. Using any Windows version, search for
program. Then, select Add or
Remove Programs located in the control panel. Search for
Odoo and click the three dot
menu to uninstall.
Confirm the un-installation and follow the steps to uninstall through the Odoo uninstall guide.