LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2012, 05:49 PM   #1
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Rep: Reputation: Disabled
File Transfer w/ZModem


I am trying to send a file from my computer to another connected Linux box over serial with the Z-Modem protocal. lrzsz has been installed on both sides. I can't seem to figure out how to get anything. I am using sz FILE on the sender and rz on the receiving end, but so far not much is happening. Both computers are Debian boxes. The reason I am doing this is that I want to eventually use z-modem to transfer files to and from my Amiga 2000, but I figured I should atleast figure out how to set it up on something more modern first...
 
Old 01-01-2013, 06:22 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What type of communication program is installed on the Amiga? By communication program I mean something like minicom, kermit etc. The comm program should have a way to upload/download files. You start the receive computer first then send the file on the other.

You can try this using minicom on the linux boxes. Although the following link uses a SBC on one end it shows the minicom commands and how to use the application.

http://www.cyberciti.biz/tips/connec...g-minicom.html

Last edited by michaelk; 01-01-2013 at 06:26 AM.
 
Old 01-01-2013, 09:15 AM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I haven't used zmodem for some 30 years. I used to use it a lot when it was released. Really did speed up transfers and help with connection issues.

I'd have to start all over and try to remember this stuff.
See the first parts and if good go to chapter 15.
http://linux.about.com/od/srl_howto/a/hwtsrl01.htm
 
Old 01-01-2013, 10:56 AM   #4
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
@michaelk I was planning on using NComm, which I don't have installed yet. I understand that version 3 has z modem support. I didnt know minicom could do file transfers, I thought it was only for dialing modems...
 
Old 01-01-2013, 11:41 AM   #5
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Something is not working right. Everytime I try to send a file I get a bad CRC error. Both serial ports are configured the same way:
9600 bps 8 bits even parity with hardware flow control

Everthing is plugged in and I am pretty sure the cable is good. I did this and was able to type on one machine and have it show up on the other. I wonder about the USB to serial converter I am using. Here's some relevant lines from dmesg:
Code:
[ 2002.585208] usb 3-1: Manufacturer: Staples USB to Adapter
[ 2002.585216] usb 3-1: SerialNumber: 360834
[ 2002.699451] usbcore: registered new interface driver usbserial
[ 2002.699559] USB Serial support registered for generic
[ 2002.699753] usbcore: registered new interface driver usbserial_generic
[ 2002.699765] usbserial: USB Serial Driver core
[ 2002.702448] USB Serial support registered for MCT U232
[ 2002.702533] mct_u232 3-1:1.0: MCT U232 converter detected
[ 2002.702947] usb 3-1: MCT U232 converter now attached to ttyUSB0
[ 2002.703029] usbcore: registered new interface driver mct_u232
[ 2002.703037] mct_u232: z2.1:Magic Control Technology USB-RS232 converter driver
 
Old 01-01-2013, 11:46 AM   #6
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
If you are using RS-232, make sure you are using a null modem cable to connect the two machines.
 
Old 01-01-2013, 11:53 AM   #7
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
Yeah its null-modem...Hmm setserial isn't able to configure the device.
 
Old 01-01-2013, 12:44 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It is not necessary to use setserial since minicom configures the desired port. If you can type on one and see the output on the other then basic communications are working. You might also try setting hardware flow control to none.

So what steps are you using to transfer the file?
 
Old 01-01-2013, 02:19 PM   #9
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Original Poster
Rep: Reputation: Disabled
First I set the receive computer to receive by control+a and r and then I send a file from my main computer (the one with the USB adapter). I always receive CRC errors on the receiving machine and nak on sector errors on the sender. Both computers configured exactly the same way, at different bit rates, with or without hardware flow control. What is interesting is that if I switch the sender and receiver, then the transfer is successful.

Last edited by DiskChris; 01-01-2013 at 02:22 PM.
 
Old 01-01-2013, 06:15 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,697

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
It might be the USB serial port adapter / module. I am unfamiliar with that particular model.
 
  


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
Sony PSP file transfer inaccurate transfer progress stratotak Linux - Newbie 3 01-02-2010 03:49 AM
any x/y/zmodem supporting terminal to transfer files via RS-232 port? baosheng Linux - Hardware 7 08-15-2007 03:17 AM
Zmodem auth problem adam525 Linux - General 0 12-06-2006 10:57 AM
use of zmodem sunhui Linux - Software 0 03-29-2006 12:54 AM
zmodem transfer BTseapig Linux - Software 2 11-02-2004 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 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