【问题标题】:How to establish a Putty Serial connection through a Python script?如何通过 Python 脚本建立 Putty 串行连接?
【发布时间】:2014-07-17 20:19:26
【问题描述】:

从 Python 脚本中,我想为串行线路(COM1、COM2 等)启动 PUTTY,并通过 python 脚本提及速度。

我已经探索过了,但大部分信息对 Python 到 Putty (SSH) 的连接很有帮助。

是否可以建立 Python 到 Putty(Serial) 的连接并记录日志?

【问题讨论】:

    标签: python python-2.7 putty


    【解决方案1】:

    如果您的目标是通过串行链路进行通信,请考虑使用 PySerial,我多次使用它与通过串行链路连接的设备进行通信,它在 MS Windows 和 Linux 上运行良好。

    Putty 只是一种控制台,它允许与串行链路通信,但对于您的 Python,它不是必需的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-16
      • 2013-10-02
      • 1970-01-01
      • 1970-01-01
      • 2013-01-02
      • 1970-01-01
      • 2014-02-25
      • 1970-01-01
      相关资源
      最近更新 更多