简单说,Temp: 23C 会收到 ACK,但 Temp: 23°C 会收到 NAK,板子上什么都不显示。日志行是 rx: "\25"。把波特率降到 4800、:flowcontrol 设成 hw、重新插拔,都没有任何变化。我看 tx: 那行是正常的。这是串口层的问题吗?
帧封装的代码如下
(defun fw-console--frame (payload)
(concat (string fw-console-stx)
(string (length payload))
payload
(string (fw-console--checksum payload))))
串口是用 :coding 'utf-8 打开的。
从英语翻译·查看原文Basically, Temp: 23C gets an ACK but Temp: 23°C gets a NAK, and the board shows nothing. The log line is rx: "\25". Lowering the baud to 4800, :flowcontrol hw, and re-plugging all changed nothing. The tx: line looks normal to me. Is this a serial-layer problem?
The framing code:
(defun fw-console--frame (payload)
(concat (string fw-console-stx)
(string (length payload))
payload
(string (fw-console--checksum payload))))
The port is opened with :coding 'utf-8.