<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software SolutionsのトピックRe: Reducing RAM usage for TCP connection</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1211810#M18597</link>
    <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;Unfortunately, it will be several weeks before I can get back to this project. I will try your suggestions at that time.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 14:59:12 GMT</pubDate>
    <dc:creator>kfranz</dc:creator>
    <dc:date>2021-01-14T14:59:12Z</dc:date>
    <item>
      <title>Reducing RAM usage for TCP connection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1207658#M18581</link>
      <description>&lt;P&gt;We are using MQX 4.2.&lt;/P&gt;&lt;P&gt;How do I reduce the RAM usage when a TCP connection is established?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 18:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1207658#M18581</guid>
      <dc:creator>kfranz</dc:creator>
      <dc:date>2021-01-06T18:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing RAM usage for TCP connection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1208074#M18589</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually we can reducing RAM usage at compile time.&lt;/P&gt;
&lt;P&gt;You can refer to RTCS user-guider.pdf&lt;/P&gt;
&lt;P&gt;chapter 8:&amp;nbsp; Compile time Options.&lt;/P&gt;
&lt;P&gt;In what scenario you need to reducing RAM usage when a connection is established?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For UDP , we can change the socket tx/rx buffer size to reduce RAM usage at any time.&lt;/P&gt;
&lt;P&gt;For TCP, we can change the socket rx/rx buffer size only before bound.&lt;/P&gt;
&lt;PRE&gt;value = 256; 
setsockopt(sock, SOL_TCP,OPT_TBSIZE,&amp;amp;value,sizeof(value)); 
setsockopt(sock, SOL_TCP,OPT_RBSIZE,&amp;amp;value,sizeof(value));&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I would suggest you reduce RAM usage before TCP connection is established.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 07:09:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1208074#M18589</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-01-07T07:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reducing RAM usage for TCP connection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1211810#M18597</link>
      <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;Unfortunately, it will be several weeks before I can get back to this project. I will try your suggestions at that time.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 14:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Reducing-RAM-usage-for-TCP-connection/m-p/1211810#M18597</guid>
      <dc:creator>kfranz</dc:creator>
      <dc:date>2021-01-14T14:59:12Z</dc:date>
    </item>
  </channel>
</rss>

