<?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 Re: UDP communication in MQX in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631651#M16989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. It is working now. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2016 11:41:34 GMT</pubDate>
    <dc:creator>cerma</dc:creator>
    <dc:date>2016-10-20T11:41:34Z</dc:date>
    <item>
      <title>UDP communication in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631647#M16985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there any example for this use case:&lt;/P&gt;&lt;P&gt;Mask: 255.255.255.0&lt;BR /&gt; My device IP: 192.168.0.1&lt;BR /&gt; &lt;BR /&gt; I need UDP communication working as client to server. My device would be server.&lt;BR /&gt; I am receiving packets from port 5000 and any IP within same network as my device. This packet arrives with source port (always same) 5001.&lt;BR /&gt; After I process incoming message, I have to send response to IP address from which I have got received request with source port set to 5000 (my receive port) and 5001 as destination port (port that I have get from request).&lt;/P&gt;&lt;P&gt;Is there any example for this? Do I need 2 sockets for this or one is enough? I have found example AN4644CW and there are two sockets for something familiar to my problem but when I have tried to change it for my needs, communication always got stuck. Currently I am using 2 sockets as it in example and closing and reopening them but it does not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:57:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631647#M16985</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2016-10-13T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: UDP communication in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631648#M16986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaroslave:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you only need one socket to communicate.&lt;/P&gt;&lt;P&gt;I made a simple udp server demo , I modified this demo based on Freescale_MQX_4_2\rtcs\examples\eth_to_serial, you can replace with the attached files.&lt;/P&gt;&lt;P&gt;The udp server source port is 5000, it can receive all packets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need to receive packets only with port 5001, you can change this line in demo.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server_socket_addr.sin_addr.s_addr = INADDR_ANY;&amp;nbsp; -&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server_socket_addr.sin_addr.s_addr = 5001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 07:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631648#M16986</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-10-17T07:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: UDP communication in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631649#M16987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I think you forgot to attach files with your example. Could you please attach them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631649#M16987</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2016-10-17T12:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: UDP communication in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631650#M16988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached demo.c and config.h already,&amp;nbsp; if you can't download it or you can't see them, you can submit a request&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329745"&gt;How to submit a new question for NXP Support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test result is as following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4566iA4223BA7E9EB2B1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardd&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 13:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631650#M16988</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-10-17T13:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: UDP communication in MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631651#M16989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. It is working now. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/UDP-communication-in-MQX/m-p/631651#M16989</guid>
      <dc:creator>cerma</dc:creator>
      <dc:date>2016-10-20T11:41:34Z</dc:date>
    </item>
  </channel>
</rss>

