LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-23-2011, 02:36 PM   #1
doublec16
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
using kermit to transfer files with a 3-server system


Here's the system:

1 server running regular Ubuntu, 40km above the surface of the earth on a scientific balloon behind an iridium modem (RUDICS) connected to its serial port

1 server on the ground running Ubuntu server

1 intermediate server used for contacting the iridium system from the ground server

I'm not sure if all the above details are completely necessary but I included them for completeness. I would like to be able to log into the balloon server and transfer files in both directions.

The procedure for connecting is to telnet to the intermediate server and then to issue some modem commands to call the balloon. The balloon server is set with getty running on the serial port connected to the modem.

The way I have figured out to transfer files is to run kermit on the ground server and connect to the balloon server through the intermediate server, then run kermit on the balloon server, and set it as a file server with the server command.

However, there is some sort of timeout or something, and only a few kB of any file gets transferred before the connection is broken. After that it seems like the ground server is trying to get the file from the intermediate server (which has no useful files on it at all). The file transfer screen stays open and it keeps trying and trying to transfer, until I type ^C. I don't know if there is a way of detecting through a kermit command whether the connection is still open or if there is some sort of switch to make the transfer automatically stop once it has stalled.

I have been reading about No Kermit Server (NKS) protocol, which seems to be designed for a system like this where the connection is across a third server. Is this likely to do a better job of keeping the connection open and the file transfer going? How can it be implemented? Is there any kermit command to determine from the ground server whether the connection is actually still open? Is there any way of telling whether the connection goes all the way to the balloon server or whether it ends at the intermediate server? I actually just learned about kermit today so any and all advice would be much appreciated.

On a related note, is it possible to have the balloon server running getty on the serial port but still have the port accessible for reading and writing by, say, a python script (which could use the modem to dial down to the ground when it isn't in use)? It doesn't seem to work but I'm wondering if there is a way. Is there a way to temporarily stop getty, then restart it, or is this potentially hazardous? Keep in mind there will be no way to contact it if something goes wrong since it will be 40km above the earth.

Sorry for so many questions. Any help would be appreciated.

Thanks.
 
Old 03-23-2011, 04:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Can you run another like zmodem for a test?

Have you tried any other telnet transfer means?

Last edited by jefro; 03-23-2011 at 04:13 PM.
 
Old 03-24-2011, 06:24 AM   #3
doublec16
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks. I will look up zmodem.

I have searched and the only option I have found for transferring files is kermit. Are there any other ways to transfer files over telnet?
 
Old 03-24-2011, 01:01 PM   #4
doublec16
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Is zmodem available for Ubuntu? I've been reading about and I'm not sure I can connect it through the intermediate server. Is this possible?
 
Old 03-24-2011, 03:44 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Unknown as to what you have. I was just posting an idea. Kermit is and used to be the old standard when connection was almost non-usable. Since it stops I made a guess as to speed being too slow. It was a wild guess. It has been decades since I used old kermit and zmodem. Like early 90's

I tend to telnet to remote things a lot. I log into one then go to another and such but the endpoints remain the same logical path. I send files tftp usually (not great on old connections). rcp or other copy may work too. ftp may be possible. Dunno really the state of the systems. Embedded are very limited. They tend to have tftp. Some tftp clients have file size and other limits and may need to adjust settings to help.

Last edited by jefro; 03-24-2011 at 03:46 PM.
 
Old 03-25-2011, 03:23 AM   #6
doublec16
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
As I said, I have to log in to the balloon computer through the intermediate computer, so unless one of those programs allows that I won't be able to use it. So far, the only program I have found that will let me do anything close to what I want is kermit, and it would be fine if the connection didn't hang during transfers.

Is there anything else I can try or any kermit settings that will make it work better, given the method in which I am forced to connect the computers, as described above?

Thanks.
 
Old 04-12-2011, 07:02 AM   #7
doublec16
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
I have discovered that kermit has 3 settings: FAST, the default, CAUTIOUS, a little slower and more reliable, and ROBUST, which is the slowest and most reliable. When the speed setting is CAUTIOUS, the transfers work a whole lot more reliably. ROBUST is way too slow, but I could see how that type of reliability might be preferred. FAST apparently does not work for an iridium connection, so CAUTIOUS typed on the sending server is the way to go.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I send files in minicom through kermit? wczimmerman Linux - Networking 6 11-16-2011 09:10 AM
Receiving kermit files with minicom DaneG Linux - Newbie 1 06-07-2009 11:22 AM
Uploading all files with todays date via kermit isourcemarketing Programming 2 08-26-2007 08:27 PM
how to transfer files from one system to another system ramvoip Programming 10 04-05-2007 03:40 PM
Transfer 1000000 files (130GB) server to server via shell masali Linux - Software 2 04-04-2007 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration