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

LPC2368 & RL-TCPnet

Hi

I am experimenting with the MCB2300 using Keil MDKK3.11, RL-ARM RTOS and RL-TCPNet.

I have written a simple application using the RL-ARM pre-emptive multitasker and the LPC23_EMAC.c ethernet driver (in interrupt mode) with a 10mS RTOS tick. The application consists of 4 tasks.

1. Network timer task, priority 30, runs every 100ms
2. TCP Application layer task, priority 20
3. LED Task,priority 20 - flashes board LEDs every 1000mS
4. TCPnet task - prioirty 0.

My TCP application layer consists of a TCP Server connection to a UNIX host. The application polls the Unix host evey 90 seconds and receives a simple response.

My issues concern the operation of RL-TCPnet. Prior to my TCP connection being established, I can ping the MCB2300 and the MCB2300 will respond in <10ms (as reported by the DOS ping command). Whenever the TCP connection is establised the ping responses from the MCB2300 vary between 10mS and >500ms (more times than not, the ping response is of the order of 100's of mS).

I have also noticed that TCP packet data being returned by the UNIX host to the MCB2300 is very slow. For example, a typical transaction sequence consists of the following:-
TCP DATA packet from the MCB2300 to the UNIX host
TCP ACK (from UNIX host)
TCP DATA (from UNIX host)
TCP ACK from MCB2300.

Using etherreal, I have timed this sequence and typical times for the complete transaction are of the order of
1 mS. However, the complete transaction timings in my application are of the order of 2000mS. It appears the the LPC2368 is very slow to see the TCP ACK and TCP DATA response from the UNIX host.

If I change the period of polling from 90seconds to <4 seconds the TCP ACK and TCP DATA responses are more or less instantaneous i.e., they are almost similar to the times reported by Etherreal.

Has anyone else experienced problems like this and if so how did you resolve the problem.

Any help would be greatly appreciated.

0