[ECOS] Linux Synthetic target device support!

Mohammed Illyas Mansoor mansoor@cdotb.ernet.in
Mon Jan 3 05:59:00 GMT 2000


Jesper Skov wrote:

> >>>>> "Mohammed" == Mohammed Illyas Mansoor <mansoor@cdotb.ernet.in> writes:
> Mohammed>     Ok I found ser_filter.cpp it was in
> Mohammed> <base>/tools/src/eCosTest dir made ser_filter and tested
> Mohammed> serial3-5.
>
> Mohammed>     serial3 is passing only if BINARY data is within 120
> Mohammed> range ser_filter is timing out if data is more than 120.
> Mohammed> <cut> [f] 0000 40 42 49 4e 41 52 59 3a '@BINARY:' [f] 0008
> Mohammed> 31 32 38 3a 31 21 .. .. '128:1!'  [f] Dispatching command
> Mohammed> BINARY.  [f] **** Timed out while reading -- resuming as
> Mohammed> null filter [f] Data received 127 bytes (of 1) from target:
> Mohammed> </cut>
>
> Interesting. It may be because there's a buffer overflow, or a problem
> with performance. Sorry, I've forgotten what hardware you are using -
> but try to force the test to run at 9600 baud to see if it makes a
> difference (see serial4.c for similar hacks for AEB).

    I figured out the problem, I had allocated  BUFSIZE for cbuf as 128,
once
I increased it to 2048 it started working, yes it was actually a buffer
overflow
problem.

    Now serial3 test is also passing.

    Thanks Jesper for your suggestions :-).
                                                                       
--With
Regards,
                                                                           
M.
I. Mansoor.


More information about the Ecos-discuss mailing list