Skip to content

Releases

ESP32 touch box 1.1.1

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

ESP32 touch box 1.1.0

Choose a tag to compare

@NuoRan NuoRan released this 13 Nov 09:46

ESP32 触控盒 community.esp32 1.1.0 是 GameScrcpy 的社区扩展:把一块 ESP32 开发板变成手机的外接触摸屏、键盘、鼠标和手柄,手机不需要打开 USB 调试。它原是 GameScrcpy 2.0 内置的 ESP32 触控盒,从 GameScrcpy 2.1 起搬出主程序,只用 GameScrcpy 公开的扩展接口。这是它作为社区扩展的第一个版本,以 Apache-2.0 许可发布。

下载

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

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

需要什么

  • Windows 10 / 11(x64)上的 GameScrcpy 2.1 或更新的版本(原生扩展接口第 2 版)。GameScrcpy 2.0 用不了这个扩展。
  • 一块至少 4 MB 闪存的开发板:ESP32-S3、S2、P4 经 USB 接手机;经典 ESP32、C3、C6 经蓝牙接手机。
  • 电脑经蓝牙连板子时:电脑要有低功耗蓝牙(自带或 USB 适配器),板子是经典 ESP32、C3、C6 或 S3,固件 1.1 或更新。

这一版有什么

  • 作为扩展的触控盒:找到的板子作为触控盒出现在 GameScrcpy 的设备页:“控制”不看画面直接操作手机,“设置”打开这块板子的窗口(试一下、固件、Wi-Fi、蓝牙、名称、诊断),“更多”里有刷写固件、诊断和断开。板子也可以和采集卡配对。
  • 固件 1.1.0:给 ESP32-S3、S2、P4、经典 ESP32、C3、C6 六种芯片,随扩展附带,在扩展里就能刷写;扩展带着更新的固件时,板子的窗口会提示升级。
  • 电脑经低功耗蓝牙连板子(新):经典 ESP32、C3、C6 与 S3 装上固件 1.1 后,板子不用再接电脑的数据线。在板子的窗口里“经蓝牙配对”一次,再把连接方式选成蓝牙;设备页显示蓝牙图标和信号,往返太慢时窗口提示“蓝牙延迟较高”。
  • 闲置后不再断开:盒子不出声时会重新询问,必要时切回握手波特率再升回高速,闲置几分钟后的第一下触控不再失败;日志写明触控为什么没到板子、串口为什么出错。
  • 给逻辑与面板用的接口 ext.community.esp32:节点 boards()、bluetooth()、ports()、firmware() 等,长任务 flash、wifi、rename、diagnose、scan、pair、unpair,以及 board.added、flash.progress、bluetooth.changed 等事件。
  • 帮助:接线、什么时候按 BOOT、各种提示的意思,都在 GameScrcpy 帮助页的“扩展”一组里。

怎么安装

  1. 下载 community.esp32-1.1.0.gsext,在 GameScrcpy 的“扩展”页选“从文件安装”,同意它要的权限:使用你选的设备(串口、蓝牙与刷写)、在设备页加设备、使用网络(只用于在局域网里经 Wi-Fi 找板子)。
  2. 把板子的串口接到电脑,它作为触控盒出现在“设备”页。
  3. 新板子或旧固件的板子:在扩展卡片的“设置”里选它的串口,点“刷写固件”。
  4. 想让投屏中的手机经板子触控:在那台手机的设置里把触控方式选成 ESP32,并在这个扩展的手机设置里选串口、Wi-Fi 或蓝牙,以及地址。
  5. 想用 Wi-Fi 或蓝牙:板子接在串口上时,在它的窗口里保存 Wi-Fi 或点“经蓝牙配对”,再改连接方式。

从 GameScrcpy 2.0 的内置 ESP32 换过来

  • 2.0 的设置不迁移:手机的触控方式“ESP32”与 esp32.* 设置在 2.1 里都不再认(手机回到普通触控,采集卡的触控回到不触控)。装好这个扩展后,重新为手机(和采集卡)选触控方式,并在扩展里重新设置一次板子的 Wi-Fi。
  • 板子上 1.0.x 的固件照常能用;电脑经蓝牙连板子要固件 1.1,板子窗口的“固件”里可以升级。

