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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-31-2012, 05:49 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2012
Posts: 20
Rep: 
|
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...
|
|
|
|
01-01-2013, 06:22 AM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
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.
|
|
|
|
01-01-2013, 09:15 AM
|
#3
|
|
Guru
Registered: Mar 2008
Posts: 8,561
|
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
|
|
|
|
01-01-2013, 10:56 AM
|
#4
|
|
LQ Newbie
Registered: Jul 2012
Posts: 20
Original Poster
Rep: 
|
@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...
|
|
|
|
01-01-2013, 11:41 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2012
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
|
01-01-2013, 11:46 AM
|
#6
|
|
Member
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 503
Rep: 
|
If you are using RS-232, make sure you are using a null modem cable to connect the two machines.
|
|
|
|
01-01-2013, 11:53 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2012
Posts: 20
Original Poster
Rep: 
|
Yeah its null-modem...Hmm setserial isn't able to configure the device.
|
|
|
|
01-01-2013, 12:44 PM
|
#8
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
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?
|
|
|
|
01-01-2013, 02:19 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2012
Posts: 20
Original Poster
Rep: 
|
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.
|
|
|
|
01-01-2013, 06:15 PM
|
#10
|
|
Moderator
Registered: Aug 2002
Posts: 10,707
|
It might be the USB serial port adapter / module. I am unfamiliar with that particular model.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:34 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|