# Wi-Fi Keyboard Bridge

让手机通过 ESP32-S3 热点把指令发送为 USB 键鼠输入。

连接esp32s3的热点，通过app模拟成usb鼠标键盘

让手机通过 ESP32-S3 热点把指令发送为 USB 键鼠输入。

- id: hvhghv-esp32-wifi2usb-keyboard-mouse
- author: hvhghv
- repository: https://github.com/hvhghv/esp32_wifi2usb_keyboard_mouse
- license: BSD-3-Clause
- shape: square
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/hvhghv-esp32-wifi2usb-keyboard-mouse/
- html_zh: https://esp32gallery.com/zh/projects/hvhghv-esp32-wifi2usb-keyboard-mouse/
- json: https://esp32gallery.com/data/catalog/projects/hvhghv-esp32-wifi2usb-keyboard-mouse.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
A phone drives a computer's mouse and keyboard through a two-part bridge. The ESP32-S3 half is an Arduino IDE sketch flashed with USB Mode set to USB-OTG, USB CDC on boot enabled, MSC disabled and a partition scheme that includes fatfs; plug its USB port into a PC and it raises a hotspot called esp32s3AP with the password ssssssss. A Flutter app, built with flutter3.16, joins that hotspot and turns taps and typing into USB keyboard and mouse input on the host. The same firmware also carries a port of the tftpx file-transfer server on port 10220, so a matching client can push and pull files over the air. The build note is blunt: use the debug build of the app, because the release build has layout problems.
```

## 中文

```
用手机遥控另一台电脑的鼠标键盘，中间靠一个两段式的桥。ESP32-S3 那一半是 Arduino IDE 写的草图，烧录前要把 USB Mode 设成 USB-OTG、USB CDC ON BOOT 打开、固件 MSC 关掉、分区选带 fatfs 的；USB 口插到电脑上，板子会开出一个叫 esp32s3AP 的热点，密码 ssssssss。Flutter 那一半用 flutter3.16 编译，手机连上这个热点后，操作就被转成宿主机收到的 USB 键鼠输入。同一份固件还移植了 tftpx 文件传输服务端，端口 10220，配上对应的客户端就能无线收发文件。编译说明里有一句很实在的提醒：请用 debug 版本，release 版本存在布局问题。
```
