Conexion beetwen Matlab and a remote windows machine

2 ビュー (過去 30 日間)
Smail HOUTI
Smail HOUTI 2021 年 3 月 2 日
回答済み: Rishav 2024 年 6 月 5 日
Hello,
I have a problem with udpport Read.
When I run this script on local it runs perfectly
u =udpport("LocalPort",56002,"LocalHost",'10.38.79.6');
write(u,1:20,"uint8","10.38.79.6",56002);
A= read(u,10,"uint8");
clear u
But if the data are sent from a remote machine connected to my computer with Ethernet the function "read" can not read the data and this warning is displayed :
%Warning: The specified amount of data was not returned within the Timeout period for 'readline'.
%'udpport' unable to read any data. For more information on possible reasons, see udpport Read Warnings.
knowing that the data is being received, and I can see it with wireshark.
any idea to solve this problem ?
Thanks

回答 (1 件)

Rishav
Rishav 2024 年 6 月 5 日
Hi Smail,
The error you are encountering is a known issue and it occurs if there is a mismatch between the MAC address sent by the remote device and the MAC address of your Ethernet adapter. Even though the IP address and port are correct, packets are evidently rejected because of the MAC mismatch.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by