{
  "kind": "合成输入与数学模型输出，非设备实测",
  "article": "https://qifudev.com/article/uart-8e1-stop-bit-budget/",
  "tool": "https://qifudev.com/tools/uart-throughput/",
  "formula": "bpc = 1 + 数据位 + 校验位 + 停止位；t = 总字符数 × bpc / baud",
  "inputs": [
    {
      "name": "波特率",
      "key": "baud",
      "value": 115200,
      "unit": "baud"
    },
    {
      "name": "数据位",
      "key": "dataBits",
      "value": 8,
      "unit": "bit"
    },
    {
      "name": "校验位：无填0，有填1",
      "key": "parityBits",
      "value": 1,
      "unit": "bit"
    },
    {
      "name": "停止位",
      "key": "stopBits",
      "value": 1,
      "unit": "bit"
    },
    {
      "name": "每包载荷字符",
      "key": "payloadBytes",
      "value": 100,
      "unit": "字符"
    },
    {
      "name": "每包协议开销字符",
      "key": "overheadBytes",
      "value": 0,
      "unit": "字符"
    },
    {
      "name": "包外额外间隔",
      "key": "gapMs",
      "value": 0,
      "unit": "ms"
    }
  ],
  "outputs": [
    {
      "name": "每字符占线位数",
      "key": "bitsPerCharacter",
      "value": 11,
      "unit": "bit"
    },
    {
      "name": "单包占线时间",
      "key": "transmitMs",
      "value": 9.548611111111112,
      "unit": "ms"
    },
    {
      "name": "有效载荷字符速率",
      "key": "payloadRate",
      "value": 10472.727272727272,
      "unit": "字符/s"
    },
    {
      "name": "无协议开销的理论字符率",
      "key": "maximumCharacters",
      "value": 10472.727272727272,
      "unit": "字符/s"
    }
  ],
  "warnings": [],
  "assumptions": "不包含USB串口缓存、驱动延迟、接收任务阻塞、重传与硬件流控暂停。5至7位模式中的一个字符不能等同于任意8位字节。",
  "source": {
    "label": "乐鑫 UART 驱动与帧格式",
    "url": "https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/peripherals/uart.html"
  },
  "measured": {
    "device": null,
    "firmware": null,
    "environment": null,
    "instrument": null,
    "result": null,
    "verdict": null
  }
}
