Conexion beetwen Matlab and a remote windows machine

조회 수: 3 (최근 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