Verbindung des IoT-Systems mit Odoo

Voraussetzungen

Um das IoT-System mit einer Odoo-Datenbank zu verbinden, müssen folgende Voraussetzungen erfüllt sein:

  • Die IoT-App muss installiert sein.

  • Das IoT-System muss mit dem Netzwerk verbunden sein.

  • Der Computer, der mit Odoo verbunden ist, muss sich im selben Netzwerk wie das IoT-System befinden.

Bemerkung

Es wird empfohlen, das IoT-System mit einer Produktionsinstanz zu verbinden, da andere Umgebungstypen Probleme verursachen können (z. B. bei der HTTPS-Zertifikatsgenerierung).

Verbindung

Das IoT-System kann über einen Kopplungscode oder ein Verbindungstoken mit der Odoo-Datenbank verbunden werden.

Verknüpfung über Kopplungscode

Bemerkung

  • 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).

  1. 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.

    • Drucker: Der Kopplungscode sollte automatisch gedruckt werden.

    Tipp

    If no external monitor or printer is connected to the IoT box, access the IoT box’s homepage; the code is displayed in the Pairing Code section.

  2. In Odoo, open the IoT app and click Connect.

  3. In the Connect an IoT Box popup that opens, enter the Pairing code.

  4. Click Pair.

Connection using a connection token

  1. In Odoo, open the IoT app and click Connect.

  2. In the Connect an IoT Box popup that opens, copy the Token.

  3. Access the IoT box’s or Windows virtual IoT’s homepage.

  4. In the Odoo database connected section, click Configure.

  5. Paste the token into the Server Token field and click Connect.

Formular des IoT-Systems

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.

Tipp

Enable the developer mode to access the IoT system’s Technical Information, such as its Identifier, Domain address, and Image version.

Bemerkung

By default, drivers are automatically updated every time the IoT system is restarted. To disable automatic updates, uncheck the Automatic drivers update option.

Fehlerbehebung

Der Kopplungscode wird nicht angezeigt oder funktioniert nicht.

Der Kopplungscode wird unter folgenden Umständen möglicherweise nicht angezeigt oder gedruckt:

  • Das IoT-System ist nicht mit dem Internet verbunden.

  • Das IoT-System ist bereits mit einer Odoo-Datenbank verbunden.

  • Die Anzeigezeit für den Kopplungscode ist abgelaufen. Starten Sie die IoT-Box neu oder starten Sie den virtuellen Windows-IoT-Dienst neu, um den Kopplunscode erneut anzuzeigen.

  • Die Image-Version des IoT-Systems ist veraltet und muss aktualisiert werden.

Das IoT-System ist verbunden, wird aber nicht in der Datenbank angezeigt

Es kann einige Minuten dauern, bis das IoT-System neu gestartet ist, wenn es eine Verbindung zu einer Datenbank herstellt. Sollte es nach einigen Minuten immer noch nicht angezeigt werden, gehen Sie bitte wie folgt vor:

Die IoT-Box ist mit der Odoo-Datenbank verbunden, kann aber nicht erreicht werden

Bitte stellen Sie sicher, dass das IoT-System und der Computer, auf dem die Odoo-Datenbank ausgeführt wird, mit demselben Netzwerk verbunden sind.

Die Startseite des virtuellen IoT für Windows kann nicht von einem anderen Gerät aus aufgerufen werden.

Prüfen Sie die Konfiguration der Windows-Firewall.

Das IoT-System wird nach einem Odoo-Upgrade von der Datenbank getrennt.

Aktualisieren Sie das Image des IoT-Systems, indem Sie die Karte der IoT-Box flashen oder das virtuelle Windows-IoT-Programm deinstallieren und das neueste Paket für Windows, das mit der Version Ihrer Datenbank übereinstimmt, neu installieren.