Zynq Radio Software Interface Model: UDP send/receive blocks not working
Afficher commentaires plus anciens
Working through the HW/SW Co-Design QPSK Transmit and Receive Using Analog Devices AD9361/AD9364 reference design, I have loaded the image onto the FPGA of an ADI RF SOM - ADRV9361.
I'm now trying to run the 'software interface model' supplied on the same page, along with the UDP_HostPrintout model for data reception, but I'm having trouble with the UDP send/receive blocks.
Everything runs nicely with no errors and I've got a busy blinking light on Ethernet port 1 of the carrier board, but I can not get the UDP send/receive blocks to do anything - I can not view the data that is supposedly being sent and received.
I think I've got the IP addresses right - Using the default 192.168.3.2 for the board and 192.168.3.1 for the host, and according to 'netstat' the port '25000' is not already in use.
When I run the simulation and call 'netstat' in 'cmd' there are no new UDP connections appearing and there is no data showing in the Diagnostics Viewer.
Am I supposed to be using the second Ethernet port on the carrier board? If so how do I first configure that?
Otherwise is there something else that I'm missing?
I have the following toolboxes/addons installed:
MATLAB Version 9.4 (R2018a)
Simulink Version 9.1 (R2018a)
Communications System Toolbox Version 6.6 (R2018a)
DSP System Toolbox Version 9.6 (R2018a)
Embedded Coder Version 7.0 (R2018a)
Fixed-Point Designer Version 6.1 (R2018a)
HDL Coder Version 3.12 (R2018a)
HDL Verifier Version 5.4 (R2018a)
LTE HDL Toolbox Version 1.1 (R2018a)
LTE System Toolbox Version 2.6 (R2018a)
MATLAB Coder Version 4.0 (R2018a)
Phased Array System Toolbox Version 3.6 (R2018a)
RF Blockset Version 7.0 (R2018a)
RF Toolbox Version 3.4 (R2018a)
Signal Processing Toolbox Version 8.0 (R2018a)
Simulink Coder Version 8.14 (R2018a)
Stateflow Version 9.1 (R2018a)
WLAN System Toolbox Version 1.5 (R2018a)
Any help would be greatly appreciated!
Kind regards
Harry
EDIT: The receive side appears to work - when I give it an active port number listed in netstat, it sends garbled text to the Diagnostics Viewer.
Réponse acceptée
Plus de réponses (1)
Paul
le 20 Août 2018
1 vote
Thanks for the details Harry.
About the loopback cable: you will have enough leakage from the unconnected antennas for them to work.
So there are two separate issues:
- The first problem where no data is received on MATLAB via UDP;
- The new one where ^^^^^^^^ is being printed in the log.
1. The only thing I can suggest is to check if you don't have any firewall blocking the communication between the host and the target via UDP.
2. ^^^^^ means some non-valid data is received. The length of each line on the log does not mean anything at that point as the model knows what is the expected data size. If the UDP connection was working, you would be able to see these ^^^^^ characters on the diagnostic viewer.
Have you edited the log file? It looks like you have truncated some lines at the end as the line length changes only a dozen lines after the acquisition started. That would be suprising to be able to switch Tx so quickly. If you didn't edit the log, that means the acquisition is very slow.
Could you attach your generated bitstream to your next message, so that we can try it here please? You will find it in 'hdl_prj\vivado_ip_prj\vivado_prj.runs\impl_1\system_wrapper.bit.
1 commentaire
Hewy.j
le 21 Août 2018
Catégories
En savoir plus sur Communications Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!