Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMODEM "Packet Type Error" 1

Status
Not open for further replies.

dbs48

Technical User
Oct 11, 2004
2
US
I am using TRANSFER(from DATALIGHT CORP)to send files to a motor controller via a laptop which is using PROCOMM+4.8
The partial script file shown below, sends a file from my laptop to the FlashDisk "C:" on the controller.
This code works great with no errors...

TRANSMIT "a:TRANSFER /R ";Initialize the transfer prog
TRANSMIT "C:"
TRANSMIT "LIST.CSV" ;Upload the LIST.CSV file
TRANSMIT "^M"
WAITFOR "..."
SENDFILE XMODEM "C:\SCM\LIST.CSV";Set upload file path
.
.
I also want to receive a file from the controller at the RAMDISK "B:" and am trying to use the following script.
However I get a "Packet Type Error" and eventually a "TIMEOUT" from the GETFILE XMODEM command.

TRANSMIT "a:TRANSFER /S ";Initialize the transfer prog
TRANSMIT "B:"
TRANSMIT "USERSEQ.SAV" ;Download the USERSEQ.SAV file
TRANSMIT "^M"
WAITFOR "..."
GETFILE XMODEM "C:\SCM\USERSEQ.SAV";Set downld file path
.
.
What does this mean and how can I get rid of the error?

Best regards,
 
Does this work successfully manually? The script looks OK to me.

I believe a packet error means that the sender and receiver were using two different types of Xmodem, usually CRC and checksum. CRC will fall back to checksum and the transfer should start, but it looks like it may not in this case.


aspect@aspectscripting.com
 
Dear KNOB,

Thanks for your info...
What you said is exactly correct about XMODEM starting in CRC mode and falling back to CHECKSUM.

And here is a helpful hint for ALL...
What I needed to do was put, WAITFOR "FOREVER" in the second piece of code(the GETFILE code). Since the fallback process takes about 45 secs, a normal WAITFOR is 30 secs and does not allow time for the fallback.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top