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 Center および File ExchangeSystem on Chip (SoC) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by