{
  "topic": "KNX DPT16 固定字符串",
  "origin": "本文原创合成数据，未采集真实设备",
  "cases": [
    {
      "case_id": "ASCII填充",
      "kind": "正例",
      "input": {
        "subtype": "16.000",
        "text": "Hall-1"
      },
      "expected": {
        "hex": "48616c6c2d310000000000000000",
        "bytes": 14,
        "decoded": "Hall-1"
      }
    },
    {
      "case_id": "Latin1重音",
      "kind": "正例",
      "input": {
        "subtype": "16.001",
        "text": "Cafeé"
      },
      "expected": {
        "hex": "43616665e9000000000000000000",
        "bytes": 14,
        "decoded": "Cafeé"
      }
    },
    {
      "case_id": "中文不兼容",
      "kind": "显式负例",
      "input": {
        "subtype": "16.000",
        "text": "前厅"
      },
      "expected_error": "字符不在指定编码内"
    },
    {
      "case_id": "超过14",
      "kind": "显式负例",
      "input": {
        "subtype": "16.000",
        "text": "123456789012345"
      },
      "expected_error": "编码内容超过14字节"
    }
  ]
}
