Borrar filtros
Borrar filtros

Conexion beetwen Matlab and a remote windows machine

1 visualización (últimos 30 días)
Smail HOUTI
Smail HOUTI el 2 de Mzo. de 2021
Respondida: Rishav el 5 de Jun. de 2024
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

Respuestas (1)

Rishav
Rishav el 5 de Jun. de 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.

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by