Koneksi sistem IoT ke Odoo¶
Prasyarat-Prasyarat¶
Untuk menghubungkan sistem IoT ke database Odoo, prasyarat berikut harus dipenuhi:
Aplikasi Internet of Things (IoT) harus diinstal.
Sistem IoT harus terhubung ke jaringan.
The computer connecting to Odoo must be on the same network as the IoT system.
Catatan
Disarankan untuk menghubungkan sistem IoT ke instance produksi, karena jenis lingkungan lain dapat menyebabkan masalah (misalnya, dengan pembuatan sertifikat HTTPS).
Lihat juga
Connection¶
The IoT system can be connected to the Odoo database using a pairing code or a connection token.
Koneksi menggunakan kode pemasangan¶
Catatan
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
Jika tidak ada monitor eksternal atau printer yang terhubung ke IoT box, akses beranda IoT box; kode ditampilkan di bagian Kode Pemasangan.
Pada komputer dengan Windows virtual IoT terinstal, buka beranda sistem IoT di browser web dengan mengakses URL
http://localhost:8069. Kemudian, gulir ke bagian Kode Pemasangan.Di Odoo, buka aplikasi IoT dan klik Hubungkan.
In the Connect an IoT Box popup that opens, enter the Pairing code.
Click Pair.
Koneksi menggunakan token koneksi¶
Di Odoo, buka aplikasi IoT dan klik Hubungkan.
In the Connect an IoT Box popup that opens, copy the Token.
Akses beranda IoT box atau Windows virtual IoT.
In the Odoo database connected section, click Configure.
Tempelkan token ke dalam kolom Token Server dan klik Hubungkan.
Formulir sistem 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.
Tip
Enable the developer mode to access the IoT system's Technical Information, such as its Identifier, Domain address, and Image version.
Catatan
By default, drivers are automatically updated every time the IoT system is restarted. To disable automatic updates, uncheck the Automatic drivers update option.
Troubleshooting¶
Kode pemasangan tidak muncul atau tidak berfungsi¶
Kode pemasangan mungkin tidak ditampilkan atau dicetak dalam keadaan berikut:
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¶
Sistem IoT mungkin memerlukan beberapa menit untuk memulai ulang saat terhubung ke database. Jika masih tidak muncul setelah beberapa menit:
Verifikasi bahwa sistem IoT dapat menjangkau database dan server tidak menggunakan lingkungan multi-database.
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.
Beranda Windows virtual IoT tidak dapat diakses dari perangkat lain¶
Periksa Konfigurasi Windows Firewall.
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.