UDP fread from FPGA return empty matrix
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am doing data transmission from FPGA SoC to PC using ethernet connection with UDP protocol. This is my code:
%%PC Side
ipL = '192.168.1.1'; portL = 8000;
%%FPGA side
ipZed = '192.168.1.10'; portZed = 7;
%%Create UDP Object
udpL = udp(ipZed, portZed, 'LocalPort', portL);
set(udpL, 'DatagramTerminateMode', 'off');
set(udpL,'InputBuffer', 1024);
%%Connect to UDP Object
fopen(udpL)
%%Receive Message
data = fread(udpL, 128, 'int32')
But on the receiver side, I've only got empty matrix, with warning: Unsuccesful read: The specified amount of data was not returned within the Timeout period.
I have changed the Timeout and InputBuffer parameter, but nothing changes. After I checked using Wireshark, it turns out that the captured data are the same with what FPGA had sent. Only MATLAB can't capture it.
Please help. Thanks before
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre HDL Verifier en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!