Active5 years ago
I have 2 linux computers, and a serial line between them, one of them is only accessible through a serial line that has shell on it. How can I transfer files between the 2 computers?
How to send file over serial port in Windows Command Prompt. Ask Question Asked 3 years. With this it should be possible to transfer files over a serial line. Browse other questions tagged windows cmd serial-port file-transfer or ask your own question. I am looking for a way to transfer a file over from my Windows 8 computer to a PandaBoard (has OMAP Ubuntu on it) using a serial cable. The solution should work in general for any ARM board, so for that reason I am using the serial port. However I am unable to transfer over a file. Serial port file transfer using X/Y/Zmodem. Alternatively, the Opengear device itself includes the lrzsz utilities which can be used to transfer files directly e.g. Between its internal mass storage and connected serial devices. Note: File transfer speed is limited by the baud rate of the serial console connection and the.modem protocol. Aug 30, 2010 PCs connected through serial port, but how do I transfer files now? I have a laptop connected to a desktop through the serial port. The connection is made and the network established, yet I can not find the files from either computer on the other one (I thought the PCs would detect each other and be seen as another drive in the My Computer.
I've heard that it can be done with some rz/sz magic...
Can I do the same trick with a pseudo-terminal instead of other computer?
Kenster5,27422 gold badges2020 silver badges3535 bronze badges
DimaKDimaK
migrated from stackoverflow.comMay 3 '11 at 12:18
This question came from our site for professional and enthusiast programmers.
3 Answers
You need a terminal application like minicom. Then you connect the two computers, start minicom on one side, connect to the other side (the one where you can login) and use the sz command to send the file. Minicom will automatically detect the file transfer. Note that you might need to install the
sz
command on the login machine, how that is done is dependent on your distribution.DarkDustDarkDust
Copying txwikinger's answer, I would use kermit, the grandfather of file transfer programs. We used it in the 80's, long before there was Linux. Wikipedia suggests it may be better than zmodem (sz).
An alternative approach is to use SLIP or PPP, as suggested by Axel. But this howto for PPP is about 15 years old.
Community♦
Joseph QuinseyJoseph Quinsey![Windows Windows](/uploads/1/2/4/8/124898712/458895106.jpg)
48711 gold badge77 silver badges2323 bronze badges
You could make use of the 'Serial Line Internet Protocol' as described here.
![File File](/uploads/1/2/4/8/124898712/939074501.png)
Once two systems are interconnected by a slip line, you can use any IP-based tool (ftp, rcp, scp, ssh, ...) to exchange files. It probably takes too long to configure for a once-only purpose but might be worth looking at for embedded systems with RS232 port or old systems from a pre-LAN aera.
Axel KemperAxel Kemper2,76711 gold badge1616 silver badges2121 bronze badges
Not the answer you're looking for? Browse other questions tagged linuxfile-transferserial-port or ask your own question.
You can try program called FastLynx.
http://download.cnet.com/FastLynx/3000-2248_4-10068284.html
http://download.cnet.com/FastLynx/3000-2248_4-10068284.html
If you are transferring full hard drive, then it might be faster (2-3x) to put your drive (A) into the computer(B) that is receiving the data as a SECONDARY or SLAVE drive. It will take you approx 5 minute to put drive in computer B, couple of reboots, and then you can migrate whole hard drive.
Because serial port is slow (max 192kbps), think 8GB USB2 drive (@ $10). USB2 transfers data @2MB/s.
But I would use a program called Roadkil's Unstoppable Copier to do data transfer: (1) it uses DMA, thus bypassing buffering (2) it validates 'packet' transferred by MD5 hash so that your data written is accurate.
But I prefer Primary-Secondary approach since you do not intervene once migration starts.
Can you believe that USB2 (A:B) cables cost $10, but USB2 (A:A) cable cost $40?
http://www.amazon.com/Belkin-Easy-Transfer-Cable-Windows/dp/B002PAR0AQ/ref=pd_cp_e_1
Because serial port is slow (max 192kbps), think 8GB USB2 drive (@ $10). USB2 transfers data @2MB/s.
But I would use a program called Roadkil's Unstoppable Copier to do data transfer: (1) it uses DMA, thus bypassing buffering (2) it validates 'packet' transferred by MD5 hash so that your data written is accurate.
But I prefer Primary-Secondary approach since you do not intervene once migration starts.
Can you believe that USB2 (A:B) cables cost $10, but USB2 (A:A) cable cost $40?
http://www.amazon.com/Belkin-Easy-Transfer-Cable-Windows/dp/B002PAR0AQ/ref=pd_cp_e_1
but 1TB external HD cost $59 @ MicroCenter.com