It is W5500,it can’t send data by muticast.
for example :the muticast ip is 224.0.0.1; port is 18688;
u8 MutiCastIp={224,0,0,1};
u16 MutiCastPort=18688;
u8 MutiCastStr=“some data”;
I first creat socket as follow:
socket(6, Sn_MR_UDP, MutiCastPort, Sn_MR_MULTI);
and then send the data:
sendto(6, (uint8_t *)MutiCastStr, sizeof(MutiCastStr), MutiCastIp, MutiCastPort);
I use a software tool to lisen the port,but it can’t receive any data.
Thanks!
I solved the problem,thanks.
how you solved the problem.
I use this code:
u8 MutiCastIp={234,6,6,7};
u16 MutiCastPort=3000;
u8 MutiCastStr[1024];
I first creat socket as follow:
socket(3, Sn_MR_UDP, MutiCastPort, Sn_MR_MULTI);
and then send the data:
len =sendto(3, (uint8_t *)MutiCastStr, 536, MutiCastIp, MutiCastPort);
there is no error of sending len = 536,
but I can not receive any data on PC
Regards,
Smashing
Hi, smashing
I think you should check PC side.
Or router could block broad cast packet.