# Phoenix Regression Test ## English ### Overview ### Goals ### Scope ### Test Equipment / Hardware-in-the-loop - Modbus (data acquisition from DUT) - Oscilloscope - Electronic Load (Eload) - AC Source - Auto Jig (3-axis XYZ) ### Test Cases ### Architecture ### Setup / Requirements ### Config sources (Modbus register maps) Modbus register addresses are sourced from the following repos, included as **git submodules**: - `configs/config-fenghuang` → `git@git.xnergy.tech:Xnergy-Firmware/config-fenghuang.git` - `configs/config-garuda` → `git@git.xnergy.tech:Xnergy-Firmware/config-garuda.git` First-time clone: ``` git clone --recurse-submodules ``` If already cloned without `--recurse-submodules`: ``` git submodule update --init --recursive ``` This repo has `submodule.recurse=true` set locally, so a plain `git pull` will also update submodules to the commit already recorded in this repo. To pull in the **latest** config.json from each source repo (bump the pinned commit): ``` git submodule update --remote configs/config-fenghuang git submodule update --remote configs/config-garuda git add configs/config-fenghuang configs/config-garuda git commit -m "chore: bump config submodules" ``` ### Usage --- ## Tiếng Việt ### Tổng quan ### Mục tiêu ### Phạm vi ### Thiết bị đo / Thiết bị phần cứng liên quan - Modbus (thu thập dữ liệu từ DUT) - Oscilloscope (máy hiện sóng) - Eload (tải điện tử) - AC Source (nguồn AC) - Auto Jig 3 trục XYZ ### Các bài test ### Kiến trúc ### Cài đặt / Yêu cầu ### Nguồn config (bảng địa chỉ Modbus) Địa chỉ thanh ghi Modbus được lấy từ 2 repo sau, được đưa vào dưới dạng **git submodule**: - `configs/config-fenghuang` → `git@git.xnergy.tech:Xnergy-Firmware/config-fenghuang.git` - `configs/config-garuda` → `git@git.xnergy.tech:Xnergy-Firmware/config-garuda.git` Clone lần đầu: ``` git clone --recurse-submodules ``` Nếu đã clone mà quên `--recurse-submodules`: ``` git submodule update --init --recursive ``` Repo này đã bật `submodule.recurse=true` (cục bộ), nên chỉ cần `git pull` bình thường cũng sẽ tự cập nhật submodule về đúng commit đã được ghim trong repo. Để lấy bản **mới nhất** của config.json từ repo gốc (ghim lại commit mới): ``` git submodule update --remote configs/config-fenghuang git submodule update --remote configs/config-garuda git add configs/config-fenghuang configs/config-garuda git commit -m "chore: bump config submodules" ``` ### Hướng dẫn sử dụng