Difference between revisions of "Utilities"
Line 2: | Line 2: | ||
===Squelch activated Recordings=== | ===Squelch activated Recordings=== | ||
===Full featured recording script=== | ===Full featured recording script=== | ||
+ | Since we have QtRadio, we have a lot of Radios over the world, which cover the frequency spectrum nearly from dc to uhf. So it is often the case you come along some interesting, odd, seldom transmissions, which you ever wanted to record and maybe analyse later. | ||
+ | |||
+ | The supplied script will, when started: | ||
+ | *take you actual system time, | ||
+ | *ask QtRadio for the actual tuned frequency, | ||
+ | *will create a wav file stamped by the previos asked data (time+qrg.wav). | ||
+ | *will, when you stopped recording, create a spectrum image from the recorded wav file. | ||
+ | |||
+ | So, first we need some little helpful programms. Check if you already have or install: | ||
+ | |||
<pre> | <pre> | ||
sudo apt-get install sox | sudo apt-get install sox | ||
Line 8: | Line 18: | ||
sudo apt-get install hamlib-utils | sudo apt-get install hamlib-utils | ||
</pre> | </pre> | ||
+ | |||
+ | Here is the recording script. Copy it into you favorite editor. | ||
+ | |||
<pre> | <pre> | ||
##!/bin/bash | ##!/bin/bash | ||
Line 20: | Line 33: | ||
nano /usr/local/bin/qtradio_rec | nano /usr/local/bin/qtradio_rec | ||
</pre> | </pre> | ||
+ | make the script executable: | ||
+ | <pre> | ||
+ | sudo chmod +x /usr/local/bin/qtradio_rec | ||
+ | </pre> | ||
+ | Create you favorite recording location, for example: | ||
<pre> | <pre> | ||
mkdir QtRadio_Recordings | mkdir QtRadio_Recordings | ||
</pre> | </pre> | ||
+ | change to that directory: | ||
<pre> | <pre> | ||
cd QtRadio_Recordings | cd QtRadio_Recordings | ||
</pre> | </pre> | ||
− | Fire up QtRadio before starting the recording-script | + | Fire up QtRadio before starting the recording-script and start the recording script from your recording directory: |
<pre> | <pre> | ||
qtradio_rec | qtradio_rec | ||
Line 42: | Line 61: | ||
In:0.00% 00:00:21.50 [00:00:00.00] Out:164k [ | ] Clip:0 | In:0.00% 00:00:21.50 [00:00:00.00] Out:164k [ | ] Clip:0 | ||
</pre> | </pre> | ||
− | open pavucontrol and check if sox uses the right audio source. Select the following: | + | |
+ | while doing the first recording open pavucontrol and check if sox uses the right audio source. Select the following: | ||
[[File:Pavucontrol.png]] | [[File:Pavucontrol.png]] | ||
Line 60: | Line 80: | ||
[[File:Sox_spec.png|200px]] | [[File:Sox_spec.png|200px]] | ||
+ | |||
+ | Enjoy and collect :-) | ||
===Frequency Scanning=== | ===Frequency Scanning=== | ||
===Gnome Predict=== | ===Gnome Predict=== | ||
===WSPR=== | ===WSPR=== |
Revision as of 15:11, 5 April 2012
So, now you have QtRadio running. Let's have some fun and do some useful things.
Contents
Squelch activated Recordings
Full featured recording script
Since we have QtRadio, we have a lot of Radios over the world, which cover the frequency spectrum nearly from dc to uhf. So it is often the case you come along some interesting, odd, seldom transmissions, which you ever wanted to record and maybe analyse later.
The supplied script will, when started:
- take you actual system time,
- ask QtRadio for the actual tuned frequency,
- will create a wav file stamped by the previos asked data (time+qrg.wav).
- will, when you stopped recording, create a spectrum image from the recorded wav file.
So, first we need some little helpful programms. Check if you already have or install:
sudo apt-get install sox
sudo apt-get install hamlib-utils
Here is the recording script. Copy it into you favorite editor.
##!/bin/bash QRG="_$(exec rigctl -m2 -r 127.0.0.1:19090 f 2>&1)" NAME=`date +%Y%m%d%H%M` rec -r 8000 -c 1 $NAME$QRG.wav echo "processing spectrogram..." sox $NAME$QRG.wav -n spectrogram -x 1280 -y 720 -z 100 -t "$NAME$QRG.wav" -c '' -o $NAME$QRG.png echo "...done !"
nano /usr/local/bin/qtradio_rec
make the script executable:
sudo chmod +x /usr/local/bin/qtradio_rec
Create you favorite recording location, for example:
mkdir QtRadio_Recordings
change to that directory:
cd QtRadio_Recordings
Fire up QtRadio before starting the recording-script and start the recording script from your recording directory:
qtradio_rec
you should now see this output from sox:
dl6kbg@ubuntu:~$ qtradio_rec Input File : 'default' (alsa) Channels : 1 Sample Rate : 8000 Precision : 16-bit Sample Encoding: 16-bit Signed Integer PCM In:0.00% 00:00:21.50 [00:00:00.00] Out:164k [ | ] Clip:0
while doing the first recording open pavucontrol and check if sox uses the right audio source. Select the following:
if you are done with your recording, press CRTL-C to quit the script and stop the recording. The script processes the spectrum image from the just recorded wave-file:
Aborted. processing spectrogram... ...done !
when you now have a look into your recording directory, you should have something like this:
-rw-rw-r-- 1 dl6kbg dl6kbg 207665 2012-04-05 20:41 201204052041_3756000.png -rw-rw-r-- 1 dl6kbg dl6kbg 32812 2012-04-05 20:41 201204052041_3756000.wav
You now have a time and frequency stamped audio file and the spectrum view from that audio file.
Enjoy and collect :-)