ICE

Serial Products => ICE-TEN => Topic started by: solcon on November 10, 2005, 11:05:50 am

Title: Ucopy Looping doing File Transfer
Post by: solcon on November 10, 2005, 11:05:50 am

While trying to transfer a file from Windows to Unix, Ucopy is looping over and over again transferring the files.  How do I get this to stop?

Title: Ucopy Looping doing File Transfer
Post by: Bob on November 10, 2005, 11:49:19 am
Hit cancel. If there are multiple files it might have to finish one before stopping. If that doesn't work, kill it in task manager.
Title: Ucopy Looping doing File Transfer
Post by: solcon on November 10, 2005, 11:57:58 am

That did not seem to help, even transferring one file is keeps looping.

Title: Ucopy Looping doing File Transfer
Post by: Bob on November 10, 2005, 12:26:02 pm
What do you mean by "looping"? Is the packet count going from 0 to some number then back to zero again??

What transfer protocol settings are you using??
Title: Ucopy Looping doing File Transfer
Post by: solcon on November 10, 2005, 02:19:43 pm

What I mean is, the packet number goes from zero to the end of the file and then starts back at zero.

This problem was happening to a client of ours, and did not know if it was also happening to me.  I just tried to do the exact same thing and the problem also occurs with my PC and Unix File Server.  We are using YMODEM, 19200 baud, AUTO and CRC16.

The files we are transferring are HIPAA Compliant files that are one record long.  The Unix File Server is where our application runs and they use the PC to transmit the file to in the case Medicare.  In transferring the data from the Unix File Server, it works just fine no problems.  When they receive a file from Medicare to transfer back to the Unix File Server is when we have problems.

In playing around with this, I noticed the files from Medicare have a number of spaces at the end of the record.  I tried removing the trailing spaces and that fixed the problem.  So my question is there a better way to transfer the files or do I need to write a program to remove those trailing spaces?

Any help would be very much appreciated.

Title: Ucopy Looping doing File Transfer
Post by: Bob on November 10, 2005, 02:26:49 pm
Very weird. You shouldn't have to remove anything. Try with xmodem checksum and a 128 byte block size. Report results please.
Title: Ucopy Looping doing File Transfer
Post by: solcon on November 10, 2005, 02:58:23 pm

That did not work, I received a message;

          Timed out error (filename)

Title: Ucopy Looping doing File Transfer
Post by: Bob on November 10, 2005, 03:02:30 pm
Try ymodem, text, 128 bytes, crc16

If that doesn't work, try quoted ymodem.

Are you sure you don't have a permissions problem on the write (on unix)??
Title: Ucopy Looping doing File Transfer
Post by: solcon on November 10, 2005, 03:11:55 pm
Neither option worked.

Again, I think it is the HIPAA type file.  I removed the trailing spaces and it transferred just fine.  I guess I will need to write something on the Windows side before transferring the file.

Thanks for the help.
Title: Ucopy Looping doing File Transfer
Post by: Bob on November 10, 2005, 04:23:57 pm
One last thing. Try forcing a binary file transfer.
BTW, what version do you have on unix?

ucopy

with no args on unix will give you the version
Title: Ucopy Looping doing File Transfer
Post by: solcon on November 11, 2005, 09:51:16 am
Tried using binary in the file transfer and that did not work either.

The Unix version is 5.37

Title: Ucopy Looping doing File Transfer
Post by: solcon on November 11, 2005, 10:18:00 am
I looked at the file again and noticed a Control-Z at the end.  When I removed that character, it transfers just fine.
 
Title: Ucopy Looping doing File Transfer
Post by: Bob on November 11, 2005, 10:34:22 am
Thanks for the info. Control-Z is the REALLY old way to mark the end of a text file. It's bizzare that it would affect a binary file transfer. Seems like it's a flaw in ucopy, though I'm not sure on which end.