Re: Program to send/receive files via a serial port

From: Ilja Tabachnik (billy_at_arnis-bsl.com)
Date: 11/28/03


Date: Fri, 28 Nov 2003 09:45:36 +0200

Manoj K.S wrote:

> Hi all,
>
> I am planning to write a program to automate the testing of serial
> port.
> I have made a small program.
>
...skip...
>
> How a receiver program ,will know the start of file and end of file so
> that it can recreate the file with out any error?
>
> Any sample programs or links ..

IMHO a general solution isn't easy, you need some protocol
to transfer files reliably... and such protocols already exist
(X/Y/Z-Modem, Kermit, UUCP).

Take a look at (there should be the source code also):
    http://www.omen.com/ (ZModem)
    http://www.columbia.edu/kermit/ (Kermit)

HTH

-- 
Ilja.


Relevant Pages

  • abort at the end of data transfer
    ... data chunk is i.e 6. ... int init_client(int port, char *ip) { ... Protocol Info ... Stream Control Transmission Protocol, Src Port: 1031, Dst Port: ...
    (comp.lang.c)
  • abort at the end of data transfer
    ... data chunk is i.e 6. ... int init_client(int port, char *ip) { ... Protocol Info ... Stream Control Transmission Protocol, Src Port: 1031, Dst Port: ...
    (comp.unix.programmer)
  • abort at the end of data transfer
    ... data chunk is i.e 6. ... int init_client(int port, char *ip) { ... Protocol Info ... Stream Control Transmission Protocol, Src Port: 1031, Dst Port: ...
    (comp.unix.internals)
  • Re: abort at the end of data transfer
    ... Internet Protocol, Src Addr: 192.168.1.119 ... Stream Control Transmission Protocol, Src Port: ... INIT chunk (Outbound streams: 1, ...
    (comp.arch.embedded)
  • Re: Client certificate private key prompt
    ... Windows Server 2003 server without the Header manually added to the request. ... Frame 34 will be closing the connection. ... Protocol: TCP ... Transmission Control Protocol, Src Port: 2954, Dst Port: https, ...
    (microsoft.public.dotnet.framework)