Multiple TCP connection w/ RTCS

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

Multiple TCP connection w/ RTCS

Jump to solution
817 Views
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 Kudos
1 Solution
590 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
590 Views
arielablumer
Contributor III

Hi Daniel,

I'm using MQX 4.2.

Thanks,

Ariela

0 Kudos
590 Views
arielablumer
Contributor III

Hi Daniel,

Do you have any answers for me?

Thanks,

Ariela

0 Kudos
591 Views
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 Kudos
590 Views
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 Kudos