是否可以通过串口通过 PuTTY 发送文本文件的内容? [英] Is it possible to send the content of text file over PuTTY over a serial port?

查看:109
本文介绍了是否可以通过串口通过 PuTTY 发送文本文件的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过 PuTTY 通过串行端口发送文件的文本内容.我知道存在 Xmodem 和 Zmodem 等扩展,但它们都使用一些校验和协议来确认文件是通过端口发送的.

I'd like to send the text content of a file over the serial port, over PuTTY. I know that extensions exists such as Xmodem and Zmodem, but they all use some checksum protocols to confirm that a file is sent over the port.

不过,我的要求比较简单.我想简单地通过 Windows 中的串行端口发送一堆文本(在一个文件中)(在 Linux 下这必须更简单),但我首选的终端程序是 PuTTY.这可能吗?是否有其他具有此类功能的终端程序构建了它?

However, my requirements are more simple. I'd like to simply send a bunch of text (in a file) over the serial port in Windows (under Linux this would be must more simple), but my preferred terminal program is PuTTY. Is this possible? Is there another terminal program that has this type of feature built it?

推荐答案

使用 Plink(PuTTY 套件中的命令行连接工具).这是一个控制台应用程序,旨在自动化连接任务,就像你的一样.作为控制台应用程序,您可以从文本文件重定向其输入:

Use Plink (a command-line connection tool from PuTTY suite). It's a console application intended to automate connection tasks, like yours. Being a console application, you can redirect its input from a text file:

plink.exe -serial -sercfg ... < input.txt

参见使用命令行连接工具Plink

另见相关:

这篇关于是否可以通过串口通过 PuTTY 发送文本文件的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