还没有在真板子上核对的

  • 固件 1.1.0 里电脑与板子之间的低功耗蓝牙连接。
  • 刷写 1.1.0 固件。
  • S3 与 C6 板子。
  • 经典 ESP32 同时开着 Wi-Fi 与蓝牙时的稳定性(这块芯片的内存余量最小)。

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


English

The ESP32 touch box community.esp32 1.1.0 is a GameScrcpy community extension: it turns an ESP32 development board into the phone's plugged-in touch screen, keyboard, mouse and gamepad, so the phone needs no USB debugging. It used to be the ESP32 touch box built into GameScrcpy 2.0; from GameScrcpy 2.1 on it lives outside the program and uses only GameScrcpy's public extension interfaces. This is its first release as a community extension, under Apache-2.0.

Download

File What it is for
community.esp32-1.1.0.gsext The extension package: the extension itself (esp32.dll), its panels and help, and firmware 1.1.0 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), for native extension interface 2. GameScrcpy 2.0 cannot run this extension.
  • 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.
  • For the computer to reach the board over Bluetooth: Bluetooth LE on the computer (built in or a USB adapter) and a classic ESP32, C3, C6 or S3 with firmware 1.1 or later.

What is in it

  • The touch box as an extension: boards show up on GameScrcpy's Devices page as touch boxes: Control works the phone without a picture, Settings opens the board's window (Try it, firmware, Wi-Fi, Bluetooth, name, diagnosis), and More holds Flash firmware, Diagnose and Disconnect. A board can also be paired with a capture card.
  • Firmware 1.1.0 for six chips (ESP32-S3, S2, P4, classic ESP32, C3, C6), shipped with the extension and flashed from it; when the extension brings newer firmware, the board's window offers the upgrade.
  • Bluetooth LE between the computer and the board (new): a classic ESP32, C3, C6 or S3 with firmware 1.1 no longer needs a cable to the computer. Choose Pair over Bluetooth once in the board's window, then choose Bluetooth as the connection; the Devices page shows a Bluetooth icon and the signal, and the window says "Bluetooth delay is high" when round trips get slow.
  • No more drops after idling: when the box goes quiet it is asked again, at the handshake speed if needed, and the fast speed is negotiated back, so the first touch after a few idle minutes no longer fails; the log says why a touch did not reach the board and why a serial port failed.
  • An interface for logic and panels, ext.community.esp32: nodes such as boards(), bluetooth(), ports() and firmware(), the jobs flash, wifi, rename, diagnose, scan, pair and unpair, and events such as board.added, flash.progress and bluetooth.changed.
  • Help: wiring, when to hold BOOT and what the messages mean, in the Extensions group of GameScrcpy's Help page.

Installing

  1. Download community.esp32-1.1.0.gsext, choose Install from file on GameScrcpy's Extensions page and allow what it asks for: the devices you choose (serial ports, Bluetooth and flashing), adding devices to the Devices page, and the network (only to reach boards over Wi-Fi on your local network).
  2. Plug the board's serial port into the computer; it shows up on the Devices page as a touch box.
  3. For a new board or one with old firmware, pick its serial port in the extension card's Settings and click Flash firmware.
  4. To touch a mirrored phone through the board, choose the touch method ESP32 in that phone's settings, and the serial port, Wi-Fi or Bluetooth, with the address, in this extension's settings for that phone.
  5. For Wi-Fi or Bluetooth, save the Wi-Fi or choose Pair over Bluetooth in the board's window while it is on the serial port, then change the connection.

Coming from the built-in ESP32 of GameScrcpy 2.0

  • The settings of 2.0 are not carried over: the touch method "ESP32" and the esp32.* settings are no longer known in 2.1 (phones go back to normal touches, and a capture card's touches to none). Once this extension is installed, choose the touch method again for each phone (and capture card) and set up the board's Wi-Fi once more in the extension.
  • Boards with firmware 1.0.x keep working; Bluetooth between the computer and the board needs firmware 1.1, which Firmware in the board's window can install.

Not yet checked on a real board

  • Bluetooth LE between the computer and the board in firmware 1.1.0.
  • Flashing firmware 1.1.0.
  • S3 and C6 boards.
  • A classic ESP32 with Wi-Fi and Bluetooth on at the same time (the chip with the least memory to spare).

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

SHA-256

bd3b285e54d4f43a6c50f9cd6d3bbc826c299a472ce53d8e3dc925c061fed3c0  community.esp32-1.1.0.gsext