Reducing RAM usage for TCP connection

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

Reducing RAM usage for TCP connection

ソリューションへジャンプ
1,947件の閲覧回数
kfranz
Contributor III

We are using MQX 4.2.

How do I reduce the RAM usage when a TCP connection is established?

0 件の賞賛
返信
1 解決策
1,915件の閲覧回数
kfranz
Contributor III

Thank you for the information.

Unfortunately, it will be several weeks before I can get back to this project. I will try your suggestions at that time.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,916件の閲覧回数
kfranz
Contributor III

Thank you for the information.

Unfortunately, it will be several weeks before I can get back to this project. I will try your suggestions at that time.

0 件の賞賛
返信
1,935件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi

 

Usually we can reducing RAM usage at compile time.

You can refer to RTCS user-guider.pdf

chapter 8:  Compile time Options.

In what scenario you need to reducing RAM usage when a connection is established?

 

For UDP , we can change the socket tx/rx buffer size to reduce RAM usage at any time.

For TCP, we can change the socket rx/rx buffer size only before bound.

value = 256; 
setsockopt(sock, SOL_TCP,OPT_TBSIZE,&value,sizeof(value)); 
setsockopt(sock, SOL_TCP,OPT_RBSIZE,&value,sizeof(value));

 

So I would suggest you reduce RAM usage before TCP connection is established.

 

Regards

Daniel

 

Regards

Daniel

  

0 件の賞賛
返信