accept call returns error with the code 1122. Not able to connect more than 1 clients .

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

accept call returns error with the code 1122. Not able to connect more than 1 clients .

跳至解决方案
2,183 次查看
userforfirsttim
Contributor I

accept call returns error with the code 1122. Not able to connect more than 1 clients .

标签 (1)
0 项奖励
回复
1 解答
2,003 次查看
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Preethi,

The errors means that you have no longer sockets available for accepting the incoming connection. Form rtcs.h file:

#define RTCS_ERROR_BASE                         (0x1000)

#define RTCSERR_OUT_OF_SOCKETS          (RTCS_ERROR_BASE|0x122)

Try to increase the number of sockets the system is allowed to have; for instance, in the web_hvac example we have this:

_RTCSPCB_init = 4;

_RTCSPCB_grow = 2;

_RTCSPCB_max = 20;

_RTCS_msgpool_init = 4;

_RTCS_msgpool_grow = 2;

_RTCS_msgpool_max  = 20;

_RTCS_socket_part_init = 4;

_RTCS_socket_part_grow = 2;

_RTCS_socket_part_max  = 20;

I hope this helps you.

Regards,

Garabo

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,004 次查看
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Preethi,

The errors means that you have no longer sockets available for accepting the incoming connection. Form rtcs.h file:

#define RTCS_ERROR_BASE                         (0x1000)

#define RTCSERR_OUT_OF_SOCKETS          (RTCS_ERROR_BASE|0x122)

Try to increase the number of sockets the system is allowed to have; for instance, in the web_hvac example we have this:

_RTCSPCB_init = 4;

_RTCSPCB_grow = 2;

_RTCSPCB_max = 20;

_RTCS_msgpool_init = 4;

_RTCS_msgpool_grow = 2;

_RTCS_msgpool_max  = 20;

_RTCS_socket_part_init = 4;

_RTCS_socket_part_grow = 2;

_RTCS_socket_part_max  = 20;

I hope this helps you.

Regards,

Garabo

0 项奖励
回复
2,003 次查看
userforfirsttim
Contributor I

Thank you very much Garabo, setting of the RTCS variables helped to accept multiple connections. I set the "grow" variables to 4 so that it accepts 4 simultaneous connections.

Thanks once again

 

Thanks and regards

Preethi Sreenath

0 项奖励
回复
2,003 次查看
Luis_Garabo
NXP TechSupport
NXP TechSupport

Great! good luck!

Regards,

Garabo

0 项奖励
回复
2,003 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

is there a screenshot for this issue?

0 项奖励
回复
2,003 次查看
userforfirsttim
Contributor I

It accepts the first client. When trying to connect second client, accept returns with the error 0x1122 which is out of sockets. Do we have to change anything in the RTCS lib

0 项奖励
回复