Updating (IoT)

Due to the complexity of the IoT box, and virtual Windows IoT box, the term ‘updating’ can mean several different things.

실제 드라이버를 업데이트하거나 IoT 박스의 핵심 코드를 업데이트할 수 있으며 새 이미지를 플래시할 수도 있습니다 (물리적인 IoT 박스 사용).

This document explores the various ways to update IoT boxes to ensure smooth operation of IoT box processes and devices.

IoT 박스에서 SD 카드 플래시하기

중요

이 업데이트 내용은 Windows IoT 박스 (Odoo 16 이상)에는 적용되지 않습니다.

Windows :abbr:`IoT (사물 인터넷)`를 업데이트하려면 먼저 이전 버전의 Odoo Windows 프로그램을 삭제한 후 최신 설치 패키지를 사용하여 다시 설치하세요.

설치를 시작하려면 ‘Odoo 다운로드 페이지 <https://odoo.com/download>`_ 에서 엔터프라이즈 또는 커뮤니티용 Windows Odoo 16 (또는 이상) 설치 패키지로 이동하세요.

경우에 따라서는 Odoo의 최신 IoT 이미지 업데이트를 활용하기 위해 IoT 박스에 있는 마이크로 SD 카드를 Etcher 소프트웨어로 다시 플래시해야 합니다. 즉 Odoo IoT 박스 소프트웨어를 새로운 IoT 박스의 인스턴스 또는 핸들러 업데이트를 할 때 업데이트하거나 또는 문제가 해결되지 않을 경우 IoT 박스 홈페이지에서 업데이트해야 할 수 있습니다.

참고

  • Odoo 데이터베이스를 새 버전으로 업그레이드한 후에는 IoT 박스 이미지를 다시 플래시해야 하는 경우가 종종 있습니다.

  • 마이크로 SD 카드를 다시 플래시하려면 마이크로 SD 카드 리더나 어댑터가 있는 컴퓨터가 반드시 있어야 합니다.

먼저 Etcher 를 다운로드하여 시작합니다. 이미지 파일을 드라이브로 복사하는 데 사용하는 무료 오픈 소스 유틸리티입니다. 다운로드가 완료되면 컴퓨터에 프로그램을 설치한 후 실행합니다.

Then, download the latest IoT image from nightly, which will be labeled as iotbox-latest.zip. This particular image is compatible with all supported versions of Odoo.

이 단계가 완료되면 IoT 박스에 있는 마이크로 SD 카드를 컴퓨터나 리더기에 삽입합니다. Etcher 를 열고 파일에서 구동 을 선택한 다음 iotbox-latest.zip 이미지를 찾아 선택한 후 압축을 풉니다. 그 다음, 이미지를 저장할 드라이브를 선택합니다.

Lastly, click Flash, and wait for the process to finish.

Balena's Etcher software dashboard.

Balena의 Etcher 소프트웨어를 사용하면 관리자가 URL 에서 SD 카드를 플래시할 수도 있습니다. URL 에서 플래시하려면 파일에서 플래시 대신 URL에서 플래시 를 클릭합니다.

Then, enter the following: http://nightly.odoo.com/master/iotbox/iotbox-latest.zip.

A view of Balena's Etcher software, with the flash from URL option highlighted.

참고

An alternative software for flashing the micro SD card is Raspberry Pi Imager.

Windows IoT update

Windows virtual IoT box may occasionally need an update to work properly.

The following processes cover the uninstallation and re-installation of the Windows virtual IoT box.

Windows IoT 삭제하기

Prior to upgrading the Windows virtual IoT box, the previous version should be uninstalled first.

중요

이전 버전의 Windows 가상 IoT 박스를 삭제하기 전에 현재 설치되어 있는 버전과 비교하여 최신 버전의 Windows 가상 IoT 박스를 사용할 수 있는지 확인합니다. 확인하려면 Odoo 야간 빌드 페이지로 이동합니다.

Odoo 야간 빌드 페이지에서 빌드 (안정화 버전) ‣ windows/ 로 이동하여 odoo_(version).latest.exe 파일 옆의 날짜를 확인합니다. ; 여기서 *(버전)*은 Odoo 버전 (예: 16.0, 17.0)과 같습니다. 최신 버전인 Windows 가상 IoT 박스를 사용하려면 이 파일을 선택하여 다운로드하거나 Odoo 다운로드 페이지에서 언제든 사용할 수 있습니다.

Uninstalling the Windows virtual IoT box is done through the Windows program manager.

어느 Windows 버전에서든 ‘프로그램’을 검색하여 제어판프로그램 ‣ 프로그램 및 기능 섹션을 엽니다. 그런 다음 프로그램 제거 또는 변경 을 선택합니다. 그 다음 Odoo 를 검색한 후 Odoo.exe 프로그램에서 … (점 3개) 메뉴를 클릭하여 제거합니다.

Confirm the uninstallation, and follow the steps to uninstall through the Odoo uninstall wizard.

