I send data from evaluation board MCB2300 (with LPC 2378 microprocessor) to a user's PC via Ethernet using TCP/IP protocol. A program named Ethereal shows that MCB2300 transfers 1024 bytes segment during 7-8 ms after ACK is received from PC. Why the transfer is so low? (Program sample is EasyWeb).
I send 4 Kbytes from MCB2300 to PC. Outgoing TCP data size = 1 Kbytes. 1 Kbyte was sent. The MCB2300 board got ACK from PC. The board sends next 1 Kbyte after 7-8 ms. What should I do to reduce this time? Total transfer time for 4Kbyte is 40 ms.
Are you using the Keil protocol stack? The Keil RL?
If so, what period have you got the TCP maintenance tick set to?
Our tests indicate that it is not a turtle; if you configure it to match your requirements!
Please tell me : What is TCP tick? How can I increase the TCP tick frequency without RL?
The TCP tick is the name given to the TCP internal maintenance call.
In the Keil TCP implementation, it is called by
timer_tick();
So you must call it more frequently.
I set in program: 1. wait max. 8 x 262ms for an ACK (about 2 sec.) 2. max. time to wait for an ACK of a FIN before closing TCP state-machine (about 0.5 s). What is TCP tick frequency?
I DO NOT have Keil RL.I use Keil evaluation kit. Is it possible to program Ethernet controller registers for MCB2300 (LPC 2378)?
"Is it possible to program Ethernet controller registers"
Of course it is.
But YOU need to learn what they do and how to configure them.
Regardless, the delay YOU are seeing is almost certainly not going to be with the way in which the registers have been configured. It is far more likely that YOUR code is not checking the status of the ethernet (and subsequently TCP) reception fast enough.
1.Program EasyWeb include module in which Ethernet controller initialize.This controller is configured using the registers : power, interrupts and so on. Nobody work with this program - is that so?
2. question for Gladys Slavek Each TCP packet was 1Kb, so there were 16 transmissions You wait acknowledge after each transmissions?
View all questions in Keil forum