Connect Windows IoT Odoo

가상 IoT 박스는 일종의 컴퓨터 프로그램으로 Windows 컴퓨터에 다운로드하여 설치해야 합니다. 설치하려면 Windows 운영 체제에서 Odoo 16 데이터베이스 이상의 버전을 구동하고 있어야 합니다.

Windows 가상 IoT 박스는 물리적 IoT 박스와 같은 방식으로 작동하며 동일한 대부분의 디바이스를 실행할 수 있습니다. 측량계나 프린터와 같은 모든 POS 디바이스가 이 기능과 함께 작동합니다. 결제 단말기도 작동하지만 MRP 디바이스는 호환되지 않는다는 점에 주의합니다. 여기에는 카메라나 측정 도구가 포함됩니다.

Pre-requisites

The following items will be needed to complete the Windows IoT installation.

  • Odoo 16 database or any version above.

  • IoT compatible devices (except those mentioned above). Refer to: Odoo’s compatible IoT devices.

  • Device drivers for Windows.

    참고

    Odoo recommends using an updated, recent version of Windows (Windows 10/11) as some older operating systems can cause the Windows virtual IoT to not work.

  • Windows computer (laptop, desktop, or server).

  • Odoo IoT subscription. Refer to: Internet of Things (IoT) eligibility.

Connect the Windows virtual IoT box to an Odoo database

The Windows virtual IoT box is simple to setup in just a few easy steps. Follow this process when installing the Windows virtual IoT software for the first time.

Download and initial installation

설치를 시작하려면 Windows용 Odoo 16 이상 커뮤니티 설치 패키지를 받을 수 있는 ‘Odoo 다운로드 페이지 <https://odoo.com/download>`_ 로 이동합니다. 그 다음 Odoo .exe 파일을 설치한 후 설정합니다. 안내 화면이 나타나면 다음 을 클릭하여 설치를 시작하고 TOS 에 동의합니다.

During the next step of the 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 and click Next.

Setting the destination and completing the installation

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

설치 위치로 C:\odoo 를 선택하면 Nginx 서버가 시작됩니다. 폴더가 없을 경우에는 새로 생성합니다. 폴더가 없을 경우에는 하드 드라이브 전체에 설치 파일이 흩어지게 됩니다.

경고

Odoo’s Windows virtual IoT software should not be installed inside any of the Window’s User’s directories. Doing so will not allow for Nginx to initialize.

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

Odoo 시작하기 상자가 선택되어 있는지 확인하고 종료 를 클릭합니다. 설치가 완료되면 Odoo 서버가 실행되고 웹 브라우저에서 http://localhost:8069`가 자동으로 열립니다. 웹페이지에 :abbr:`IoT (사물 인터넷) 박스 홈페이지가 표시됩니다.

더 보기

A restart of the Windows IoT program may be necessary should the web browser not display anything. Restart Windows IoT box

Connecting devices

다음으로 IoT 장치를 Windows 컴퓨터에 연결합니다. 컴퓨터에 드라이버가 사전에 설치되어 있으므로 Windows에서 자동으로 장치를 인식합니다. 인식이 되지 않을 경우 해당 장치용 Windows 드라이버를 검색하여 설치합니다.

중요

대부분의 장치는 Windows PnP (플러그 앤 플레이)를 통해 자동으로 Windows IoT용 Windows 컴퓨터에 연결됩니다. 그러나 연결 후 Windows에서 장치를 자동으로 인식하지 못하는 경우 관리자가 수동으로 드라이버를 설치해야 할 수 있습니다.

Devices automatically recognized:

  • Regular ink/toner based printers

  • Receipt printers (Epson/Star)

  • 바코드 스캐너

  • Measurement devices (although some configuration of the measurement device settings is required) See this documentation: Connect a measurement tool

Devices not automatically recognized (requires manual driver download):

  • Label printers (Zebra)

  • 저울

해당 장비에 대해서는 제조업체의 웹사이트를 참조하세요. 그런 다음 드라이버를 다운로드하여 Windows 시스템에 설치하세요. 장치를 다시 연결하면 Windows에서 장치를 인식합니다.

장치를 컴퓨터에 연결한 후 IoT 박스 홈페이지를 새로고침하여 장치가 표시되는지 확인합니다. 장치가 표시되지 않는 경우에는 IoT 박스 홈페이지를 통해 핸들러를 다시 로드하세요.

Finally, connect Windows IoT to a database using existing instructions (manually using the Token).

Now the installation is complete, the devices connected to IoT can be used to complete processes/actions.

문제 해결

Restart Windows IoT box

경우에 따라서는 수동으로 실제 IoT 박스를 다시 시작하면 데이터베이스에 IoT 박스가 표시되지 않는 문제를 해결할 수 있습니다. Windows 가상 IoT 박스의 경우 Odoo 서버를 수동으로 다시 시작하면 데이터베이스 연결 문제를 해결할 수 있습니다.

To restart the virtual Windows IoT server:

  1. Type Services into the Windows Search Bar.

  2. Select the Services App and scroll down to the Odoo service.

  3. Right click on Odoo and select Start or Restart. This action will manually restart the Odoo IoT server.

방화벽

방화벽으로 디바이스를 안전하게 보호합니다. 때로는 연결되어야 하는 경우에도 방화벽 때문에 차단이 되는 경우가 있습니다. 방화벽으로 인해 연결이 차단되어 Windows 가상 IoT 박스 소프트웨어가 LAN 에 연결되지 않을 수 있습니다. OS 또는 방화벽 프로그램에서 예외 (네트워크 검색)를 적용하려면 현지 IT 지원 팀에 문의하세요. Windows에는 다른 바이러스 보안 프로그램과 마찬가지로 자체 방화벽이 있습니다.