Download and re-install

Windows 가상 IoT 박스 최신 버전은 Odoo 야간 빌드 페이지에서 다운로드하거나 언제든지 Odoo 다운로드 페이지에서 사용할 수 있습니다.

Odoo 야간 빌드 페이지에서 다운로드하려면 빌드 S (안정화 버전) ‣ windows/ 로 이동하여 odoo_(버전).latest.exe 파일을 선택합니다. 여기서 (버전) 은 Odoo 버전 (예: 16.0, 17.0)과 같이 표시됩니다.

To download from the Odoo Download page, find the section for the version of Odoo (e.g. 16.0, 17.0), and select the Download button for Windows.

Next, install and setup the downloaded Odoo .exe file. After the instructions screen, click Next to start the installation, and agree to the TOS.

During the next step of the re-installation, select Odoo IoT from the Select the type of install drop-down menu.

Example

For reference, the following should be installed:

  • Odoo server

  • Odoo IoT

  • Nginx WebServer

  • Ghostscript interpreter

Ensure there is enough space on the computer for the installation, then click Next.

Set the destination and complete the installation

To complete the re-installation, select the Destination Folder, and click Install.

경고

설치 위치로 C:\odoo 를 선택하면 Nginx 서버가 시작됩니다. Odoo의 Windows 가상 IoT 박스 소프트웨어는 Windows 사용자 디렉토리 내부에 설치하면 안됩니다. 그렇게 하면 Nginx 가 초기화되지 않습니다.

The installation may take a few minutes. When complete, click Next to continue.

그런 다음 Odoo 시작하기 확인란에 표시가 되어 있는지 확인한 후 종료 를 클릭합니다. 설치가 완료되면 Odoo 서버가 실행되고 웹 브라우저에서 http://localhost:8069 가 자동으로 열립니다. 웹페이지에 IoT 박스 홈페이지가 표시되어야 합니다.

A restart of the Windows IoT program may be necessary if the web browser does not display anything.

Update from the IoT box home page

백그라운드에서 IoT 박스는 Odoo 코드 버전을 사용하여 Odoo 데이터베이스를 실행하고 연결합니다. 이 코드를 업데이트해야 IoT 박스가 효과적으로 작동할 수 있습니다. IoT 시스템과 해당 프로세스를 최신 상태로 유지하려면 이 작업을 정기적으로 수행해야 합니다.

IoT 앱 ‣ IoT 박스`에서 :abbr:`IoT (사물인터넷) 박스 홈페이지로 이동하여 IoT 박스의 IP 주소 를 클릭합니다. 그런 다음, 업데이트 (버전 번호 옆)를 클릭합니다.

새 버전으로 IoT 박스 이미지를 사용할 수 있는 경우 _xx.xx_로 업그레이드 버튼이 페이지 하단에 나타납니다. 디바이스를 업그레이드하려면 이 버튼을 클릭합니다. 그러면 IoT 박스가 최신 버전으로 깜박입니다. 그러면 이전 환경 설정 내용이 모두 저장됩니다.

중요

이 과정은 30분 이상 소요될 수 있습니다. 상태가 불안정해질 수 있으므로 IoT 박스를 끄거나 플러그를 뽑으면 안됩니다. 즉, IoT 박스를 새 이미지로 재구동 해야 합니다.

IoT box software upgrade in the IoT Box Home Page.

Handler (driver) update

개별 디바이스 (예: 측량계, 측정 도구 등)에 대해 드라이버나 인터페이스를 업데이트해야 하는 경우가 생길 수 있습니다. IoT 핸들러 (드라이버 및 인터페이스) 코드는 설정된 서버 핸들러의 코드와 동기화하여 수정할 수 있습니다.

This can be helpful in instances where IoT devices (e.g. scales, measurement tools, etc.) are not working properly with the IoT box.

Windows IoT (Odoo 16 이상) 및 물리적인 IoT 박스 모두 이 프로세스를 IoT 박스 홈페이지에서.직접 수행할 수 있습니다. IoT 앱 ‣ IoT 박스 로 가서 IoT 박스 홈페이지로 이동한 후 IoT 박스에 있는 :guilabel:`IP 주소`를 클릭합니다.

Next, click Handlers list, and then select Load Handlers at the bottom of the page.

Handlers list on an IoT box with the load handlers button highlighted.

중요

Handler’s code is fetched from the configured server, and it needs to be up-to-date to have the latest fixes and patches.

참고

IoT 박스가 다시 시작될 때마다 핸들러 업데이트도 자동으로 수행됩니다. 이 프로세스가 유일하게 적용되지 않는 예외는 Odoo 서버의 IoT 박스의 양식 보기에서 자동 드라이버 업데이트 선택이 취소된 경우입니다. 이 설정은 IoT 앱 ‣ IoT 상자 선택 ‣ 자동 드라이버 업데이트 로 이동하여 확인할 수 있습니다.