このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
UDP インターフェース
ユーザー データグラム プロトコル (UDP) は、インターネット プロトコル (IP) の上に階層化されたトランスポート プロトコルです。バイナリ データと ASCII データの両方の読み取りと書き込みに UDP インターフェイスを使用します。サーバー、コンピューター、機器の読み取りと書き込みが可能で、ストリーミング ビデオやオーディオ、POS システム、その他のビジネス アプリケーションなどのアプリケーションを使用できます。
関数
アプリ
UDP Explorer | Create UDP socket and communicate over networks using UDP (R2022a 以降) |
ブロック
UDP Receive | Receive data over UDP network from specified remote machine |
UDP Send | Send data over UDP network to specified remote machine |
トピック
- Create a UDP Object and View Properties
Create a UDP object to establish a connection between MATLAB® and the remote host.
- UDP Communication Between Two Hosts
These are the minimum steps required to communicate between two hosts over UDP.
- Write and Read ASCII Data over UDP
Explore ASCII write and read operations with a UDP object.
- Write and Read Binary Data over UDP
Explore binary write and read operations with a UDP object.
- Use Callbacks for UDP Communication
Enhance UDP communication by executing a callback function when a specified event occurs.
- TCP/IP and UDP Comparison
Compare the TCP/IP and UDP protocols to determine which to use.
- Transition Your Code to udpport Interface
Connect to a UDP socket using
udpport
instead ofudp
.
トラブルシューティング
Troubleshoot the UDP interface.
Resolve UDP Port Connection Errors
Troubleshoot connecting to a UDP socket.
Resolve UDP Port Warning: Unable to Read Any Data
Troubleshoot when you receive no data and you get the warning message: 'udpport' unable to read any data.
Resolve UDP Port Warning: Unable to Read All Data
Troubleshoot when you receive some data and you get the warning message: 'udpport' unable to read all requested data.