This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Data Rate with easyweb STR91FW44

Hi,

i'm programming with the easyweb example. I have made an active connection and tried to send data to a windows socket.

This is my main loop:

while (SocketStatus & SOCK_ACTIVE ) // read the quote from memory { // by using the hardware-debugger DoNetworkStuff(); if (SocketStatus&SOCK_DATA_AVAILABLE) //Receive function { TCPReleaseRxBuffer(); }

if (SocketStatus & SOCK_TX_BUF_RELEASED) { //Send function memcpy(TCP_TX_BUF, Testdaten,800); TCPTxDataCount = 800; //sizeof(Testdaten); TCPTransmitTxBuffer(); // xfer buffer }

If the memcpy function and the TCPTX_DataCount are set in the receive loop and the controller gets information the transfer speed to the pc is up to 170kb/s . If the memcpy function and the TCPTX_DataCount are set as shown in the Send function the Transfer Rate ist only up to 4kb/s.

Why does this happen?

Björn

0