C
docs: add illustrated SimHub setup guide
YU CHIH CHANG07de01a28a05
diff --git a/SIMHUB_README.md b/SIMHUB_README.mdindex be88836..c23070c 100644--- a/SIMHUB_README.md+++ b/SIMHUB_README.md@@ -12,17 +12,36 @@ The dashboard supports **Direct GT7** over Wi-Fi and **SimHub USB** for PC games1. Open SimHub and go to **Arduino**.2. Open the **Multiple Arduino** or **Multiple USB** devices page. The label varies slightly between SimHub versions; use this page even when only one dashboard is connected.++<img src="photos/simhub/00.png" alt="Open Arduino and select Multiple Arduino in SimHub" width="900">++*Open Arduino, then select Multiple Arduino so SimHub can scan the dashboard.*+3. Enable Arduino support so SimHub scans the USB devices.4. Find the dashboard's COM port, then add or enable that device. Its firmware identification is `GT7 SimHub Dash`.5. Wait for SimHub to show the device as connected. Detecting the COM port only confirms the USB connection; telemetry requires the Custom Protocol in the next section.+<img src="photos/simhub/01.png" alt="GT7 SimHub Dash identified and connected in SimHub" width="900">++*Confirm that SimHub identifies `GT7 SimHub Dash`, enables the correct COM port, and shows the device as connected.*+The initial connection uses 19200 baud and SimHub negotiates the later rate automatically. No virtual COM port, TCP bridge, or extra plugin is required.## 3. Add the Custom Protocol1. Open **Custom Protocol** or its formula editor for the Arduino device you just added.2. Enable **Use JavaScript**.++<img src="photos/simhub/02.png" alt="Select Use JavaScript for the SimHub Custom Protocol" width="900">++*Choose **Use JavaScript** when SimHub asks how to bind the protocol message.*+3. Open [simhub/custom-protocol.txt](simhub/custom-protocol.txt), copy its **entire contents**, and paste them into the formula field.++<img src="photos/simhub/03.png" alt="Copy the repository Custom Protocol and paste it into the SimHub JavaScript formula field" width="900">++*Open the repository protocol file, copy all of it, paste it into the JavaScript field, then select **OK**.*+4. Select Apply or Save and verify that the protocol is enabled for the correct COM device.5. Do not append `\n`; SimHub adds the line ending automatically.diff --git a/SIMHUB_README.zh-TW.md b/SIMHUB_README.zh-TW.mdindex de64dd8..276b7b1 100644--- a/SIMHUB_README.zh-TW.md+++ b/SIMHUB_README.zh-TW.md@@ -12,17 +12,36 @@1. 開啟 SimHub,進入 **Arduino** 頁面。2. 打開 **Multiple Arduino**/**Multiple USB** 裝置頁面。不同 SimHub 版本的名稱可能略有差異;即使只有一台儀表,也使用多裝置頁面。++<img src="photos/simhub/00.png" alt="在 SimHub 開啟 Arduino 並選擇多個 Arduino" width="900">++*進入 Arduino 頁面並選擇多個 Arduino,讓 SimHub 開始掃描儀表。*+3. 啟用 Arduino 功能,讓 SimHub 掃描 USB 裝置。4. 找到儀表所在的 COM 埠,並加入或啟用該裝置。韌體識別名稱為 `GT7 SimHub Dash`。5. 等待 SimHub 顯示裝置已連線。看到 COM 埠只代表 USB 已偵測到;還要完成下一段 Custom Protocol 設定才會有遙測資料。+<img src="photos/simhub/01.png" alt="SimHub 已識別並連線 GT7 SimHub Dash" width="900">++*確認 SimHub 已識別 `GT7 SimHub Dash`、啟用正確的 COM 埠,並顯示裝置已連線。*+初始連線速度為 19200 baud,之後由 SimHub 自動協商,不需要手動建立虛擬 COM、TCP 連線或安裝額外外掛。## 3. 加入 Custom Protocol1. 在剛加入的 Arduino 裝置中,找到 **Custom Protocol** 設定或公式編輯器。2. 啟用 **Use JavaScript**。++<img src="photos/simhub/02.png" alt="在 SimHub Custom Protocol 選擇使用 JavaScript" width="900">++*SimHub 詢問 Protocol message 綁定方式時,選擇 **Use JavaScript**。*+3. 開啟 [simhub/custom-protocol.txt](simhub/custom-protocol.txt),複製檔案的**全部內容**並貼入公式欄位。++<img src="photos/simhub/03.png" alt="從 Repo 複製 Custom Protocol 並貼入 SimHub JavaScript 公式欄位" width="900">++*開啟 Repo 中的 protocol 檔案、複製全部內容、貼入 JavaScript 欄位,最後按下 **OK**。*+4. 按下 Apply/Save,並確認 Custom Protocol 已啟用在正確的 COM 裝置上。公式編輯器的 **Raw result** 應以 `DSH1;` 開頭,而且第二欄序號會持續增加,例如 `DSH1;391;...`。這表示公式正在執行,但仍需確認資料送往正確的 Arduino 裝置與 COM 埠。diff --git a/photos/simhub/00.png b/photos/simhub/00.pngnew file mode 100644index 0000000..168af77Binary files /dev/null and b/photos/simhub/00.png differdiff --git a/photos/simhub/01.png b/photos/simhub/01.pngnew file mode 100644index 0000000..2075394Binary files /dev/null and b/photos/simhub/01.png differdiff --git a/photos/simhub/02.png b/photos/simhub/02.pngnew file mode 100644index 0000000..8116980Binary files /dev/null and b/photos/simhub/02.png differdiff --git a/photos/simhub/03.png b/photos/simhub/03.pngnew file mode 100644index 0000000..4bc0da0Binary files /dev/null and b/photos/simhub/03.png differ