<?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>topic RTCS web server not responding with separate socket server running in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-web-server-not-responding-with-separate-socket-server/m-p/190385#M3639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the title says,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to impliment a program that hosts a web server, as well as running a TCP socket server in a seperate task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Both the Socket server and the web server run in isolation, but as soon as a client connects to the TCP server, the web server no longer detects any new queries, and stops responding to current conected sessions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to debug and can confirm that both tasks are running, so i dont think it is a memory issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using selectset(), selectall() and also niether of these calls (just creating a blocking accept() call) for the TCP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running in minimum memory mode (small ram config), and have set PCB, msg_pool and socket_part settings to allow for many simultanious socket connections (8).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hardware: M52235evb and a router, all with static IPs.&lt;/P&gt;&lt;P&gt;Software: CW10.2 eclipse, MQX 3.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of my code resembles that of the example programs included with MQX, or from the pdf files included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or ideas will be appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 14:35:25 GMT</pubDate>
    <dc:creator>jcolyn</dc:creator>
    <dc:date>2012-08-20T14:35:25Z</dc:date>
    <item>
      <title>RTCS web server not responding with separate socket server running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-web-server-not-responding-with-separate-socket-server/m-p/190385#M3639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the title says,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to impliment a program that hosts a web server, as well as running a TCP socket server in a seperate task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Both the Socket server and the web server run in isolation, but as soon as a client connects to the TCP server, the web server no longer detects any new queries, and stops responding to current conected sessions&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to debug and can confirm that both tasks are running, so i dont think it is a memory issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using selectset(), selectall() and also niether of these calls (just creating a blocking accept() call) for the TCP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running in minimum memory mode (small ram config), and have set PCB, msg_pool and socket_part settings to allow for many simultanious socket connections (8).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hardware: M52235evb and a router, all with static IPs.&lt;/P&gt;&lt;P&gt;Software: CW10.2 eclipse, MQX 3.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of my code resembles that of the example programs included with MQX, or from the pdf files included.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or ideas will be appreciated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 14:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-web-server-not-responding-with-separate-socket-server/m-p/190385#M3639</guid>
      <dc:creator>jcolyn</dc:creator>
      <dc:date>2012-08-20T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS web server not responding with separate socket server running</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-web-server-not-responding-with-separate-socket-server/m-p/190386#M3640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you adding enough sockets for your application? The web_hvac demo application is a good example of how to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look to the file:&lt;/P&gt;&lt;P&gt;C:\Program Files\Freescale\Freescale MQX 3.8\demo\web_hvac\RTCS.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It adds the next lines:&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;These lines will ensure you to have at least 4 sockets available in the system. Remember that your server will already take one, so you will have 3 remain sockets with this configuration settings. Also remember to close those sockets that already finished the client connection in the server side (your board)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;Garabo&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 22:03:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-web-server-not-responding-with-separate-socket-server/m-p/190386#M3640</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2012-09-13T22:03:21Z</dc:date>
    </item>
  </channel>
</rss>

