Skip to content

ESP32 touch box 1.1.1

Latest

Choose a tag to compare

@NuoRan NuoRan released this 16 Nov 16:25

ESP32 触控盒 community.esp32 1.1.1 修了 1.1.0 的几个大问题:视角放开时 WASD 失灵、经典 ESP32 / C3 / C6 的蓝牙根本没起来、电脑经蓝牙连不上开发板、升级固件会清掉开发板的设置。固件也更新到 1.1.1。建议配合 GameScrcpy 2.2.1 使用。

下载

文件 说明
community.esp32-1.1.1.gsext 扩展包:扩展本身(esp32.dll)、面板、帮助,以及六种芯片的 1.1.1 固件

扩展包没有签名,安装框会提示“没有签名的原生代码”;扩展用 CreateFile 打开串口、读自带的固件镜像,安装框也可能提示它的代码会读写文件。它不读写你的其它文件。

需要什么

  • Windows 10 / 11(x64)上的 GameScrcpy 2.1 或更新的版本;建议 2.2.1(在开发板窗口里改名、保存 Wi‑Fi 时,打完字直接点按钮也能生效)。
  • 一块至少 4 MB 闪存的开发板:ESP32-S3、S2、P4 经 USB 接手机;经典 ESP32、C3、C6 经蓝牙接手机。

这一版有什么

  • USB:鼠标移动很密时触控不再被丢掉(视角放开时 WASD 失灵)。四个 HID 接口(触控、键盘、鼠标、手柄)各走各的队列,鼠标移动合并后再发,发送时轮流服务,不再为一个接口干等。
  • 手机蓝牙:1.1.0 及更早的固件在经典 ESP32、C3、C6 上蓝牙根本没起来——给手机的 HID 报告描述符超过了 NimBLE 的 512 字节上限。现在蓝牙用一份 5 指的描述符(USB 仍是 10 指),HID 起不来时给电脑的串口服务照常开,“最多触点数”写真实值,蓝牙上的鼠标移动合并后再发。经蓝牙连手机时最多同时 5 指。
  • 电脑经蓝牙连开发板:以前在真板子上一次都连不上(Windows 按服务 UUID 不经缓存查找时总是报“设备不识别此命令”)。现在先列出全部服务再挑串口服务;已在 ESP32-S3 上核对配对、连接与升级后的重连。
  • 升级固件保留设置:开发板跑着本固件、分区表又和新固件相同时,升级保留 Wi‑Fi、名称、密钥和蓝牙配对;开发板没有应答(比如按着 BOOT 刷写)时照旧整片写入,扩展会提示要重新设置。
  • 配对自愈:Windows 还留着旧配对、开发板却已经忘了这台电脑时,“经蓝牙配对”会删掉旧配对再配一次,不再一直报“没有配对”。
  • 改连接方式:从串口改成蓝牙时,几秒就连上,不再先报“正被别人占用”、等十几秒。
  • 面板:常驻的说明文字收进帮助;刷写成功后清掉开发板先前的提示与诊断结果。

怎么升级

  1. 下载 community.esp32-1.1.1.gsext,在 GameScrcpy 的“扩展”页选“从文件安装”。
  2. 把开发板的串口接到电脑,在它的窗口里点“升级固件”。升级保留开发板的设置。
  3. 电脑以前经蓝牙配对过开发板、升级后连不上的:在开发板窗口里再点一次“经蓝牙配对”。

还没有在真板子上核对的

  • 经典 ESP32、C3、C6 上的蓝牙(给手机的 HID 与给电脑的串口服务)。这一版修好了它们根本起不来的根因,但还没在这三种真板子上跑过,算实验性。

遇到问题请到 https://github.com/NuoRan/GameScrcpy-ESP32 报告,附上 GameScrcpy “设置 › 关于 › 导出诊断包”生成的文件。


English

The ESP32 touch box community.esp32 1.1.1 fixes the big problems of 1.1.0: the WASD keys did nothing while the camera was released, Bluetooth never started on the classic ESP32, C3 and C6, the computer could not reach the board over Bluetooth, and a firmware upgrade cleared the board's settings. The firmware is updated to 1.1.1 too. Use it with GameScrcpy 2.2.1.

Download

File What it is for
community.esp32-1.1.1.gsext The extension package: the extension itself (esp32.dll), its panels and help, and firmware 1.1.1 for six chips

The package is not signed, so the install dialog warns about unsigned native code; the extension opens serial ports with CreateFile and reads its own firmware images, so the dialog may also say that its code reads and writes files. It touches no other files.

Requirements

  • GameScrcpy 2.1 or later on Windows 10 / 11 (x64); 2.2.1 is recommended (renaming the board or saving its Wi‑Fi then works when you click the button right after typing).
  • A board with at least 4 MB of flash: an ESP32-S3, S2 or P4 on the phone's USB port, or a classic ESP32, C3 or C6 on the phone's Bluetooth.

What is in it

  • USB: touches are no longer dropped while the mouse moves quickly (the WASD keys did nothing with the camera released). The four HID interfaces (touch, keyboard, mouse, gamepad) have their own queues, mouse motion is merged before it is sent, and the sender serves them in turn instead of waiting on one.
  • Bluetooth to the phone: firmware 1.1.0 and earlier never started Bluetooth on the classic ESP32, C3 and C6, because the HID report descriptor for the phone was larger than NimBLE's 512-byte limit. Bluetooth now has its own five-finger descriptor (USB keeps ten), the computer's serial service starts even when the HID device cannot, the Contact Count Maximum feature reports the real value, and mouse motion over Bluetooth is merged before it is sent. Over Bluetooth the touch screen takes five fingers at once.
  • The computer's Bluetooth link: it never connected to a real board (Windows, asked to look up the service by its UUID without its cache, always answered "the device does not recognize the command"). The extension now lists all services and picks the serial service; pairing, connecting and reconnecting after an upgrade are checked on an ESP32-S3.
  • Upgrades keep the settings: when the board runs this firmware and its partition table matches the new image, an upgrade keeps its Wi‑Fi, name, key and Bluetooth pairings; a board that does not answer (for example one flashed with BOOT held) is still written in full, and the extension says that it needs setting up again.
  • Pairing heals itself: when Windows still holds an old pairing that the board has forgotten, Pair over Bluetooth removes it and pairs again instead of failing with "not paired" every time.
  • Changing the connection: switching from serial to Bluetooth connects within seconds, instead of first reporting the board as in use by someone else and waiting a dozen seconds.
  • Panels: the standing explanations moved into the help; a finished flash clears the board's earlier notes and diagnosis.

Upgrading

  1. Download community.esp32-1.1.1.gsext and choose Install from file on GameScrcpy's Extensions page.
  2. Plug the board's serial port into the computer and click Upgrade firmware in its window. The upgrade keeps the board's settings.
  3. If the computer was paired with the board over Bluetooth and cannot connect after the upgrade, click Pair over Bluetooth in the board's window once more.

Not yet checked on a real board

  • Bluetooth on the classic ESP32, C3 and C6 (HID for the phone and the serial service for the computer). This release fixes the cause of it never starting, but it has not run on those three boards yet, so it is experimental.

Please report problems at https://github.com/NuoRan/GameScrcpy-ESP32 and attach the file made by GameScrcpy's "Settings › About › Export diagnostics".

SHA-256

3826219d24bb940b7a2692f87045001cdf9263ff2e968562358423e6a2cdd3d0  community.esp32-1.1.1.gsext