Connexion de systèmes IoT à Odoo¶
Conditions préalables¶
Pour connecter un système IoT à une base de données Odoo, les prérequis suivants doivent être remplis :
L’application Internet des objets (IoT) doit être installée
Le système IoT doit être connecté au réseau.
The computer connecting to Odoo must be on the same network as the IoT system.
Note
Il est recommandé de connecter le système IoT à une instance de production, car les autres types d’environnements peuvent entraîner des problèmes (par exemple avec la génération des certificats HTTPS).
Voir également
Connexion¶
The IoT system can be connected to the Odoo database using a pairing code or a connection token.
Connexion avec un code d’appairage¶
Note
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.
Astuce
Si aucun écran externe ou imprimante n’est connecté à la box IoT, accédez à la page d’accueil de la box IoT ; le code est affiché dans la section Code d’appairage.
Sur l’ordinateur avec l’IoT virtuel Windows installé, ouvrez la page d’accueil du système IoT dans un navigateur web en allant à l’URL
http://localhost:8069. Ensuite, faites défiler jusqu’à la section Code d’appairage.Dans Odoo, ouvrez l’application IoT et cliquez sur Connecter.
In the Connect an IoT Box popup that opens, enter the Pairing code.
Click Pair.
Connexion avec un jeton de connexion¶
Dans Odoo, ouvrez l’application IoT et cliquez sur Connecter.
In the Connect an IoT Box popup that opens, copy the Token.
Accédez à la page d’accueil de l’IoT box’s ou de l’IoT virtuelle Windows.
In the Odoo database connected section, click Configure.
Collez le jeton dans le champ Jeton du serveur et cliquez sur Connecter.
Formulaire du système 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.
Astuce
Enable the developer mode to access the IoT system’s Technical Information, such as its Identifier, Domain address, and Image version.
Note
By default, drivers are automatically updated every time the IoT system is restarted. To disable automatic updates, uncheck the Automatic drivers update option.
Aide au dépannage¶
Le code d’appairage ne s’affiche pas ou ne fonctionne pas¶
Le code d’appairage peut ne pas être affiché ou imprimé dans les circonstances suivantes :
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¶
Le système IoT peut prendre quelques minutes pour redémarrer lorsqu’il se connecte à une base de données. S’il n’apparaît toujours pas après quelques minutes :
Vérifier que le système IoT peut atteindre la base de données et que le serveur n’utilise pas un environnement multi-bases de données.
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.
La page d’accueil de l’IoT virtuel Windows n’est pas accessible depuis un autre appareil¶
Consulter Configuration du pare-feu 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.