User:Muaddib

Understanding XMLRPC Blocks
This tutorial presents the GNU Radio XMLRPC blocks. There are two blocks in this collection: XMLRPC Client and XMLRPC Server. Both blocks have IP address/port fields while the Client block also has callback and variable fields. The blocks use the Python XMLRPC module and use a subset of the full XMLRPC spec.

XMLRPC is an XML-based Remote Protocol Control mechanism that does just that. It uses HTTP transport and allows a client to use SET commands to change parameters on a server or use GET commands to obtain the value of parameters on the server.

To understand better how GNURadio implements XMLRPC, look at the block documentation linked in the paragraph above.

To understand the XMLRPC protocol and Python implementation in detail, the reference links below are a good starting point.

Reference Links
http://xmlrpc.com

https://docs.python.org/3.8/library/xmlrpc.html

Prerequisites

 * Intro to GR usage: GRC and flowgraphs


 * Understanding ZMQ Blocks

Introduction: What does XMLRPC do in GNURadio and Why Should I Care?
WHAT: In GNURadio placing the XMLRPC Server block in a flowgraph will create an XMLRPC server that exposes all the variables in the flowgraph on the specified IP Address and Port. This allows a client to change them at runtime. The XMLRPC Client block allows the user to create a flowgraph that can control any of the parameters in a flowgraph that has the XMLRPC Server block.

WHY: In many cases, we want to adjust the variables of a GNURadio flowgraph at runtime. We usually do this by adding QT GUI Widget block (range, push button, etc). But what if you want to have the same control interface, but in a different flowgraph? XMLRPC will allow you to control all of a flowgraph's variables from a second flowgraph using HTTP. In fact, the second flowgraph doesn't even have to be on the same computer! Therefore, XMLRPC can be used to add runtime control of any flowgraph running on a remote system like a Raspberry PI, headless server or otherwise.

Building on Knowledge

 * First we will start with running the basic client/server example flowgraphs from the GNU Radio source tree (gr-blocks/examples/xmlrpc).


 * Next, we will run the server/client pair over an IP network using 2 separate computers.


 * Finally we will modify the examples to include ZMQ streaming so we can visualize the remote flowgraph's datastream in our XMLRPC Client flowgraph.


 * (OPTIONAL) As a bonus step we will build and run a remote, headless wideband RF receiver and stream the data to a Remote Controller for control and visualization.

Add Control Functionality to the NB FM Example
* *notes about streaming IQ vs Decimated I/Q *show data usage of I/Q vs. decimated I/Q
 * Run on localhost
 * Run on separate machines

Expand the Remote Controller with Streaming Data

 * audio output to ZMQ