51shangTOP

Navigation

SERIAL / 独立工作台

串口助手

在支持 Web Serial 的桌面浏览器中连接本地串口,完成文本 / HEX 收发、指令定时发送和数据监测。

浏览器本地通信Web Serial / 本地处理
正在检测浏览器能力

连接按钮只会在用户主动点击后请求串口权限。

终端

收发窗口

未连接
0 条

选择串口并打开连接后,接收数据会显示在这里。

发送

文本模式使用 UTF-8 编码未连接,打开串口后可发送

文件

分块发送

本机读取
0% / 0 B / 0 B / 0/0 块

选择本地文件后可开始;文件按分块读取,不写入二进制终端日志。

00
本地日志,共 500 条
实时绘图监测曲线尚未选择曲线

在数值监测卡片中打开“加入曲线”,这里只保留最近 60 秒的监测样本。

接收解析通用帧解析与校验解析关闭;原始终端仍会保留全部接收数据。

解析器只读取接收字节,不改变原始终端和发送逻辑。解析失败的字节仍会保留并标记原因。

解析关闭;原始终端仍会保留全部接收数据。

解析关闭;不会生成帧记录。

知识回忆

把串口通信再过一遍

NOTE

概念、帧格式和工程边界。

01 / 30 秒回忆

A serial assistant talks to a local USB-to-UART device using a selected baud rate, data bits, parity, and stop bits. Web Serial keeps permission, terminal display, and monitoring inside the current browser page.

02 / 核心关系

A common asynchronous frame is 1 start bit + 7/8 data bits + optional parity + 1/2 stop bits. Text uses UTF-8; HEX displays one byte per pair of hexadecimal digits.

03 / 使用判断

Confirm the device voltage level and frame format before choosing link settings. Use text mode for line-based logs and HEX mode for binary protocols.

UART data frame and serial interface timing diagram
A UART frame contains a start bit, data bits, optional parity, and stop bits; the diagram also marks common serial-interface timing boundaries.
常见误区

Do not connect an incompatible voltage level, or change only the baud rate while ignoring data bits, parity, and stop bits. A missing HEX nibble changes the whole frame.

工程提醒

Web Serial requires HTTPS or localhost and a desktop Chromium browser. This page never uploads serial bytes and does not replace a protocol analyzer; verify grounding, cable length, clock error, flow control, and frame timeouts in the real system.

关系

帧与吞吐

  • 8N1 时每个数据字节通常占 1 起始位 + 8 数据位 + 1 停止位,共 10 bit。
  • 有效字节率约为 baud ÷ 每帧总位数,协议头、校验和间隔还会继续降低净荷。

边界

浏览器权限

  • 需要 HTTPS 或 localhost,以及支持 Web Serial 的桌面 Chromium 浏览器。
  • 本站不接收、不上传串口字节;未连接设备时不生成模拟日志。

本机操作

指令、监测卡片和连接偏好保存在当前浏览器;接收日志只在当前会话中保留。