LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-25-2011, 12:35 AM   #1
agk
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
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)?
 
Old 07-25-2011, 02:23 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,923

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
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.

Last edited by michaelk; 07-25-2011 at 02:26 AM.
 
Old 07-25-2011, 03:46 AM   #3
agk
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-25-2011, 06:19 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,923

Rep: Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747Reputation: 747
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.

Last edited by michaelk; 07-25-2011 at 06:41 AM.
 
Old 07-25-2011, 10:26 AM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,439

Rep: Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Establishing serial port communication between PC and Launchpad in Linux atiprashant Linux - Newbie 1 06-30-2011 01:39 AM
setting up serial communication from desktop through USB port in linux terminal raphtor Linux - Networking 8 09-09-2010 08:57 AM
Well it worked in Windows..... Serial Port Communication Porting morty346 Programming 2 02-10-2009 04:14 PM
Serial port communication in 'C' on Linux kirti Linux - Hardware 1 06-25-2004 01:58 PM
serial port communication vidyaraj Linux - Software 6 03-02-2004 06:46 PM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration