UDP fread from FPGA return empty matrix

조회 수: 1 (최근 30일)
Angga Putra
Angga Putra 2016년 8월 31일
답변: danil liu 2021년 6월 7일
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

답변 (1개)

danil liu
danil liu 2021년 6월 7일
I have the same question:(

카테고리

Help CenterFile Exchange에서 System on Chip (SoC)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by