Multiple TCP connection w/ RTCS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Multiple TCP connection w/ RTCS

ソリューションへジャンプ
1,917件の閲覧回数
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,690件の閲覧回数
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,690件の閲覧回数
arielablumer
Contributor III

Hi Daniel,

I'm using MQX 4.2.

Thanks,

Ariela

0 件の賞賛
返信
1,690件の閲覧回数
arielablumer
Contributor III

Hi Daniel,

Do you have any answers for me?

Thanks,

Ariela

0 件の賞賛
返信
1,691件の閲覧回数
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,690件の閲覧回数
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 件の賞賛
返信