<?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: RTCS-multiple connections</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273040#M8458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the socket options to reduce the size of these buffers and was able to open a correspondingly larger number of sockets.&amp;nbsp; For now this will be sufficient - I may need to adjust further later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2014 16:53:20 GMT</pubDate>
    <dc:creator>mmiller</dc:creator>
    <dc:date>2014-03-11T16:53:20Z</dc:date>
    <item>
      <title>RTCS-multiple connections</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273038#M8456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a K60F120 project that is acting as an audio controller and is being queried/commanded via UDP packets.&amp;nbsp; During initial development, the RTCS stack worked great - I created a socket, bound it to the appropriate port, called listen(), then accept() for each device that connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just started testing with multiple devices and I'm seeing that I can connect 4 devices, then the 5th refuses the connection.&amp;nbsp; Disconnect one of the connected devices and the 5th can take its place.&amp;nbsp; This may be expected with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* runtime RTCS configuration for devices with small RAM, for others the default BSP setting is used */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_init = 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_grow = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCSPCB_max = 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_init = 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_grow = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_msgpool_max&amp;nbsp; = 20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_init = 4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_grow = 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _RTCS_socket_part_max&amp;nbsp; = 20;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although I can't explain why the _grow settings were ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I changed this to set the "_init"s to 10, to allow for more simultaneous connections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this didn't appear to have any effect - it still properly connects 4 requests, and refuses the 5th.&amp;nbsp; I've made similar changes in the user_config.h file, in case that superseded the runtime configuration, but it also didn't appear to have any effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I step into the RTCS_create function, I can see that the RTCS_msgpool_create calls are using the new init numbers, but it doesn't seem to change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to what I might be doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 21:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273038#M8456</guid>
      <dc:creator>mmiller</dc:creator>
      <dc:date>2014-03-03T21:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS-multiple connections</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273039#M8457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you've created a listening socket, then, when a SYN is received from a client, the TCP process (TCP/IP task) needs to allocate memory for the new client socket. The major concern is usually the Tx and Rx window size for the new socket. If you configure this for say 4 KB, 4 connected clients consume 32 KB of memory just for send/receive buffers. There are socket options that you can call on the listening socket to reduce the size of these buffers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 07:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273039#M8457</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2014-03-04T07:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS-multiple connections</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273040#M8458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the socket options to reduce the size of these buffers and was able to open a correspondingly larger number of sockets.&amp;nbsp; For now this will be sufficient - I may need to adjust further later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-multiple-connections/m-p/273040#M8458</guid>
      <dc:creator>mmiller</dc:creator>
      <dc:date>2014-03-11T16:53:20Z</dc:date>
    </item>
  </channel>
</rss>

