[En-Nut-Discussion] Time Calculation for TCP Data Transfer (want to reduce response time)

Ralph Mason ralph.mason at telogis.com
Tue Jun 26 20:19:26 CEST 2007


for quick response data drops use UDP instead.



> MUHAMMAD AZEEM AZAM wrote:
> > Hi
> >   I have a client on PC and TCP Server on AVR Microcontroler (using
> Charon-2 Board).
> >   I want to calculate the time for 128 Bytes to send.
> >
> >   1) i have used NutGetMillis(), NutGetTickCount().
> >       I have called NutGetMillis() before sending 128 Bytes and after
> "fwrite", i again called      NutGetMillis() to reterive the value. The
> value i got before sending the data is same as after sending the data. After
> some time when i keep sending and receiving there comes a difference of 1ms.
> This thing is from microcontroller side (ie time for microcontroller to send
> 128 Bytes of data)
> >
> >   2) Now i have used oscilloscop to measure the time.
> >       The time to send the command from PC and the reaction of
> microcontroller(to send 128 Bytes) is taking 50ms.
> >
> >   3) if i am using for loop on pc side to send and receive data 5 or
> more times than
> >       "time to next transfer is 400ms".
> >
> >   The problem is that i want short response times. how is that
> achievable.
> >   If any one need source code i can post it as well.
> >
> >   Thanks
> >   Bye
> >
> >
> >
> >
> > ---------------------------------
> > Ahhh...imagining that irresistible "new car" smell?
> >  Check outnew cars at Yahoo! Autos.
> > _______________________________________________
> > http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> >
> >
> >
>
> --
> -----------------------------------------------------------------
> Brett Abbott, Managing Director, Digital Telemetry Limited
> Email: Brett.Abbott at digital-telemetry.com
> PO Box 24 036 Manners Street, Wellington, New Zealand
> Phone +64 (4) 462-3439  Mobile +64 (21) 656-144
> ------------------- Commercial in confidence --------------------
>
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>



More information about the En-Nut-Discussion mailing list