Conexión del sistema IoT a Odoo

Prerrequisitos

Para conectar el sistema IoT a una base de datos de Odoo, se deben cumplir los siguientes requisitos previos:

  • La aplicación Internet de las cosas (IoT) debe estar instalada.

  • El sistema IoT debe estar conectado a la red.

  • The computer connecting to Odoo must be on the same network as the IoT system.

Nota

Se recomienda conectar el sistema IoT a una instancia de producción, ya que otros tipos de entornos pueden causar problemas (por ejemplo, con la generación de certificados HTTPS).

Conexión

The IoT system can be connected to the Odoo database using a pairing code or a connection token.

Conexión mediante un código de emparejamiento

Nota

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

    • Printer: The pairing code should be printed automatically.

    Truco

    Si no hay un monitor externo o impresora conectada a la caja IoT, accede a la página de inicio de la caja IoT; el código se muestra en la sección Código de emparejamiento.

  2. En Odoo, abre la aplicación IoT y haz clic en Conectar.

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

  4. Click Pair.

Conexión mediante un token de conexión

  1. En Odoo, abre la aplicación IoT y haz clic en Conectar.

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

  3. Acceda a la página de inicio del dispositivo IoT o de la IoT virtual de Windows.

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

  5. Pega el token en el campo Token del servidor y haz clic en Conectar.

Formulario del sistema IoT

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.

Truco

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

Nota

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

Solución de problemas

El código de emparejamiento no aparece o no funciona

El código de emparejamiento podría no mostrarse o imprimirse en las siguientes circunstancias:

  • 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

El sistema IoT puede tardar unos minutos en reiniciarse cuando se conecta a una base de datos. Si aún no aparece después de unos minutos:

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.

No se puede acceder a la página de inicio del IoT virtual de Windows desde otro dispositivo

Comprueba el Configuración del firewall de Windows.

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.