Forum: GNU Radio linking Gnuradio and Gpredict ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E05cb2979b45c939ef802ebd4684d402?d=identicon&s=25 M Dammer (Guest)
on 2013-07-22 13:33
(Received via mailing list)
Is it possible to link Gnuradio and Gpredict ? I want to use Gpredict as
tracker controlling the antenna position and to pass doppler corrected
frequency data to Gnuradio.
Does any interface to Gpredict (or hamlib) exist ?
thanks for any hints, Mark
A74e1b1b5108ba51885a3746baa72f56?d=identicon&s=25 "Martin Lülf" <> (Guest)
on 2013-07-22 13:40
(Received via mailing list)

Gpredict is based on predict, which has several interfaces for Doppler
prediction. Not sure if Gpredict inherited these interfaces.


Am 22.07.2013 13:31, schrieb M Dammer:
4a41bed29f715721ff51ab969558cf9d?d=identicon&s=25 Iain Young, G7III (Guest)
on 2013-07-22 15:49
(Received via mailing list)
On 22/07/13 12:31, M Dammer wrote:

> Is it possible to link Gnuradio and Gpredict ? I want to use Gpredict as
> tracker controlling the antenna position and to pass doppler corrected
> frequency data to Gnuradio.

In a word, yes.

Can be very simple. I did it by using an XML Server in the flow graph,
and wrote a quick XML client (actually I "stole" most of it from an
example), and sent the doppler info from predict via a variable.

doppler info was received from predict using some code to query predict
using UDP. I think I just used nc to send the UDP query to predict,
recovered the shift from the reply, and sent it back to the XML Server
running within the flow graph.

Unfortunately I can't find my actual code right now, but I literally
copied an example, and added the UDP Predict clients bit. It went
something like this pseudo code (Yes, this is a mix of shell,and
python, and you need to re-write the getting doppler from predict
yourself, but you get the idea, and should give you enough)

import time
import sys
from socket import *
import xmlrpclib
import binascii

s = xmlrpclib.Server("")
while infinite == 1;
   # Grab predict doppler using UDP

The variable (lets call it doppler_shift) exists in the flowgraph,
and was multiplied appropriately and applied to the centre frequency of
a FIR filter.

You can pretty much pass any information you want in and out of a flow
graph using a XML Server/Client pair. I've done TX/RX switching, and
am currently working on telemetry decoding/display

91f1492fca5752849011ea0788dee16e?d=identicon&s=25 rajesh kd (Guest)
on 2014-03-28 15:48
(Received via mailing list)
   Can you explain in detail regarding querying the Gpredict for doppler
corrected freq. using UDP, since I novice to UDP. If possible,, can you
please post the relevant code.


View this message in context:
Sent from the GnuRadio mailing list archive at
E05cb2979b45c939ef802ebd4684d402?d=identicon&s=25 M Dammer (Guest)
on 2014-03-28 18:34
(Received via mailing list)
I just found a good starting point. This program uses hamlib, a library
that is often used to control rigs and antenna rotors and that is
supported by GPredict:
I just tested it and GPredict connects well to localhost:4575. The
server programs output shows the proper doppler corrected frequencies
etc. As it is python it can probably "converted" into a GRC block.

73 Mark
68e4cb2871861bbe64d2eb3d42ca298e?d=identicon&s=25 Alexandru Csete (Guest)
on 2014-03-28 19:36
(Received via mailing list)
If all you need is something in python you can just use pyephem

This topic is locked and can not be replied to.