MQX Performance problem after open a socket

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MQX Performance problem after open a socket

2,426 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

730 次查看
prodsp
Contributor I

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

0 项奖励
回复