serial-port - 用串行通信开始新的线路

标签 serial-port arduino putty

我试图让 arduino 告诉我的电脑它的继电器状态是什么。并且出于某种原因,每次它发送一个新字符串 PuTTY 都会离开​​最后一个文本的水平位置。这导致非常丑陋的显示。

我希望 PuTTY 看起来像 arduino 串行管理器。

这是 arduino 串行管理器的样子
enter image description here

这就是 PuTTY 中的样子
enter image description here

这是我用来从 arduino 发送到计算机的代码。
enter image description here

最佳答案

您可以设置 Implicit CR in every LF PuTTY 的终端选项中的选项,而不是更改来自 \n 的代码中的每个行终止至 \r\n .

关于serial-port - 用串行通信开始新的线路,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11318638/

相关文章:

android - 错误 : You do not have read/write permission to the serial port

random - 是否可以使用物理传感器生成随机数?

python - 如何在运行时在Python数组中添加值?

c - 这个函数的结果是什么?

mysql - 无法连接到 MySQL 服务器(由 strato 托管)错误 : 2013 lost connection to mysql server at 'reading initial communication packet' system error 0

powershell - Plink/PuTTY 使用加密密码

java - jssc getInputStream() getOutputstream()

C++ - 在没有物理设备的情况下测试串口

linux - 是否可以在 Linux 中使用 9 位串行通信?

c# - 在 C# 中使用 pscp 通过 post 请求在 Windows 和 Linux 之间传输文件