Re: Reading accurate size of recepts from serial port

From: Herbert Pötzl
Date: Wed Aug 27 2003 - 09:51:21 EST


On Tue, Aug 26, 2003 at 05:23:04PM +0200, Laurent Hugé wrote:
> Le Mardi 26 Août 2003 16:22, Stuart MacDonald a écrit :
> > I may be mistaken, but I believe that Windows serial drivers work the
> > same way; so whatever you meant by your previous comment that you can
> > get what you want under windows, either you can get the same thing
> > under linux, or windows doesn't behave like you think it does.
> I actually don't know how it works, because I didn't contrive it (I can only
> rely on what has been told to me by the people whom has done it). I'm only in
> charge of porting it to Linux.
> Anyway, I'm on the way to another solution (by using some property of CCSDS
> segments, and see what happens).

hmm, why not do simple framing ...
[length]<data>[length]<data> ....

best,
Herbert

> --
> Laurent Hugé.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/