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!