Windows virtual IoT

เพื่อเริ่มใช้งาน Windows virtual IoT:

  1. Make sure all prerequisites are met.

  2. Install the Windows virtual IoT on a Windows computer.

  3. กำหนดค่า Windows Firewall

  4. เชื่อมต่อ:doc:`อุปกรณ์ <devices>`ของคุณกับ Windows virtual IoT

  5. เชื่อมต่อ Windows virtual IoT กับฐานข้อมูล Odoo ของคุณ

ข้อกำหนดเบื้องต้น

The following prerequisites must be met before setting up and using the Windows virtual IoT:

  • A valid IoT box subscription.

  • An updated and recent version of Windows (i.e., Windows 10 or Windows 11) installed on a Windows computer (laptop, desktop, or server).

Note

  • อุปกรณ์ MRP รวมถึงกล้องและเครื่องมือวัด ไม่สามารถใช้งานร่วมกับ Windows virtual IoT ได้

  • นอกจากนี้ยังสามารถสร้าง Windows Virtual Machine บนคอมพิวเตอร์ MacOS/Linux ได้ อย่างไรก็ตาม ตัวเลือกนี้ไม่ได้รับการสนับสนุนจาก Odoo และจะไม่มีการให้ความช่วยเหลือในการแก้ไขปัญหา

Important

ห้ามทำให้ Windows virtual IoT เข้าถึงได้จากอินเทอร์เน็ตสาธารณะ ระบบ IoT ได้รับการออกแบบมาเพื่อให้ฐานข้อมูลของคุณเข้าถึงอุปกรณ์ในเครือข่ายภายในของคุณได้ การเปิดเผยต่อ��นเทอร์เน็ตสาธารณะจะสร้าง**ความเสี่ยงด้านความปลอดภัย**

การติดตั้ง

เพื่อติดตั้ง Windows virtual IoT บนคอมพิวเตอร์ Windows:

  1. Access Odoo's download page and download the Community edition of Odoo for Windows matching your database's version.

  2. เปิดไฟล์ .exe ที่ดาวน์โหลดมา อนุญาตให้แอปทำการเปลี่ยนแปลงอุปกรณ์ของคุณ เลือกภาษา และคลิก OK

  3. คลิก Next จากนั้น I Agree เพื่อยอมรับข้อกำหนดและเงื่อนไขและดำเนินการต่อ

  4. Select Odoo IoT from the Select the type of install dropdown list. The following components should be selected: Odoo Server, Odoo IoT, Nginx WebServer, and Ghostscript interpreter.

  5. ตรวจสอบว่าคุณมีพื้นที่เพียงพอบนคอมพิวเตอร์ของคุณและคลิก Next

  6. ใน Destination folder ให้ใส่ C:\odoo และคลิก Install

    Warning

    Do not install Odoo's Windows virtual IoT in any Windows user directory, as this can cause issues with HTTPS certificate generation.

  7. Once the installation is complete, click Next.

  8. ตั้งค่า GPL Ghostscript: คลิก Next ยอมรับข้อกำหนดและเงื่อนไข คลิก Install จากนั้น Finish

  9. Click Next, Next, and Finish to complete the setup. The IoT system's homepage automatically opens in a web browser with the URL http://localhost:8069.

    Tip

    If the web browser does not show anything, restart the Windows virtual IoT service.

  10. ตรวจสอบว่าคุณสามารถเข้าถึง:ref:หน้าแรกของระบบ IoT <iot/windows-iot/homepage> ในเว็บเบราว์เซอร์:

    • บนคอมพิวเตอร์ Windows virtual IoT และ

    • บนอุปกรณ์อื่น ในเครือข่ายเดียวกันกับระบบ IoT โดยไปที่ URL http://xxx:8069 (โดยที่ xxx คือที่อยู่ IP ของระบบ IoT)

    • on another device on the same network as the IoT system by navigating to the URL https://xxx (where xxx is the IoT system's IP address) to test for HTTPS connection.

      Tip

      หากคุณไม่สามารถเข้าถึง:ref:หน้าแรกของระบบ IoT <iot/windows-iot/homepage> จากอุปกรณ์อื่นได้ ให้สร้างกฎ Windows Firewall เพื่ออนุญาตการสื่อสารผ่านพอร์ต 8069

การกำหนดค่า Windows Firewall

Firewalls help keep devices secure but can sometimes block legitimate connections. If the Windows virtual IoT isn't accessible on the LAN, for example from another device, it could be due to a firewall blocking the connection. To prevent this issue, configure exceptions for network discovery in the OS or firewall settings.

