IoT-systeemverbinding met Odoo¶
Vereisten¶
Om het IoT-systeem met een Odoo-database te verbinden, moet aan de volgende voorwaarden worden voldaan:
De Internet of Things (IoT)-app moet geïnstalleerd zijn.
Het IoT-systeem moet met het netwerk verbonden zijn.
The computer connecting to Odoo must be on the same network as the IoT system.
Notitie
Het wordt aanbevolen om het IoT-systeem met een productie-instantie te verbinden, omdat andere soorten omgevingen problemen kunnen veroorzaken (bv. met HTTPS-certificaatgeneratie).
Zie ook
Connectie¶
The IoT system can be connected to the Odoo database using a pairing code or a connection token.
Verbinden met een koppelcode¶
Notitie
The pairing code is displayed for up to 5 minutes after the IoT system starts. If the code is no longer visible, reboot the IoT box or restart the Windows virtual IoT service to display the pairing code again. Alternatively, connect the IoT system to the database using a connection token.
The pairing code is not displayed if the IoT system is already connected to a database (e.g., a test database).
Retrieve the IoT’s system pairing code:
Connect the IoT box to an external monitor or printer. If the IoT box was already plugged prior to this, reboot it by unplugging it for a few seconds and replugging it.
External monitor: The pairing code should be displayed on the screen a few minutes after rebooting the IoT box.
Printer: The pairing code should be printed automatically.
Tip
Als er geen externe monitor of printer op de IoT Box is aangesloten, ga je naar de startpagina van de IoT Box; de code wordt weergegeven in de sectie Koppelcode.
Open op de computer met de virtuele Windows IoT de startpagina van het IoT-systeem in een webbrowser door naar de URL
http://localhost:8069te navigeren. Scroll vervolgens naar de sectie Koppelcode.Open in Odoo de IoT-app en klik op Verbinden.
In the Connect an IoT Box popup that opens, enter the Pairing code.
Click Pair.
Verbinden met een verbindingstoken¶
Open in Odoo de IoT-app en klik op Verbinden.
In the Connect an IoT Box popup that opens, copy the Token.
Ga naar de startpagina van de IoT Box of de virtuele Windows IoT.
In the Odoo database connected section, click Configure.
Plak het token in het veld Servertoken en klik op Verbinden.
IoT-systeemformulier¶
Once the IoT system is connected to the Odoo database, it is displayed as a card in the IoT app. Click the IP address on the card to access the IoT box’s or Windows virtual IoT’s homepage. Click the card to access the list of devices connected to the IoT system.
Tip
Enable the developer mode to access the IoT system’s Technical Information, such as its Identifier, Domain address, and Image version.
Notitie
By default, drivers are automatically updated every time the IoT system is restarted. To disable automatic updates, uncheck the Automatic drivers update option.
Problemen oplossen¶
De koppelcode verschijnt niet of werkt niet¶
De koppelcode wordt mogelijk niet weergegeven of afgedrukt onder de volgende omstandigheden:
The IoT system is not connected to the Internet.
The IoT system is already connected to an Odoo database.
The pairing code display time has expired. Reboot the IoT box or restart the Windows virtual IoT service to display the pairing code again.
The IoT system’s image version is too old and needs to be updated.
The IoT system is connected but does not appear in the database¶
Het IoT-systeem kan een paar minuten nodig hebben om opnieuw op te starten wanneer het verbinding maakt met een database. Als het na een paar minuten nog steeds niet verschijnt:
Controleer of het IoT-systeem de database kan bereiken en de server geen multi-database-omgeving gebruikt.
Reboot the IoT box or restart the Windows virtual IoT service.
The IoT box is connected to the Odoo database but cannot be reached¶
Verify that the IoT system and the computer running the Odoo database are connected to the same network.
De homepage van de virtuele Windows-IoT is niet toegankelijk vanaf een ander apparaat¶
Controleer de Windows Firewall configureren.
The IoT system is disconnected from the database after an Odoo upgrade¶
Update the IoT system’s image by flashing the IoT box’s card or uninstalling the Windows virtual IoT program and reinstalling the latest package for Windows matching your database’s version.