We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
See: http://www.keil.com/forum/docs/thread8357.asp