DS5Dongle BL618 - LCTech BL616 开源固件 v3.22
===========================================

本包包含本开源仓库独立全量构建的 FS、HS 固件，不含 OTA 升级或设备 Token 注册功能。

## v3.22 — 2026-09-19

### 中文

- **新增**：新增 **Xbox 360 模式**：可在配置页切换为 Xbox 手柄模式，兼容所有 XInput 游戏（Windows / Linux / Steam）
- **新增**：Xbox 模式下支持**扬声器、耳机、麦克风**音频功能
- **新增**：Xbox 模式下支持两种震动方案：标准震动和 **HD 触觉震动**（将震动信号转为 DualSense LRA 正弦波驱动），可在配置页切换
- **新增**：Xbox 模式下 Xbox 360 LED 指示灯自动映射为 DualSense 玩家指示灯
- **新增**：新增 **Create + Options 长按 3 秒**快速切换 Xbox 与进入前选择的 DS5、DSE 或自动模式（带震动和灯光反馈，切换后自动重启）
- **新增**：组合按键检测窗口时间可在配置页自定义调整
- **变更**：已配对手柄时不再主动扫描，仅等待手柄发起重连，大幅减少重连时因扫描冲突导致的连接失败
- **修复**：修复蓝牙 Scan 状态缓存不一致导致连接后数据传输速率下降的问题
- **新增**：调整默认配置：750Hz 回报率、音频缓冲长度 56、触觉增益 1、耳机音量偏移 75、扬声器增益 2；默认启用闲置省电、1 分钟熄灯、PS 唤醒主机、扩展键盘和 Xbox HD 震动；USB 隐身模式默认关闭
- **变更**：优化 Xbox 与自动模式切换：会保留用户原先选择的控制器协议，从 Xbox 模式返回后可正确恢复指定 DS5、指定 DSE 或自动检测
- **变更**：配置页的控制器协议状态更清晰，可区分自动检测结果、用户指定协议，以及 Xbox 模式返回时将恢复的协议
- **修复**：优化固件更新、恢复默认设置及切换输出模式后的完整复位与蓝牙重连流程，降低偶发重启后手柄无法重新连接的概率
- **变更**：统一配置网页的中英文字体与字号层级，改善 Windows 下按钮、状态标签、侧栏和更新日志等区域的可读性

---

### English

- **New**: New **Xbox 360 mode**: switch to Xbox controller mode in settings, compatible with all XInput games (Windows / Linux / Steam)
- **New**: Speaker, headphone, and microphone audio support in Xbox mode
- **New**: Two vibration modes in Xbox mode: standard rumble and **HD haptic** (converts rumble signals to DualSense LRA sine-wave drive), switchable in settings
- **New**: Xbox 360 LED patterns automatically mapped to DualSense player indicator LEDs
- **New**: New **Create + Options hold 3s** combo to toggle Xbox and the DS5, DSE, or Auto mode selected before Xbox (with vibration and LED feedback, auto-restart after switch)
- **New**: Combo key detection window is now user-adjustable in settings
- **Chg**: Disabled active scanning (Inquiry) when a controller is already paired — only passive page scan is used, greatly reducing reconnection failures caused by scan conflicts
- **Fix**: Fixed Bluetooth scan state cache inconsistency that caused degraded data transfer rates after connection
- **New**: Updated defaults: 750Hz polling, audio buffer length 56, haptic gain 1, headphone volume offset 75, and speaker gain 2; idle power saving, 1-minute LED timeout, PS wake, extended keyboard shortcuts, and Xbox HD haptics are enabled by default; USB stealth mode is disabled by default
- **Chg**: Improved Xbox/Auto switching: the selected controller protocol is preserved and restored correctly when returning from Xbox mode, including forced DS5, forced DSE, or Auto detection
- **Chg**: Controller protocol status is clearer in the configuration page, distinguishing Auto detection, user-selected protocols, and the protocol that will be restored after leaving Xbox mode
- **Fix**: Improved full-reset and Bluetooth reconnection handling after firmware updates, restoring defaults, and switching output modes, reducing rare cases where a controller could not reconnect after reboot
- **Chg**: Unified Chinese and Latin typography and sizing across the configuration page, improving readability of buttons, status tags, the sidebar, and changelog on Windows

包含文件:
  ds5dongle-lctech616.bin        Full-Speed（兼容性优先）
  ds5dongle-lctech616-hs.bin     High-Speed（高轮询率）
  boot2_bl616_isp_release_v8.1.8.bin
  partition.bin
  partition_cfg_4M_nosec.toml
  partition_cfg_4M.toml
  flash_prog_cfg.ini            默认烧录 FS；如需 HS，修改 [FW] 的文件名
  README.txt

烧录方法 (LCTech BL616):
  1. 按住 BOOT 键，通过 USB-C 插入电脑，进入 UART (ISP) 模式。
  2. 打开 Bouffalo Lab Dev Cube，选择 BL616，使用 ISP (UART) 模式。
  3. 分区表选择 partition_cfg_4M_nosec.toml；
     Boot2 选择 boot2_bl616_isp_release_v8.1.8.bin；
     固件选择 ds5dongle-lctech616.bin（FS）或 ds5dongle-lctech616-hs.bin（HS）。
  4. 开始烧录，完成后重新插拔接收器。

Flashing (LCTech BL616):
  Hold BOOT while plugging in USB-C to enter UART/ISP mode.
  In Bouffalo Lab Dev Cube select BL616, ISP/UART, partition_cfg_4M_nosec.toml,
  boot2_bl616_isp_release_v8.1.8.bin, and either the FS or HS application above.
  Start download, then reconnect the dongle. Online update is not supported.

构建来源:
  开源分支: local/sync-v3.19（分支名沿用历史名称，当前固件为 3.22）
  主仓 v3.22: 14962794d6da7c67f753223ebe8841161c11bc78
  SDK: b3532953322194233f80436701e7fb6bb4ad8275
  Windows: build_windows.bat rebuild，FS 与 HS 分别全量构建。
  离线构建校验不代表已完成实机验收。
