Can I send the contents of a text file via PuTTY through a serial port?

I want to send the text content of a file through a serial port, via PuTTY. I know that there are extensions such as Xmodem and Zmodem, but they all use some checksum protocols to confirm that the file has been sent through the port.

However, my requirements are simpler. I would just send a bunch of text (to a file) through the serial port on Windows (on Linux it would be simpler), but my preferred terminal program is PuTTY. Is it possible? Is there another terminal program that has this type of function?

+6
source share
1 answer

Use Plink (command line connection tool from PuTTY package). This is a console application designed to automate connection tasks such as yours. As a console application, you can redirect your input from a text file:

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

See Using the Plink Command Line Connection Tool.

See also the related How to execute a remote command using PuTTY via Telnet .

+5
source

Source: https://habr.com/ru/post/989077/


All Articles