How To Transfer File Using Putty Serial Communications

Posted on by  admin

I have a Windows 7 machine which is connected to a linux prototyping board over a serial connection.Now, I want to transfer files to Linux from Windows. The Linux machine does not have an additional network connection except for serial and the programs rz, sz, screen and tmux are not installed. Moreover, the serial python lib is also not installed.Now I thought I could open PuTTY on Windows, connect to the Linux machine. Then run nohup cat /dev/ttyMDF2 receiving-file and then close PuTTY on Windows to open the serial port up for connection again. Then run copy test.file /B COM4: /B on the Windows machine to send the file. Unfortunately, the file stays empty on the Linux machine.How can I successfully transfer files to my Linux machine over a serial connection?Thank you! For a small text file, cat somefile and use the terminal's paste functionality to drop the file in.

  1. How To Transfer File Using Putty Serial Communications Number
Copy

Hit ^D at the end.For binary files, you probably want to base64 encode it first, then decode on the remote with base64 -d somefile.encoded somefile. Assuming you have base64. You'll have to do the encoding on the Windows side in some way.For larger files, pasting to the terminal might not work, so you'll need something meant for reading files. Putty doesn't seem to have a function for dumping a file on the connection, some other terminal program might have. Though the command line tool plink, which comes with Putty, has the -m option to read 'commands' from a file. It seems to work here.

How To Transfer File Using Putty Serial Communications Number

With this foo.txt: cat foo.out outputfile(base64 encoded data.)EOF.

Comments are closed.