How can I receive UDP multicast data in MATLAB using Instrument Control Toolbox?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to receive UDP multicast packets, but fread() timeout. Thanks.
댓글 수: 1
Walter Roberson
2019년 2월 23일
I suspect it is not implemented. See https://www.mathworks.com/matlabcentral/answers/91896-is-it-possible-to-connect-to-a-udp-multicast-using-the-instrument-control-toolbox-2-2-r14sp2
xpc (Simulink Real-Time) UDP receive block does support multicast though.
답변 (1개)
Munish Raj
2019년 2월 25일
댓글 수: 1
Walter Roberson
2019년 2월 25일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Development Computer Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!