Note

หากมีซอฟต์แวร์ไฟร์วอลล์จากบุคคลที่สามติดตั้งอยู่บนคอมพิวเตอร์ Windows โปรดดูเอกสารประกอบของซอฟต์แวร์เพื่อกำหนดค่าข้อยกเว้นของไฟร์วอลล์

To create a rule on Windows Defender and allow communication through port 8069, follow these steps:

  1. ค้นหาเมนูเริ่มต้นของ Windows สำหรับ firewall และเลือกแอป Windows Defender Firewall with Advanced Security

  2. ในส่วนซ้ายของหน้าต่าง เลือก Inbound Rules

  3. ในส่วนขวาของหน้าต่าง ภายใต้ Actions คลิก New Rule

  4. ใน ตัวช่วยสร้างกฎขาเข้าใหม่ ที่เปิดขึ้น ให้เลือกกฎประเภท พอร์ต และคลิก ถัดไป

  5. ในหน้า โปรโตคอลและพอร์ต ตรวจสอบให้แน่ใจว่าเลือก TCP และ พอร์ตในเครื่องที่ระบุ แล้วป้อนข้อมูลต่อไปนี้ในช่อง: 8069, 80, 443 และคลิก ถัดไป

    Note

    Other ports may be necessary depending on your IoT devices. For example, for the Worldline payment terminal, add the 9050 port.

  6. ในหน้า การดำเนินการ ให้เลือก อนุญาตการเชื่อมต่อ และคลิก ถัดไป

  7. ในหน้า โปรไฟล์ ให้ปิดการใช้งานประเภทการเชื่อมต่อที่ไม่เกี่ยวข้องกับคอมพิวเตอร์ Windows ของคุณ และคลิก ถัดไป

  8. ในหน้า ชื่อ ให้ระบุ ชื่อ (เช่น Odoo) และหากต้องการก็ใส่ คำอธิบาย สั้นๆ จากนั้นคลิก เสร็จสิ้น

หน้าแรก Windows virtual IoT

หากต้องการเข้าถึงหน้าแรกของ Windows virtual IoT ให้ไปที่ URL http://localhost:8069 บนคอมพิวเตอร์ Windows virtual IoT หรือเปิดเว็บเบราว์เซอร์จากคอมพิวเตอร์เครื่องอื่น ในเครือข่ายเดียวกันกับระบบ IoT และไปที่ URL http://xxx:8069 (โดย xxx คือที่อยู่ IP ของระบบ IoT)

Once the Windows virtual IoT is connected to the Odoo database, its homepage can be accessed from Odoo by opening the IoT app and clicking the URL displayed on the IoT system's card.

หน้าแรกของ Windows virtual IoT

Note

ตรวจสอบให้แน่ใจว่า ได้กำหนดค่า Windows Firewall เพื่ออนุญาตการเข้าถึง

การเชื่อมต่ออุปกรณ์

อุปกรณ์ ส่วนใหญ่จะเชื่อมต่อกับคอมพิวเตอร์ Windows ที่ใช้สำหรับ Windows Virtual IoT โดยอัตโนมัติผ่าน Windows Plug and Play (PnP) อย่างไรก็ตาม หาก Windows ไม่รู้จักอุปกรณ์โดยอัตโนมัติเมื่อเชื่อมต่อ ผู้ดูแลระบบอาจต้องติดตั้งไดรเวอร์ที่เหมาะสมด้วยตนเอง

Tip

หลังจากเชื่อมต่ออุปกรณ์กับคอมพิวเตอร์แล้ว ให้รีเฟรช หน้าแรกของระบบ IoT เพื่อตรวจสอบว่ามีอุปกรณ์อยู่ในรายการหรือไม่ หากอุปกรณ์ไม่ปรากฏ ให้ โหลดตัวจัดการใหม่ จาก หน้าแรกของระบบ IoT

การรีสตาร์ต Windows virtual IoT

To manually restart the Windows IoT server, search the Windows start menu for services and select the Services app. Scroll down to the odoo-server-xxx service (where xxx is the odoo version), right-click it, and select Start or Restart.

การถอนการติดตั้ง Windows virtual IoT

หากต้องการถอนการติดตั้ง Windows virtual IoT ให้ ถอนการติดตั้ง โปรแกรม Odoo บนคอมพิวเตอร์ Windows ของคุณ ยืนยันการถอนการติดตั้งและทำตามขั้นตอนในกล่องโต้ตอบ ถอนการติดตั้ง Odoo