Conexion beetwen Matlab and a remote windows machine

2 views (last 30 days)
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

Answers (1)

Rishav
Rishav on 5 Jun 2024
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.

Tags

Community Treasure Hunt

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

Start Hunting!