XMLRPC Server

From GNU Radio
Jump to navigation Jump to search

This block will start an XMLRPC server.

The server provides access to the run, start, stop, wait functions of the flow graph.

The server also provides access to the variable callbacks in the flow graph. Ex: If the variable is called freq, the function provided by the server will be called set_freq(new_freq).

Parameters

(R): Run-time adjustable

Address
Address the server will be listening at
default: localhost
Port
Port the server will be listening at
default: 8080

Example Flowgraph

This flowgraph is for version 3.9+

The 'siggen_xmlrpc_server.grc' flowgraph should be used in conjunction with the 'siggen_controller_xmlrpc_client.grc' flowgraph. Both are located in the 'gr-blocks/examples/xmlrpc' directory in GNURadio. Upon execution this flowgraph generates a sinusoid, adds Gaussian noise and plots the result signal in both time and frequency domains. The XMLRPC Server block enables all variables in the flowgraph to be controlled via XMLRPC through the IP address and port set within the block. If using the XMLRPC Client flowgraph (seeXMLRPC_Client) for control, when the slider is moved the XMLRPC Server Block receives SET messages from the client side. The SET commands will change the value of the frequency ('rmt_freq') variable in the server flowgraph. This will be reflected in the GUI window.

Xmlrpc server.png

Source Files

Block definition
[1]