Multiple TCP connection w/ RTCS

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

Multiple TCP connection w/ RTCS

跳至解决方案
1,913 次查看
arielablumer
Contributor III

Hi,

I'm using a K66 platform which currently manages one TCP connection over Ethernet/Wi-Fi/cellular link, Now I have to support several connections to different servers, all use the same L2 method.

My question refers to the changes needed to increase number of devices. As there are no comments in the code I'm not sure which definitions refer to number of HW interfaces and which to number of RTCS devices.

Thanks,

Ariela

0 项奖励
回复
1 解答
1,686 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi  Ariela:

At the TCP level, the default RTCS setting is to allow unlimited TCP connections, it depens on your system memory.

(RTCSCFG_TCP_MAX_CONNECTIONS = 0).

At application level, some application may give additional limits.

Please refer to rtcscfg.h,  Line 611

/*
** Maximum number of simultaneous connections allowed.  Define as 0 for no limit.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_TCP_MAX_CONNECTIONS
   #define RTCSCFG_TCP_MAX_CONNECTIONS      0  
#endif

/*
** Maximum number of simultaneously connected clients
** over TCP protocol serviced by the ECHOSRV.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS
  #define RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS (4)
#endif

Regards

Daniel



-----------------------------------------------------------------------------------------------------------------------
Note:  please click the Correct or helpful if this post is helpful. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,686 次查看
arielablumer
Contributor III

Hi Daniel,

I'm using MQX 4.2.

Thanks,

Ariela

0 项奖励
回复
1,686 次查看
arielablumer
Contributor III

Hi Daniel,

Do you have any answers for me?

Thanks,

Ariela

0 项奖励
回复
1,687 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi  Ariela:

At the TCP level, the default RTCS setting is to allow unlimited TCP connections, it depens on your system memory.

(RTCSCFG_TCP_MAX_CONNECTIONS = 0).

At application level, some application may give additional limits.

Please refer to rtcscfg.h,  Line 611

/*
** Maximum number of simultaneous connections allowed.  Define as 0 for no limit.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_TCP_MAX_CONNECTIONS
   #define RTCSCFG_TCP_MAX_CONNECTIONS      0  
#endif

/*
** Maximum number of simultaneously connected clients
** over TCP protocol serviced by the ECHOSRV.
** MGCT: <option type="number"/>
*/
#ifndef RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS
  #define RTCSCFG_ECHOSRV_MAX_TCP_CLIENTS (4)
#endif

Regards

Daniel



-----------------------------------------------------------------------------------------------------------------------
Note:  please click the Correct or helpful if this post is helpful. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,686 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Ariela:

Which MQX version you are using?  MQX 4.2 or  MQX for KSDK, or other?

Regards

Daniel

0 项奖励
回复