Example

클라이언트는 IoT 박스의 홈페이지에 접속할 수 있으나 동일한 네트워크에 있는 다른 컴퓨터/모바일 장치/태블릿에서는 접속이 되지 않는 경우가 발생할 수 있습니다.

Making an exception on Windows Defender

방화벽을 켜둔 상태에서 다른 장치가 Windows 가상 IoT 박스에 액세스하도록 허용할 수 있습니다. Windows Defender 에서 규칙을 생성한 후 포트 ‘8069’를 통한 통신을 허용하면 됩니다. 다음 프로세스에서는 이와 같은 예외 사항을 적용시키기 위해 수행해야 하는 단계를 설명합니다.

Create a rule in Windows Defender

먼저 시작 메뉴 로 이동한 후 방화벽 을 입력하여 Windows 방화벽 을 엽니다. 그런 다음 Windows Defender 방화벽 프로그램을 엽니다. 왼쪽에 있는 메뉴에서 고급 설정 으로 이동합니다.

고급 설정 을 선택한 후 왼쪽 메뉴에서 인바운드 규칙 을 클릭합니다. 그런 다음 오른쪽 메뉴 열 (인바운드 규칙 아래)에 있는 새 규칙 을 클릭하여 새 규칙을 만듭니다.

Configure new rule

규칙 유형 화면에서 포트 를 선택합니다. 그런 다음 다음 을 클릭합니다. 프로토콜 및 포트 페이지에서 규칙 적용을 TCP 로 둡니다. 그런 다음 포트 항목에 대해 특정 로컬 포트 를 선택합니다. 텍스트 상자에 ‘8069, 443’을 입력합니다. 마지막으로 다음 을 클릭하여 다음 단계로 진행합니다.

작업 페이지에서 연결 허용 을 선택한 후 다음 을 클릭합니다. 규칙 환경 설정 마법사 다음은 프로필 페이지가 있습니다. 이 페이지에서는 Windows 컴퓨터에서 작동 중인 네트워크에 적용되는 연결 유형을 선택합니다. 가장 좋은 방법은 비공개 전용 연결을 선택하는 것입니다. 비공개 연결 방식으로 선택한 포트의 통신을 허용하면서 가장 안전하게 연결할 수 있습니다. 계속하려면 다음 을 클릭합니다.

마지막으로 규칙에 고유한 이름을 새로 지정합니다. 예를 들어 이름을은 ‘Odoo’로 할 수도 있습니다. 선택 사항으로, 설명 필드에 간단한 설명을 추가합니다. 완료`를 클릭하면 :guilabel:`규칙 설정 마법사가 완료됩니다. 이제 새로운 규칙이 활성화되었으며 장치를 Windows 가상 IoT 박스에 연결할 수 있습니다.

Worldline exception

Worldline 은 Odoo POS (point of sale) 시스템에 연결할 수 있는 결제 단말기입니다. 이를 통해 고객에게 포괄적이고 유연한 결제 경험을 제공합니다. Worldline을 이용할 수 있는 국가는 벨기에, 네덜란드, 룩셈부르크입니다.

Windows IoT 서버를 사용하여 Worldline 결제 단말기에 연결할 때, Windows 방화벽에서 예외를 생성하여 Odoo 데이터베이스/ IoT 박스와 Worldline 간에 연결이 이루어질 수 있도록 합니다.

더 보기

Worldline

To create the exception, first, open the Windows Defender Firewall app on the Windows machine. This can be accomplished by typing windows defender in the Search bar.

Next, click Advanced settings in the left menu.

Advanced settings option highlighted in the left pane of the Windows Defender Firewall app.

In the left menu, choose Inbound Rules.

Windows Defender left window pane with inbound rules menu item highlighted.

After selecting Inbound Rules, select New Rule in the far right menu.

New rule dropdown shown with new rule option highlighted.

Then, for the Rule Type, select the radio button for Port. Click Next to continue to the rest of the configuration.

Rule Type window open, with the radio button next to port highlighted.

On the Protocols and Ports page, choose the radio button for TCP, under Does this rule apply to TCP or UDP?.

Next, under Does this rule apply to all local ports or specific ports?, select the radio button for Specific local ports. Then, enter 9050, and click Next to continue.

Protocol/port configuration window with TCP, specific port (9050) and Next highlighted.

다음 화면은 활동 페이지입니다. 연결 시 지정된 조건과 일치하면 어떤 활동을 실행할까요? 에서 연결 허용 버튼을 선택합니다. 그런 다음 다음 을 클릭하여 계속 진행합니다.

A Profile page appears. Under When does this rule apply?, leave the three boxes checked for: Domain, Private, and Public. Click Next to continue to the naming convention page.

On the Name page, enter Odoo Worldline, under the Name field. Enter a Description (optional). Finally, once ready, click Finish.

The final Inbound rule should appear as follows:

Odoo Worldline

프로필

전체

활성화

추가 작업

허용

Override

아니오

프로그램

또는

Local Address

또는

Remote Address

또는

Protocol

TCP

Local Port

9050

Remote Port

또는

인증된 사용자

또는

Authorized Computers

또는

Authorized Local Principals

또는

Local User Owner

또는

PolicyAppld

없음

Application Package

또는

Windows IoT 삭제하기

Windows 가상 IoT 박스를 제거하려면 Windows 프로그램 관리자를 통해 진행합니다. 전체 Windows 버전에서 ‘프로그램’을 검색하세요. 그런 다음 제어판에 있는 :guilabel:`프로그램 추가/제거`를 선택합니다. `Odoo`를 검색한 후 :guilabel:`점 3개 메뉴`를 클릭하여 제거하세요.

Confirm the un-installation and follow the steps to uninstall through the Odoo uninstall guide.