This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Big archives from serial port


> Hi all,
> 	I'm trying to download a binary archive of 64kb using
> serial port. my problem is that i lost some byte.
> 	The baudrate, the word lenght, the stop bit are ok,
> it seems to be all well configured.
> 	I try to sincronize the emiter and receiver but I
> can't receive the acknowleged amount of bytes.
> 	My system is a falcom F35-XXL and I tryed to do this
> with comlib and cyg_io calls. Anyone can help me??
> there is any method to do this?

bytes can be lost on serial, so you need some sort of protocol which
makes sure data gets transmitted unless you media is completely error
free. Look at how redboot does it in redboot/current/src/xyzmodem.c,
using the'standard' X/Ymodem protocols.

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]