AcIDx0
March 28th, 2011, 10:46 PM
Hello,
I am writing a simple script which will transmit files over a serial connection. I have simplified the setup to test the solution, so the final configuration will be a bit more complicated.
Current setup:
1. 2 RS232 com ports connected with a null modem in between.
2. Open minicom on both
3. Put in 19200,8,N,1 as parameters
4. Open text travels both ways
5. Files sent over Zmodem transfer well.
Both serial adapters are USB, but I tried it also with real com ports, and same story. For simplicity, I will call one adapter "receiving" and the other "sending" to signify from which side I want to send the files through zmodem.
Then I close minicom on the "sending" site without reseting the port (I have also tried setting everything up with stty)
On sending site:
sz -vv -b some.file >> /dev/ttyUSB0
The minicom on receiving side recognizes that there is a transmission going on and fires up rz. It gets timeouts all the time.
The sending site says:
Retry 0: Timeout on pathname
I tried googling but no solution helps. Please do not try to suggest to use minicom on both sides, because this is going to be an unattended process in the end.
I would appreciate a step by step on how to transfer a file with zmodem using rz and sz without minicom.
Thank you!
I am writing a simple script which will transmit files over a serial connection. I have simplified the setup to test the solution, so the final configuration will be a bit more complicated.
Current setup:
1. 2 RS232 com ports connected with a null modem in between.
2. Open minicom on both
3. Put in 19200,8,N,1 as parameters
4. Open text travels both ways
5. Files sent over Zmodem transfer well.
Both serial adapters are USB, but I tried it also with real com ports, and same story. For simplicity, I will call one adapter "receiving" and the other "sending" to signify from which side I want to send the files through zmodem.
Then I close minicom on the "sending" site without reseting the port (I have also tried setting everything up with stty)
On sending site:
sz -vv -b some.file >> /dev/ttyUSB0
The minicom on receiving side recognizes that there is a transmission going on and fires up rz. It gets timeouts all the time.
The sending site says:
Retry 0: Timeout on pathname
I tried googling but no solution helps. Please do not try to suggest to use minicom on both sides, because this is going to be an unattended process in the end.
I would appreciate a step by step on how to transfer a file with zmodem using rz and sz without minicom.
Thank you!