Serial Extender ZMODEM transfer failure using pRecvFile
Keywords: pRecvFile
Question:
I have been trying to automate a BBS transfer sequence without success. The connect and login exchanges work fine as do the selection exchanges. But when I get to the pRecvFile command the "Transfer Statistics" window opens, the data fields flicker without ever changing (the transfer rate shows as 4294965676), the error count goes to 10, then the function returns a 0. I have tried several protocols with and without the transfer status option turned on. I have tried several BBS sites. I am using serial extender version 20019. The following is a sample sequence:BoxText("Sending file name") pPutLine(port,"bisys.zip") BoxText("Waiting for signoff option") rs=pWaitFor(port,"download?"," ",0,3000) BoxText("Sending Y") pPutline(port,"Y") BoxText("Waiting for begin indicator") rs=pWaitFor(port,"**"," ",0,3000) BoxText("Receiving File") xx=pRecvFile(port,"zmodem","bisys.zip",1,1)Am I overlooking something or is this a matter of protocol incompatibility?Answer:
Looks vaguely ok. I would get rid of the:BoxText("Waiting for begin indicator") rs=pWaitFor(port,"**"," ",0,3000)lines and let the zmodem receive worry about it.Also I would suspect something in the initial connection parameters, close but not perfect. Maybe 7 bit text connection when zmodem needs an 8 bit connection or something.
Version 21016 of the Serial extender introduced a pComModify function that allows you to change the parity/format settings before and after receiving and sending a file.
Article ID: W12574Filename: pRecFile Failure.txt