UDP broadcasting from MATLAB

버전 1.0.0.0 (2.48 KB) 작성자: Vinod
An example of broadcasting UDP messages from MATLAB to multiple Arduinos on the same subnet.
다운로드 수: 888
업데이트 날짜: 2016/10/19

라이선스 보기

This example shows you how you can use MATLAB to broadcast UDP messages to one or more devices on a subnet. This example has an Arduino® blink an LED when it gets a specific UDP broadcast message from MATLAB on the ethernet. The Arduino, connected to the network using an ethernet shield, is programmed to respond back with an acknowledgement message which is received by MATLAB and displayed to the user. The Arduino code can be downloaded on any number of Arduinos with a modification to have different MAC addresses for each Arduino. The MATLAB code needs no modification or a priori knowledge of the number of Arduinos to be able to control them, or receive acknowledgement messages from them. If you have other applications also looking for UDP broadcast messages, these applications will also see the broadcast message from MATLAB or the Arduino.

The concept in this example can be extended to have MATLAB send data to control multiple actuators on the same network and/or receive data from multiple sensors on a network, without having a priori knowledge of the sensors and actuators on the network.

For this example to work, your network switch/router needs to allow UDP broadcast messages. Additionally, your Arduinos will need to be on the same subnet as the computer running MATLAB to receive the broadcast messages.

인용 양식

Vinod (2024). UDP broadcasting from MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/59156-udp-broadcasting-from-matlab), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Get Started with MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Updated description.