Hector Peraza's rx320 program for Linux compiling from source

From Public wiki of Kevin P. Inscoe
Jump to navigation Jump to search

Compiling RX-320 X Windows tuner from source

Based on Fedora 22 and Gentoo. Some notes can be found at http://longwire.com/?p=47.

Prerequisites

First I found I had to install some development and headers from Fedora:

$ sudo dnf install gcc-c++ libXpm-devel xorg-x11-server-devel libX11-devel xorg-x11-proto-devel
$ sudo dnf groupinstall "X Software Development
$ sudo dnf install flex bison byacc

XClass

The X11 rx320 program requires something called Xclass. XClass will only compile on a 32-bit system. You will need xclass version 0.8.3 or higher in order to compile and run the rx320 program. The latest version is here: http://sourceforge.net/projects/xclass/. I have a download mirrored at http://pub.ke3vin.org/src/xclass-0.9.2.tar.gz.

$ tar zxvf xclass-0.9.2.tar.gz
$ cd xclass-0.9.2
$ ./configure --prefix=/usr/local
$ make clean
$ make
$ sudo make install

Building rx320

Download from http://prdownloads.sourceforge.net/xclass/rx320-0.6.1.tar.gz or I have it mirrored at http://pub.ke3vin.org/src/rx320-0.6.1.tar.gz. The latest code I found is rx320-0.6.2.tar.gz. The executable is named rx320.

There is a patch available for adding some features. Here is the main page: http://www.tux.org/~bball/rx320/. This page was printed as a PDF attached here on 2015-11-21.

File:Linux and the Ten Tec RX 320 HF Shortwave Receiver.pdf

These are the new features quoted from the website.

"I've developed a patch to one of the better open-source RX-320 GUI clients, Hector Peraza's rx320, which is based on the xclass libs. ... I was able to quickly implement scanning, a new hotkey ('q' to quit), and make some changes to the program's internal behavior (such as rollover on the low- and high-end of the frequencies supported by the radio). ... Here is what my version of rx320 looks like:"

Rx320new.jpg


"... As you can see, I created two new buttons used to scan up or down, and a new slider control to set the 'sensitivity' to the scan. The scanning basically works like this:

- scan to a new frequency in the specified direction, according to the currently selected step (1Hz - 10kHz)

- acquire five signal strength readings from the RX-320

- take a average of those readings (which will be in the range of 0-10000, with 0 = no signal and 10000 = strong local)

- compare the average to the Sens slider's selected sensitivity, which can be anywhere from 1000 to 9000

- if the average is greater than the selected sensitivity, stop scanning, else increase the frequency and try again"

The patches however are based on 0.6.1 however I found a newer version of rx321 at http://sourceforge.net/projects/xclass/files/applications/0.9.2/ which is mirrored at http://pub.ke3vin.org/src/rx320-0.6.2.tar.gz.

The patch details are at: http://www.tux.org/~bball/rx320/rx320-0.4.2.diff and also attached.

File:Rx320-0.4.2.diff.txt

Since I am using /dev/ttyS0 I edited main.cc to reflect this.

main.cc:    _device = StrDup("/dev/ttyS0");

I also found you can edit this at $HOME/.xclass/etc/rx320rc

[defaults]
device = /dev/ttyS0
$ tar zxf rx320-0.6.1.tgz
$ cd rx320-0.6.1
$ make
$ sudo cp rx320 /usr/local/bin/rx320
$ sudo chmod +x /usr/local/bin/rx320

If you do not have root access, you can install instead the application locally in your home directory, by typing

$ make install_user

That will cause the executable to be copied to $HOME/.xclass/bin and the help files to $HOME/.xclass/docs/rx320. You should then to either add $HOME/.xclass/bin to your $PATH environment variable, or to copy the rx320 executable to a suitable directory.