UDP fread from FPGA return empty matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 System on Chip (SoC)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!