Skip to content

ZModem error when file already exists

It looks like something is broken in the CRC request/response?

Downloading a file that already exists (and should have the same CRC):

Oct 24 23:08:27 Log opened
Oct 24 23:08:42 zmodem_recv_init
Oct 24 23:08:42 Sending ZRINIT
Oct 24 23:08:42 0 zmodem_recv_header frame: ZRQINIT
Oct 24 23:08:42 zmodem_recv_init received ZRQINIT
Oct 24 23:08:42 zmodem_recv_init received ZRQINIT instead of ZFILE or ZFIN
Oct 24 23:08:42 ZF0=00 ZF1=00 ZF2=00 ZF3=00
Oct 24 23:08:42 Sending ZRINIT (2 of 10)
Oct 24 23:08:42 42 Successful receipt of subpacket type: ZCRCW (42 bytes)
Oct 24 23:08:42 0 zmodem_recv_header frame: ZFILE
Oct 24 23:08:42 zmodem_recv_init received ZFILE
Oct 24 23:08:42 ZMODEM file (ZFILE) data (6 fields): 5297 12524304560 0 0 1 5297 0
Oct 24 23:08:42 Downloading acdsav2.zip (5 KBytes) via ZMODEM
Oct 24 23:08:42 fpath=/home/admin//acdsav2.zip
Oct 24 23:08:42 /home/admin//acdsav2.zip already exists (5297 bytes)
Oct 24 23:08:42 Local file size >= remote file size (5297)
Oct 24 23:08:42 Requesting CRC of remote file: acdsav2.zip
Oct 24 23:08:42 Purging data in receive buffer: XON
Oct 24 23:08:42 5297 zmodem_send_pos_header ZCRC
Oct 24 23:08:42 Calculating CRC of: /home/admin//acdsav2.zip
Oct 24 23:08:42 CRC of acdsav2.zip (5297 bytes): C8671A10
Oct 24 23:08:42 Waiting for CRC of remote file: acdsav2.zip
Oct 24 23:08:42 42 Successful receipt of subpacket type: ZCRCW (42 bytes)
Oct 24 23:08:42 0 zmodem_recv_header frame: ZFILE
Oct 24 23:08:42 0 zmodem_recv_crc Received ZFILE instead of ZCRC
Oct 24 23:08:42 Failed to get CRC of remote file
Oct 24 23:08:42 Skipping file
Oct 24 23:08:42 0 Sending ZSKIP
Oct 24 23:08:42 0 zmodem_send_pos_header ZSKIP
Oct 24 23:08:42 zmodem_recv_init
Oct 24 23:08:42 Sending ZRINIT
Oct 24 23:08:42 0 zmodem_recv_header frame: ZCRC
Oct 24 23:08:42 zmodem_recv_init received ZCRC
Oct 24 23:08:42 zmodem_recv_init received ZCRC instead of ZFILE or ZFIN
Oct 24 23:08:42 ZF0=C8 ZF1=67 ZF2=1A ZF3=10
Oct 24 23:08:42 Sending ZRINIT (2 of 10)
Oct 24 23:08:42 0 zmodem_recv_header frame: ZFIN
Oct 24 23:08:42 zmodem_recv_init received ZFIN
Oct 24 23:08:42 0 Finishing Session (Sending ZFIN)