MQX Performance problem after open a socket

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX Performance problem after open a socket

1,960 Views
rainer22
Contributor I

Hello

I got a problem:

After i have opened and closed a Socket, the whole system is much slower than before.

It seemd like a Interrupt is permanently pending, but it doesn't.

The Task, that contains my socket, sleep after shutdown my accepted socket,

but some influence infects the whole MQX.

 

I start Ethernet :

_RTCSQUEUE_base = DriverTaskTCPIPMBXQ_Base_No;

//Netzwerktreiber laden

_RTCSTASK_priority = 9;

_RTCSPCB_max = 20;

_TCP_bypass_rx = true;

_TCP_bypass_tx = true;

rtcsResult = ENET_initialize(ENET_DEVICE, m_Mac_Addr, 0, &ehandle);

rtcsResult = ENET_initialize(ENET_DEVICE, m_Mac_Addr, 0, &ehandle);

rtcsResult = RTCS_if_bind(ihandle, m_IPAddress, m_SubnetMask);

 

And accept the Socket after selectset:

remotesock = RTCS_selectset(m_socklist, m_sockCount, 0);

m_childsock = accept(remotesock, &TCPIP::ms_Adr.EchoSock[0].Addr, &rlen);

setsockopt(m_childsock, SOL_TCP, OPT_RECEIVE_NOWAIT, &opt_value, opt_length);

setsockopt(m_childsock, SOL_TCP, OPT_SEND_NOWAIT, &opt_value, opt_length);

 

I am using MQX 2.5 and RTCS lite on a ColdFire Proc 5235.

Labels (1)
Tags (1)
0 Kudos
1 Reply

264 Views
prodsp
Contributor I

Did you try to use the MQX 3.4 from Freescale website ?

0 Kudos