LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   serial port communication between linux & windows (https://www.linuxquestions.org/questions/linux-general-1/serial-port-communication-between-linux-and-windows-893562/)

agk 07-25-2011 12:35 AM

serial port communication between linux & windows
 
Hi,

I want to write a program that should be able to copy files from windows to linux & vise versa. I also want to be able to execute commands on linux from windows via serial port. Is there any book/link that I can refer to which has input about serial port login, copying & executing files on linux (even linux to linux would be helpful)?

michaelk 07-25-2011 02:23 AM

welcome to LinuxQuestions
Here is a howto on configuring a serial port as a console device. This will allow you to login and and execute commands. You can use any terminal program ie Hyperterminal in windows or minicom in linux are the most common.
http://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/

There are some utilities i.e. rz, sz (receive and send using zmodem protocol) that you can use via hyperterminal or minicom to send/receive files. You initiate the transfer on the server then use the built in transfer routine on the client application. There are also xmodem and ymodem transfer apps too.

agk 07-25-2011 03:46 AM

Thanks michaelk.
I already saw these options. I could use putty to login & run commands and use sz,rz for file transfer. I actually failed to mention that I want to automate these operations from windows side. The putty command line interface doesn't support serial option & I read on hyperterminal's help that the login can not be automated. So I thought I need to write a code which would do these things to support automation.

michaelk 07-25-2011 06:19 AM

Here is some basic programing help on the linux side.
http://tldp.org/HOWTO/Serial-Programming-HOWTO/


minicom does have some scripting capability as well as kermit for windows. I am unfamiliar with kermit scripting so can not offer any help.

allend 07-25-2011 10:26 AM

You should be able to achieve your aims using UUCP http://en.wikipedia.org/wiki/UUCP
The problem may be in finding a Windows version! UUPC used to work for me, but that was a long time ago now.


All times are GMT -5. The time now is 08:00 PM.