Re: Can TCP transfer more then 80kbyte/sec??
Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Selukov Andrew wrote: > This is part of my program: > task_gettimemillis(&Time_test); > printf( "Time :\r\n %lu \r\n", Time_test.millis); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Remove this line from the critical path of timing. I'm not sure how fast the C library is at parsing/converting ints. > send(handle_send, data_send, 1000, 0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Consider sending more data here. If you use TTCP, it's default transfer size is 16 megabytes. The timing resolution is restricted to 1ms, which allows approximately 10000 raw octets to transfer on 100Mbps Ethernet. > task_gettimemillis(&Time_test2); > printf( "Time :\r\n %lu \r\n", Time_test2.millis-Time_test.millis); > > Can TCP transfer more then 80kbyte/sec? Yes. The peak is probably 500K/sec at 75MHz. > Does the send function execute in another thread? No, it runs under interrupt in the background. -- -- Bryan Armstrong bryan.armstrong-6tN4nzCoH/[email protected] _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini