<?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 doesn't receive broadcast datagrams on subnet, bug?</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186788#M3301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recompile your Libs with the&amp;nbsp;RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST defined to 0 at user_config.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#define RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:37:59 GMT</pubDate>
    <dc:creator>DiegoSpinola</dc:creator>
    <dc:date>2020-10-29T09:37:59Z</dc:date>
    <item>
      <title>RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186783#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I am trying to send UDP frames to an MQX system using broadcast messages.&lt;/DIV&gt;&lt;DIV&gt;The MQX system has a DHCP assigned IP address of 192.168.0.5 and a netmask of 255.255.255.0.&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;UDP frames sent to 192.168.0.5 are rx ok&lt;/LI&gt;&lt;LI&gt;UDP frames sent to 255.255.255.255 are rx ok&lt;/LI&gt;&lt;LI&gt;UDP frames sent to 192.168.0.255 are &lt;U&gt;not&lt;/U&gt; rx&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV&gt;Sniffing the wire, both the 255.255.255.255 and 192.168.0.255 frames are sent with a destination MAC address of ff:ff:ff:ff:ff:ff as expected.&lt;/DIV&gt;&lt;DIV&gt;RTCS IP statistics show the UDP frames sent to 192.168.0.255 are being discarded.&lt;/DIV&gt;&lt;DIV&gt;This seems broken. I have a different platform (non-MQX) where is works.&lt;/DIV&gt;&lt;DIV&gt;Is there a setting that I'm overlooking?&lt;/DIV&gt;&lt;DIV&gt;My code looks like this:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;struct sockaddr_in any;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;udp_ethernet = socket(PF_INET, SOCK_DGRAM, 0);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;any.sin_family &amp;nbsp; &amp;nbsp; &amp;nbsp;= AF_INET;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;any.sin_port &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= MY_PORT;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;any.sin_addr.s_addr = INADDR_ANY;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;bind(udp_ethernet, &amp;amp;any, sizeof(any));&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;rlen = sizeof(raddr);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;memset(&amp;amp;raddr, 0, rlen);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt;&amp;nbsp;&lt;/SPAN&gt;len = recvfrom(udp_ethernet, data, DATA_LEN, 0, &amp;amp;raddr, &amp;amp;rlen);&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;Tom&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 00:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186783#M3296</guid>
      <dc:creator>TomR</dc:creator>
      <dc:date>2011-02-28T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186784#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional debugging info:&lt;/P&gt;&lt;P&gt;The datagram sent to 192.168.0.255 is being dropped in the function IP_route_local(). It discards the packet and increments the rx discarded count and the rx addr errors count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 04:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186784#M3297</guid>
      <dc:creator>TomR</dc:creator>
      <dc:date>2011-03-01T04:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186785#M3298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have gotten farther than me. I can't recieve a broadcast (255,255,255,255) datagram.&lt;/P&gt;&lt;P&gt;I am currently using a stream socket and wanted to add a datagram socket to recieve broadcast datagrams.&lt;/P&gt;&lt;P&gt;What settings allow the reception of UDP broadcasts ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186785#M3298</guid>
      <dc:creator>boogy</dc:creator>
      <dc:date>2011-03-03T00:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186786#M3299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code fragment above will do the trick. Nothing more is needed on the receive side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Typically the problem to send a broadcast datagram is on the sending end. Make sure that you've done a setsockopt(SO_BROADCAST) on the sending socket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you sniffed the wire and observed that the packet is being sent on the wire?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 10:59:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186786#M3299</guid>
      <dc:creator>TomR</dc:creator>
      <dc:date>2011-03-03T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186787#M3300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;@TomR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;I'm having the exact same issue , have you been able to solve it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 22:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186787#M3300</guid>
      <dc:creator>DiegoSpinola</dc:creator>
      <dc:date>2011-05-05T22:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186788#M3301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recompile your Libs with the&amp;nbsp;RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST defined to 0 at user_config.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#define RTCSCFG_IP_DISABLE_DIRECTED_BROADCAST 0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186788#M3301</guid>
      <dc:creator>DiegoSpinola</dc:creator>
      <dc:date>2020-10-29T09:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186789#M3302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to do this and it works if I build my libs in debug configuration. If I build them in release configuration I can't receive broadcast frames... I don't know what I have to do...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 08:28:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186789#M3302</guid>
      <dc:creator>dank60</dc:creator>
      <dc:date>2013-04-05T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS doesn't receive broadcast datagrams on subnet, bug?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186790#M3303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried building rtcs library&amp;nbsp; with different compiler's optimization levels : with level 1 no problem, with level 2 or superior broadcast udp reception doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 09:17:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-doesn-t-receive-broadcast-datagrams-on-subnet-bug/m-p/186790#M3303</guid>
      <dc:creator>dank60</dc:creator>
      <dc:date>2013-04-05T09:17:32Z</dc:date>
    </item>
  </channel>
</rss>

