# GRBL Wireless Bridge

用 ESP32 把 GRBL 雕刻机接入 Wi-Fi 的低成本串口网桥。

WIFI串口网桥。星光4改无线，无线激光雕刻机可用，低成本$3。Make GRBL run on wifi with an ESP32, with auto discovery and compatible with all existing applications.

用 ESP32 把 GRBL 雕刻机接入 Wi-Fi 的低成本串口网桥。

- id: sunshinejnjn-grbl-wireless-bridge
- author: sunshinejnjn
- repository: https://github.com/sunshinejnjn/grbl_wireless_bridge
- license: BSD-3-Clause
- shape: headless
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/sunshinejnjn-grbl-wireless-bridge/
- html_zh: https://esp32gallery.com/zh/projects/sunshinejnjn-grbl-wireless-bridge/
- json: https://esp32gallery.com/data/catalog/projects/sunshinejnjn-grbl-wireless-bridge.json

## Hardware

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

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

## English

```
A laser engraver or other serial-controlled machine gets a Wi-Fi replacement for its cable: MicroPython on an ESP32 opens a TCP socket and shuttles bytes to a UART, and a desktop Python script either points an application straight at that socket, as LaserGRBL accepts, or maps it onto a virtual COM pair through com0com. Settings are two text files uploaded to the board, one for SSID and password, one for UART id, baud rate, TX/RX pins, TCP port and NeoPixel pin. A UDP broadcast lets the desktop script find the device without knowing its address. The server takes one client at a time, and the note about the onboard UART-USB chip is blunt: it will not work, the direct serial link will.
```

## 中文

```
给激光雕刻机这类只认串口的设备换掉 USB 线：ESP32 上跑 MicroPython，开一个 TCP 服务，把网络上的字节原样转进 UART。电脑端一个 Python 脚本先用 UDP 广播找到板子，然后要么让 LaserGRBL 这类软件直接连 TCP，要么用 com0com 建一对虚拟串口，把网络连接伪装成 COM 口给老软件用。配置是传到板子根目录的两个文本文件，一个写 SSID 和密码，一个写 UART 编号、波特率、TX/RX 引脚、TCP 端口和 NeoPixel 引脚。说明里特意点出板上那颗 UART-USB 芯片用不上，必须直连串口，而且服务端一次只接一个客户端。
```
