Effacer les filtres
Effacer les filtres

How can I receive UDP multicast data in MATLAB using Instrument Control Toolbox?

2 vues (au cours des 30 derniers jours)
Ken Poon
Ken Poon le 23 Fév 2019
Commenté : Walter Roberson le 25 Fév 2019
I am trying to receive UDP multicast packets, but fread() timeout. Thanks.

Réponses (1)

Munish Raj
Munish Raj le 25 Fév 2019
  1 commentaire
Walter Roberson
Walter Roberson le 25 Fév 2019
That is for broadcasting UDP, not for receiving multicast. It relies upon the fact that anything sent to the highest address in your subnet is broadcast to everything on the same physical subnet (by definition these Must Not pass through a router.)
In order to receive multicast, you would either need to somehow go through a proper multicast group registration as defined in the standards, or else you would need to be using a slightly broken IP stack that permitted you to define your interface address as being one of the 224.0.0.x IP addresses, which you are not really supposed to be able to do. The alternative would be to have have privileges enough to register to receive all packets, which would include all multicast packets, and then to throw away everything you were not interested in.

Connectez-vous pour commenter.

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by