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,194件の閲覧回数
userforfirsttim
Contributor I

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

ラベル(1)
0 件の賞賛
返信
1 解決策
2,014件の閲覧回数
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,015件の閲覧回数
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,014件の閲覧回数
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,014件の閲覧回数
Luis_Garabo
NXP TechSupport
NXP TechSupport

Great! good luck!

Regards,

Garabo

0 件の賞賛
返信
2,014件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

is there a screenshot for this issue?

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