Can dsp.UDPSender work over a network?

1 回表示 (過去 30 日間)
Matthew
Matthew 2012 年 6 月 29 日
Hello,
I'm trying to get dsp.UDPSender to send a message to another computer via UDP in real time. However, I'm having trouble using dsp.Sender/Receiver. My code is as follows
Sender computer
i=0;
send=dsp.UDPSender('RemoteIPAddress','www.xxx.yyy.zzz')
for i <30
info=uint8(255*rand(1,32));
step(send,info);
i=i+1;
pause(.5)
end
release(send)
Receiving computer
udpr=dsp.UDPReceiver(remoteIPAddress','www.xxx.yyy.zzz')
step(udpr)
while the sender is in the loop, im spamming the receiver's step call. However, all i recieve is an empty 0-by-1 matrix. both IPs are the same (sender computer's IP address). Both have LocalIPPorts of 25000. Can someone please help me to get this workig!
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 6 月 29 日
I do not see at the moment where you are defining the destination port number?
Have you tried something like WireShark to see what packets are going out?
Daniel
Daniel 2012 年 7 月 5 日
It may be necessary to run Matlab as an administrator if you are not seeing any network activity.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by