Skip to content

UDP Multicast example sketch #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gerardwr opened this issue Apr 13, 2015 · 4 comments
Closed

UDP Multicast example sketch #68

gerardwr opened this issue Apr 13, 2015 · 4 comments

Comments

@gerardwr
Copy link

Hi,

Now that the bug in the UDP library is solved ( issue #64) I created a sketch for bidirectional UDP Multicast.

It's partly working.

Similar to issue #64 the sketch receives the Multicast packet OK, but a sent confirmation packet is not received by the client.

Perhaps I made an error in the sketch (I'm not a genius in network communication and the Multicast functions are not documented) , or could it be that there's a remaining bug in the Multicast part of the library.

I opened a topic with details and the sketch here:
http://www.esp8266.com/viewtopic.php?f=29&t=2464&p=14358#p14358

Any solutions or suggestions?

@igrr
Copy link
Member

igrr commented Apr 13, 2015

Gerard, from the screenshot posted on the forum I see you are using netcat to test UDP multicast. But netcat doesn't support multicast, i.e. it doesn't know that it needs to join an IGMP group. This explains why you are not receiving any packets on the host side.
There are some equivalents of netcat which do support multicast though (mnc, multicat), perhaps you could try them out?

@gerardwr
Copy link
Author

Hi Ivan,

Thanks for the hint, will try another client, and report back.

@gerardwr
Copy link
Author

Ivan,

As usual, you're right ;-)

I replaced nc by the application Packetsender (available for OSX, Linux, Windows, IOS, etc at packetsender.com) and the confirmation package sent by the ESP is received.

So you fixed the UDP bug for Multicast too !

I updated the topic with an updated screen dump and working sketch, and this issue can be closed, right?

Thanks for your help.

@igrr
Copy link
Member

igrr commented Apr 13, 2015

Great, nice to hear that! Thanks for testing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants