Re: File transfer protocol for Radio Links

From: James Meyer (jmeyer_at_nowhere.net)
Date: 02/17/05


Date: Thu, 17 Feb 2005 12:56:48 GMT

On 17 Feb 2005 02:01:59 -0800, esamsalah@gmail.com wroth:

>What is the most suitable file transfer protocol when using HF,VHF
>radio link with a digital modem.
>
>I tried the Zmodem with crash recovery in MS Hyper Terminal to transfer
>relatively small files but the transmission fails at the first bad
>packet
>
>But I should restart the transfer every time
>

        You don't have to restart the whole transfer for a single failed packet.
Make up your own protocol. Divide the file up into packets that aren't too
long. Add a message number and a packet number to the front of the packet and
calculate a checksum for each packet and send that at the end. Wait for the
receiving end to acknowledge each packet. If the packet gets corrupted, then
the receiving end sends a nak or negative acknowledge. If you don't get
anything back or if you get a nak, then you re-send the packet until it gets
through.

Jim



Relevant Pages

  • Re: Actius MM10 modem
    ... telling me that "pppd exited with return value ... call retry delay timer expires) without waiting for an outbound packet. ... Shut down the link when idle-time seconds pass without receiving or ... The environment variable PPPHOME, if present, specifies the directory in ...
    (comp.os.linux.portable)
  • Re: Determining if it is "safe" to send UDP packets
    ... for receiving Udp data. ... I'm receiving from a camera lines of data at 55 Hz. ... the next packet hits the wire. ... Another problem with TCP is its assumption that a lost packet is due to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: OutOfMemoryException from Thread.Start
    ... I guess that what I'm saying is that you're implementing a resend protocol ... > of the fact that the receiving end uses a fixed 2KB buffer to receive ... >>> stream of bytes (packet) first and then sends it by calling the Socket ... >>> the client connects, the server accepts it and waits. ...
    (microsoft.public.windowsce.app.development)
  • Re: OutOfMemoryException from Thread.Start
    ... the receive process may receive an ACK and a DATA structure at ... >> stream of bytes (packet) first and then sends it by calling the Socket ... >> - On receiving, bytes are received asynchronously by calling the Socket ... >> the client connects, the server accepts it and waits. ...
    (microsoft.public.windowsce.app.development)
  • Re: OutOfMemoryException from Thread.Start
    ... > stream of bytes (packet) first and then sends it by calling the Socket ... > - On receiving, bytes are received asynchronously by calling the Socket ... > the client connects, the server accepts it and waits. ...
    (microsoft.public.windowsce.app.development)