Windows virtual IoT¶
เพื่อเริ่มใช้งาน Windows virtual IoT:
Make sure all prerequisites are met.
Install the Windows virtual IoT on a Windows computer.
เชื่อมต่อ:doc:`อุปกรณ์ <devices>`ของคุณกับ Windows virtual IoT
ข้อกำหนดเบื้องต้น¶
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:
Access Odoo's download page and download the Community edition of Odoo for Windows matching your database's version.
เปิดไฟล์
.exeที่ดาวน์โหลดมา อนุญาตให้แอปทำการเปลี่ยนแปลงอุปกรณ์ของคุณ เลือกภาษา และคลิก OKคลิก Next จากนั้น I Agree เพื่อยอมรับข้อกำหนดและเงื่อนไขและดำเนินการต่อ
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.
ตรวจสอบว่าคุณมีพื้นที่เพียงพอบนคอมพิวเตอร์ของคุณและคลิก Next
ใน 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.
Once the installation is complete, click Next.
ตั้งค่า GPL Ghostscript: คลิก Next ยอมรับข้อกำหนดและเงื่อนไข คลิก Install จากนั้น Finish
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.
ตรวจสอบว่าคุณสามารถเข้าถึง: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(wherexxxis 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:
ค้นหาเมนูเริ่มต้นของ Windows สำหรับ
firewallและเลือกแอป Windows Defender Firewall with Advanced Securityในส่วนซ้ายของหน้าต่าง เลือก Inbound Rules
ในส่วนขวาของหน้าต่าง ภายใต้ Actions คลิก New Rule
ใน ตัวช่วยสร้างกฎขาเข้าใหม่ ที่เปิดขึ้น ให้เลือกกฎประเภท พอร์ต และคลิก ถัดไป
ในหน้า โปรโตคอลและพอร์ต ตรวจสอบให้แน่ใจว่าเลือก TCP และ พอร์ตในเครื่องที่ระบุ แล้วป้อนข้อมูลต่อไปนี้ในช่อง:
8069, 80, 443และคลิก ถัดไปNote
Other ports may be necessary depending on your IoT devices. For example, for the Worldline payment terminal, add the
9050port.ในหน้า การดำเนินการ ให้เลือก อนุญาตการเชื่อมต่อ และคลิก ถัดไป
ในหน้า โปรไฟล์ ให้ปิดการใช้งานประเภทการเชื่อมต่อที่ไม่เกี่ยวข้องกับคอมพิวเตอร์ Windows ของคุณ และคลิก ถัดไป
ในหน้า ชื่อ ให้ระบุ ชื่อ (เช่น
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.
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