User:Duggabe: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
= Understanding ZMQ Blocks =
== How to install a stable GNU Radio version 3.8 and gr-iio ==


<b>This tutorial is under construction.</b>
* download and install Ubuntu 20.04 - do <b>not</b> check "install third party software"


This tutorial presents the GNU Radio ZMQ blocks. It is a set of six Source Blocks and six Sink Blocks. The naming convention follows other source and sink blocks in that a source block provides data entering a GNU Radio flowgraph and a sink block sends data out of the flowgraph. It is a flowgraph-oriented perspective.
* from a terminal enter:
    sudo apt install gnuradio


From the [https://zeromq.org/ ZeroMQ] website: "ZeroMQ (also known as ØMQ, 0MQ, or zmq) looks like an embeddable networking library but acts like a concurrency framework. It gives you sockets that carry atomic messages across various transports like in-process, inter-process, TCP, and multicast."
* follow the steps in https://wiki.gnuradio.org/index.php/ModuleNotFoundError


== Prerequisites ==
* to install gr-iio, follow step 7 in https://github.com/duggabe/gr-control#installation
 
* [[Guided_Tutorial_GRC|'''Intro to GR usage: GRC and flowgraphs''']]
* [[Sample_Rate_Tutorial|'''Understanding sample rate''']]
 
== Types of ZMQ Blocks ==
 
The two basic groups of ZMQ blocks are those which transport stream data, and those which transport text strings. They are described below.
 
ZMQ blocks come in pairs:
* PUB - SUB
* PUSH - PULL
* REQ - REP
 
The PUB, PUSH, and REP blocks are always sink blocks; the others are source blocks. Choosing which pair to use depends on your system architecture.
* The PUB - SUB pair can be compared to broadcasting. The PUBlish sink sends out data which can be received by one or many SUBscribers.
* The PUSH - PULL is a point to point link of equal peers.
* REQuest - REPly pair is a point to point link which operates in lock-step: one REQ in gives one REP out. This case changes the perspective somewhat in that the flowgraph is acting as a server for a remote client.
 
=== Data Blocks ===
 
=== Message Blocks ===
 
== Using ZMQ Blocks ==
 
=== Separate GR flowgraphs on Same Computer ===
 
=== Separate GR flowgraphs on Different Computers ===
 
=== Python Program as Destination of ZMQ Block ===
 
=== Python Program as Source to ZMQ Block ===

Revision as of 20:18, 25 January 2021

How to install a stable GNU Radio version 3.8 and gr-iio

  • download and install Ubuntu 20.04 - do not check "install third party software"
  • from a terminal enter:
   sudo apt install gnuradio