Skip to content

Commit ed42624

Browse files
committed
[NEW]IoT- Windows IoT doc
1 parent 363c935 commit ed42624

File tree

2 files changed

+182
-0
lines changed

2 files changed

+182
-0
lines changed

content/applications/productivity/iot/config.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ Configuration
1313
config/https_certificate_iot
1414
config/flash_sdcard
1515
config/troubleshooting
16+
config/windows_iot
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
=======================================================
2+
Connecting the Windows IoT software to an Odoo database
3+
=======================================================
4+
5+
A Virtual IoT box is a computer program that needs to be downloaded and installed on a Windows
6+
computer. This requires a Windows operating system with an Odoo 16 or later database.
7+
8+
The Windows virtual :abbr:`IoT (Internet of Things)` box works the same way as a physical :abbr:`IoT
9+
(Internet of Things)` box, with the ability to run most of the same devices. All :abbr:`POS (Point
10+
of Sale)` devices work with it, such as a scale or printer. Payment terminals will also work, but it
11+
should be noted that :abbr:`MRP (Material Requirement Planning)` devices are not compatible. *These
12+
include cameras or measurement tools.*
13+
14+
Pre-requisites
15+
==============
16+
17+
The following items will be needed to complete the Windows :abbr:`IoT (Internet of Things)`
18+
installation.
19+
20+
- Odoo 16 database or any version above.
21+
- :abbr:`IoT (Internet of Things)` compatible devices (except those mentioned above). Refer to:
22+
`Odoo's compatible IoT devices <https://www.odoo.com/app/iot-hardware>`_.
23+
- Device drivers for Windows.
24+
25+
.. note::
26+
Odoo recommends using an updated, recent version of Windows as some older operating systems can
27+
cause the Windows virtual :abbr:`IoT (Internet of Things)` to not work.
28+
29+
- Windows computer (laptop, desktop, server).
30+
- Odoo :abbr:`IoT (Internet of Things)` subscription. Refer to: :ref:`iot/iot-eligibility`.
31+
32+
Connect the Windows virtual Iot box to an Odoo database
33+
=======================================================
34+
35+
The Windows virtual IoT box is simple to setup in just a few easy steps. Follow this process when
36+
installing the Windows virtual IoT software for the first time.
37+
38+
Download and initial installation
39+
---------------------------------
40+
41+
To begin the installation, navigate to the Odoo 16 or higher installation package for Enterprise or
42+
Community Windows at `Odoo's download page <https://odoo.com/download>`_. Next, install and setup
43+
the Odoo :file:`.exe` file. After the instructions screen, click :guilabel:`Next` to start the
44+
installation and agree to the :abbr:`TOS (Terms of Service)`.
45+
46+
During the next step of the installation, select :guilabel:`Odoo IoT` from the :guilabel:`Select the
47+
type of install` dropdown.
48+
49+
.. example::
50+
For reference, the following should be installed:
51+
52+
- **Odoo server**
53+
- **Odoo IoT**
54+
- **Nginx WebServer**
55+
- **Ghostscript interpreter**
56+
57+
Ensure there is enough space on the computer for the installation and click :guilabel:`Next`.
58+
59+
Setting the destination and completing the installation
60+
-------------------------------------------------------
61+
62+
To complete the installation, select the :guilabel:`Destination Folder`. Choosing ``C:\odoo`` as the
63+
install location will allow for the Nginx server to start. Click :guilabel:`Install`. If the folder
64+
doesn't exist, then create it. Otherwise the installation files will be spread throughout the hard
65+
drive. Allow the installation to occur. This may take a few minutes. Click :guilabel:`Next` to
66+
continue.
67+
68+
.. warning::
69+
Odoo's Windows virtual IoT software shouldn't be installed inside any of the Window's User's
70+
directories. Doing so won't allow for Nginx to initialize.
71+
72+
Ensure that the :guilabel:`Start Odoo` box is checked and click :guilabel:`Finish`. After
73+
installation, the Odoo server will run and automatically open `http://localhost:8069` on your web
74+
browser. The webpage should display the :abbr:`IoT (Internet of Things)` *box home page*.
75+
76+
.. seealso::
77+
A restart of the Windows IoT program may be necessary should the web browser not display
78+
anything. :ref:`iot/restart_windows_iot`
79+
80+
Connecting devices
81+
------------------
82+
83+
Next, connect the :abbr:`IoT (Internet of Things)` devices to the Windows computer. Windows should
84+
automatically detect the device because the driver is pre-installed on the computer. If not, search
85+
for and install the Windows driver for the device.
86+
87+
Following connecting devices to the computer, refresh the :abbr:`IoT (Internet of Things)` *box home
88+
page* and verify the device is seen. If not, reload the handlers through the :abbr:`IoT (Internet of
89+
Things)` *box home page*.
90+
91+
Finally, connect Windows :abbr:`IoT (Internet of Things)` to a database using existing instructions
92+
(manually using the Token).
93+
94+
.. seealso::
95+
:doc:`/applications/productivity/iot/config/connect`
96+
97+
Now the installation is complete, the devices connected to :abbr:`IoT (Internet of Things)` can be
98+
used to complete processes/actions.
99+
100+
Troubleshooting
101+
===============
102+
103+
.. _iot/restart_windows_iot:
104+
105+
Restart Windows IoT box
106+
-----------------------
107+
108+
In some instances a manual restart of the physical :abbr:`IoT (Internet of Things)` box can resolve
109+
the issue of an :abbr:`IoT (Internet of Things)` box not showing up on the database. For the Windows
110+
virtual :abbr:`IoT (Internet of Things)` box a manual restart of the Odoo server can resolve
111+
database connection issues.
112+
113+
To restart the virtual Windows IoT server:
114+
115+
#. Type `Services` into the :guilabel:`Search Bar`.
116+
#. Select the :menuselection:`Services` App and scroll down to the :guilabel:`Odoo` service.
117+
#. Right click on :guilabel:`Odoo` and select :guilabel:`Start` or :guilabel:`Restart`. This action
118+
will manually restart the Odoo IoT server.
119+
120+
Firewalls
121+
---------
122+
123+
Firewalls keep devices safe and secure. Sometimes they can block connections that should be made
124+
though. The Windows virtual :abbr:`IoT (Internet of Things)` box software may not be reachable to
125+
the :abbr:`LAN (Local Area Network)` due to a firewall preventing the connection. Consult your local
126+
IT support to make exceptions (network discovery) in the :abbr:`OS (Operating System)` or firewall
127+
program. Windows has their own firewall as do other virus protection programs.
128+
129+
.. example::
130+
A client might encounter a time when they are able to reach the homepage of the :abbr:`IoT
131+
(Internet of Things)` box, yet they cannot access it from another computer/mobile device/tablet
132+
on the same network.
133+
134+
Making an exception on Windows Defender
135+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
136+
137+
It's possible to allow other devices to access the Windows virtual :abbr:`IoT (Internet of Things)`
138+
box while keeping the firewall on. This is done by creating a rule on *Windows Defender* and
139+
allowing communication through port `8069`. The following process describes the steps to take in
140+
order to make this exception.
141+
142+
Navigating to Windows Defender to create the rule
143+
*************************************************
144+
145+
First, open the *Windows Firewall* by navigating to the :menuselection:`Start Menu` and typing in
146+
`Firewall`. Then, open the :menuselection:`Windows Defender Firewall` program. In the left-hand
147+
menu, navigate to :guilabel:`Advanced Settings`.
148+
149+
Once :guilabel:`Advanced Settings` have been selected, click :guilabel:`Inbound Rules` in the
150+
left-hand menu. Then, in the right-hand menu column (under :guilabel:`Inbound Rules`), click on
151+
:guilabel:`New Rule` to create a new rule.
152+
153+
Configure new rule
154+
******************
155+
156+
On the :menuselection:`Rule Type` screen, select :guilabel:`Port`. Then click :guilabel:`Next`. From
157+
the :menuselection:`Protocol and Ports` page leave the rule application to :guilabel:`TCP`. Then,
158+
select :guilabel:`Specific Local Ports` for the :guilabel:`ports` option. In the text box, type in
159+
`8069`. Finally click :guilabel:`Next` to continue to the next step.
160+
161+
On the :menuselection:`Actions` page, select :guilabel:`Allow the connection` and click
162+
:guilabel:`Next`. The following page on the :menuselection:`Rule Configuration` wizard is the
163+
:menuselection:`Profile` page. On this page, select whichever connection type applies to the network
164+
the Windows machine is operating on. Ideally, select :guilabel:`Private` only connections. The
165+
*Private* connection type is the most secure connection while allowing the selected port to
166+
communicate. Click :guilabel:`Next` to continue.
167+
168+
Finally, assign a new, unique name to the rule. For example, this name can be `Odoo`. Optionally,
169+
add a brief description in the :guilabel:`Description` field. Click :guilabel:`Finish` to complete
170+
the *rule configuration*. Now, the new rule is active and devices can connect to the Windows virtual
171+
:abbr:`IoT (Internet of Things)` box.
172+
173+
Uninstalling Windows IoT
174+
------------------------
175+
176+
Uninstalling the Windows virtual :abbr:`IoT (Internet of Things)` box is done through the Windows
177+
program manager. Using any Windows version, search for `program`. Then, select :guilabel:`Add or
178+
Remove Programs` located in the control panel. Search for `Odoo` and click the :guilabel:`three dot
179+
menu` to uninstall.
180+
181+
Confirm the un-installation and follow the steps to uninstall through the Odoo uninstall guide.

0 commit comments

Comments
 (0)