Conexion beetwen Matlab and a remote windows machine
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!