<div>
Unfortunately, I get exactly the same result.
</div><div><br></div><div>No data received on RPi when using multicast group.</div><div>It’s very strange as data published over multicast from RPi arrives at the destination. Only RPi isn’t getting any data.</div><div>Just to make sure I was not having any general UDP issues - this is is the no multicast server running on RPi:</div><div><br></div><div><div><font face="Monaco">-module(udp_nomulticast).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">-behaviour(gen_server).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">-export([start_link/0, stop/0]).</font></div><div><font face="Monaco">-export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">start_link() -></font></div><div><font face="Monaco"> gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">stop() -> gen_server:cast(?MODULE, stop).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">init([]) -></font></div><div><font face="Monaco"> Port = 6666,</font></div><div><font face="Monaco"> IfaceIp = {0,0,0,0},</font></div><div><font face="Monaco"> {ok, OverlaySocket} = gen_udp:open(Port, [ binary,</font></div><div><font face="Monaco"> {ip, IfaceIp} ] ),</font></div><div><font face="Monaco"> { ok, OverlaySocket }.</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">handle_info({udp, _ClientSocket, _ClientIp, _ClientPort, Msg}, State) -></font></div><div><font face="Monaco"> error_logger:info_msg("Received multicast data: ~p", [ Msg ]),</font></div><div><font face="Monaco"> {noreply, State}.</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">handle_call( _, _From, State) -></font></div><div><font face="Monaco"> { reply, ok, State }.</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">code_change(_OldVsn, State, _Extra) -></font></div><div><font face="Monaco"> {ok, State}.</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">terminate(_, _) -></font></div><div><font face="Monaco"> ok.</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">handle_cast(stop, LoopData) -></font></div><div><font face="Monaco"> {noreply, LoopData}.</font></div></div><div><br></div><div>And the client sending to it from the dev box (RPi IP on the local network is 10.128.30.23):</div><div><br></div><div><div><font face="Monaco">-module(nmcc).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">-export([run/0]).</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">run() -></font></div><div><font face="Monaco"> Port = 6666,</font></div><div><font face="Monaco"> IfaceIp = {0,0,0,0},</font></div><div><font face="Monaco"> RPiIp = {10,128,30,23},</font></div><div><font face="Monaco"> {ok, OverlaySocket} = gen_udp:open(Port, [ binary,</font></div><div><font face="Monaco"> {ip, IfaceIp} ] ),</font></div><div><font face="Monaco"> gen_udp:send( OverlaySocket, RPiIp, Port, <<"some random datas">> ),</font></div><div><font face="Monaco"> gen_udp:close( OverlaySocket ).</font></div></div><div><br></div><div>This is arriving just fine:</div><div><br></div><div><div><font face="Monaco">pi@raspberrypi ~ $ erl</font></div><div><font face="Monaco">Erlang/OTP 17 [erts-6.4] [source] [smp:4:4] [async-threads:10] [kernel-poll:false]</font></div><div><font face="Monaco"><br></font></div><div><font face="Monaco">Eshell V6.4 (abort with ^G)</font></div><div><font face="Monaco">1> c("udp_nomulticast").</font></div><div><font face="Monaco">{ok,udp_nomulticast}</font></div><div><font face="Monaco">2> udp_nomulticast:start_link().</font></div><div><font face="Monaco">{ok,<0.40.0>}</font></div><div><font face="Monaco">3></font></div><div><font face="Monaco">=INFO REPORT==== 16-May-2015::15:05:35 ===</font></div><div><font face="Monaco">Received multicast data: <<"some random datas”>></font></div></div><div><br></div><div>I’m often jumping too fast to conclusions but I genuinely believe this could be some Erlang related problem but I am not sure how to diagnose it.</div><div><br></div><div>I tried multiple combinations, binding the server to {0,0,0,0} or multicast IP, different multicast groups. Result is always the same, traffic not arriving at RPi when using multicast UDP. What’s the best way to elevate? File a bug?</div><div>
<p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
</p><p style="font-family: Helvetica; font-size: 10pt; margin-bottom: 0cm;">
</p><p style="margin-bottom: 0cm;">
</p><p style="margin-bottom: 0cm"><font color="#000000"><font face="Helvetica, sans-serif"><font style="font-size: 9pt">Kind
regards,
<br>Radek
Gruchalski<br>
</font></font></font><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><a href="mailto:radek@gruchalski.com">radek@gruchalski.com</a><a href="mailto:radek@gruchalski.com">
</a></font></font><font color="#0084d1"><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><br></font></font></font><a href="http://de.linkedin.com/in/radgruchalski/"><font color="#0084d1"><font face="Helvetica, sans-serif"><font style="font-size: 9pt">de.linkedin.com/in/radgruchalski/</font></font></font></a><font color="#000000"><font face="Helvetica, sans-serif"><font style="font-size: 9pt"><br><br></font></font></font><font color="#878787"><font face="Helvetica, sans-serif"><font style="font-size: 8pt"><b>Confidentiality:<br></b></font></font></font><font color="#878787"><font face="Helvetica, sans-serif"><font style="font-size: 8pt">This
communication is intended for the above-named person and may be
confidential and/or legally privileged.<br>If it has come to you in
error you must take no action based on it, nor must you copy or show
it to anyone; please delete/destroy and inform the sender
immediately.</font></font></font></p></div>
<p style="color: #A0A0A8;">On Saturday, 16 May 2015 at 08:25, Max Lapshin wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr"><div>Replace <span style="font-family:Monaco;font-size:12.8000001907349px">{ip, MulticastIp}, with </span><span style="font-family:Monaco;font-size:12.8000001907349px">{ip, IfaceIp},</span></div></div>
</div></div></span>
</blockquote>
<div>
<br>
</div>