1) Download the following Library by using git git clone https://github.com/EliasOenal/multimon-ng.git cd to the multimon directory cd multimon-ng run the command make mkdir build cd build qmake ../multimon-ng.pro make sudo make install If you want to get this working on Raspberry pi you need to use the following
qmake --version qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
alias qmake="$(find /usr -name qmake | grep qt5)"
qmake --version QMake version 3.0 Using Qt version 5.3.2 in /usr/lib/x86_64-linux-gnu Command line options. (here is the help file) multimon-ng [options] [input_file]
sudo sudo multimon-ng -h multimon-ng (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA (C) 2012-2014 by Elias Oenal available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV SCOPE Usage: multimon-ng [file] [file] [file] ... If no [file] is given, input will be read from your default sound hardware. A filename of "-" denotes standard input. -t <type> : Input file type (any other type than raw requires sox) -a <demod> : Add demodulator -s <demod> : Subtract demodulator -c : Remove all demodulators (must be added with -a <demod>) -q : Quiet -v <level> : Level of verbosity (e.g. '-v 3') For POCSAG and MORSE_CW '-v1' prints decoding statistics. -h : This help -A : APRS mode (TNC2 text output) -m : Mute SoX warnings -r : Call SoX in repeatable mode (e.g. fixed random seed for dithering) -n : Don't flush stdout, increases performance. -e : POCSAG: Hide empty messages. -u : POCSAG: Heuristically prune unlikely decodes. -i : POCSAG: Inverts the input samples. Try this if decoding fails. -p : POCSAG: Show partially received messages. -f <mode> : POCSAG: Disables auto-detection and forces decoding of data as <mode> (<mode> can be 'numeric', 'alpha' and 'skyper') -b <level> : POCSAG: BCH bit error correction level. Set 0 to disable, default is 2. Lower levels increase performance and lower false positives. -o : CW: Set threshold for dit detection (default: 500) -d : CW: Dit length in ms (default: 50) -g : CW: Gap length in ms (default: 50) -x : CW: Disable auto threshold detection -y : CW: Disable auto timing detection Raw input requires one channel, 16 bit, signed integer (platform-native) samples at the demodulator's input sampling rate, which is usually 22050 Hz. Raw input is assumed and required if piped input is used.
how to decode a wav file
sudo ./multimon-ng -s SCOPE -t wav /tmp/message.wav (to read wav file)How to convert a wav file to row file using soxsudo sox foo.wav foo.raw
Now we want to take the received signal from rtl_fm and pyp it to the multimon Create a fifo Pyp
sudo mkfifo soundfifo.raw
ls -al
prw-r--r-- 1 anton anton 0 2013-05-07 22:35 soundfifo.raw
You will see its not a normal file its got a prw in front of the file definition when you list the files.
Lets get multimon to start receiving audio from soundfifo.raw pyp.
sudo multimon-ng -a AFSK1200 -a SCOPE -t raw soundfifo.raw
And now send the audio from rtl_fm to the soundfifo.raw
Decoding live data from rtl receiver. (Tuning receiver to 144.800 Mhz packet frequency and demodulate that to 22.05kHz audio)
sudo rtl_fm -f 144800000 -s 22050 ./soundfifo.raw (read my section on rtl if you want to install rtl utilities)
You should then see the scope screen below.
Multimon Scope Display
And your afsk1200 decoding will start in console and the scope display will show your audio.
Here is an example of hot to decode directly from rtl dongle
sudo rtl_fm -d0 -f 144800000 -s 22050 - | multimon-ng -a AFSK1200 -t raw /dev/stdin
Now install the RTL-2832U USB dongle driver src and compile
git clone git://git.osmocom.org/rtl-sdr.git cd rtl-sdr/ mkdir build cd build cmake ../ make sudo make install sudo ldconfig
if it was successful you should see no return on the previous command. I have been told that the Raspberry crash if you don't reboot before inserting the dongle. With the new Dongles and updated raspberry OS you mite get an error like this. Found 1 device(s): 0: Generic RTL2832U OEM Using device 0: Generic RTL2832U OEM Kernel driver is active, or device is claimed by second instance of librtlsdr. In the first case, please either detach or blacklist the kernel module (dvb_usb_rtl28xxu), or enable automatic detaching at compile time. usb_claim_interface error -6 Failed to open rtlsdr device #0. If you did get this error then edit add the following blacklist text to solve the problem. Edit the following file /etc/modprobe.d/raspi-blacklist.conf use your favourite editor like nano or vi sudo vi /etc/modprobe.d/raspi-blacklist.conf add the following lines in the file. blacklist dvb_usb_rtl28xxu blacklist rtl2832 blacklist rtl2830 Save and exist. You need to reboot.so just run sudo shutdown -r 0
Install the RTL-2832U USB dongle on external powered USB HUB
sudo ldconfig
Run this command sudo rtl_test -t to test the compiled driver
I had to reboot and run the command sudo ldconfig again before the test worked.
If U are using a RTL2832+R820T dongle U will get this error below when running the rtl_test -t command ************************************** Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Rafael Micro R820T tuner
Supported gain values (there was a string of values)
No E4000 tuner found, aborting Just ignore it the normalrtl_tcpcommand will work.
To run the rtl server type rtl_tcp -a and you ip address of your Pi.
sudo rtl_tcp -a 192.168.10.135Found 1 device(s). Found Elonics E4000 tuner Using ezcap USB 2.0 DVB-T/DAB/FM dongle Tuned to 100000000 Hz. listening... Use the device argument 'rtl_tcp=192.168.10.135:1234' in OsmoSDR (gr-osmosdr) source to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
You will have to configer your .asoundrc file (you can read about it in my websdr sound card section)
just use default as alsa device it should work
here is a example of .asoundrc config file content
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
pcm.usb {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.usb {
type plug
slave {
ctl "hw;1,0"
}
}
Here is how you set your audio level
sudo alsamixer
alsamixer
Some Debugging
if you get this error below you tried to start the server when its already running.
sudo rtl_tcp -a 192.168.10.135
Found 1 device(s).
usb_claim_interface error -6
Failed to open rtlsdr device #0.
There is already running rtl server just kill the server and will now start.
Now to set-up a client to connect to server.
Setting up SDR client on Linux / Raspberry. (multimode.py) or on Windows.
Linux client
1) install subversion 2) install python 3) install gnuradio and compile 3) compile mutimode.py 4) test and run Run the following commands to install and configure multimode.py apt-get install subversion Install python
Setup the python path export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:~/bin cd /home/pi/Download/multimode/trunk (where ever you have checkout your mutimode code with subversion run sudo make install mkdir -p /root/bin cp multimode.py multimode_helper.py /root/bin Please make sure your PYTHONPATH includes /root/bin And also that PATH includes /root/bin this will allow multimode to work correctly Check your python path with the following command. echo $PYTHONPATH /usr/local/lib/python2.7/dist-packages:/home/anton/bin it seems to not include the /root/bin So add it export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:/home/anton/bin:/root/bin Run mutimode.py sudo ./multimode.py Traceback (most recent call last): File "./multimode.py", line 9, in <module> from gnuradio import audio ImportError: No module named gnuradio need to install gnuradio install gnuradio This process will take several ours 12 + on slow CPU(Raspberry or inter < 1.2Ghz ) so go and get some coffee or a bear and switch the TV on ......
Make shore you have sudo privileged be fore you go ahead.
You will be ask if you have sudo privileged in the script say Y.
Proceed?Y
Starting all functions at: Sun Feb 3 11:37:06 SAST 2013
SUDO privileges are required
Do you have SUDO privileges?Y ..................... ...................... [sudo] password for anton: Done building and installing Gnu Radio GRC freedesktop icons install ...Done Done function gnuradio_build at: Sun Feb 3 19:26:13 SAST 2013 Starting function rtl_build at: Sun Feb 3 19:26:13 SAST 2013 Building rtl-sdr...Done building/installing rtl-sdr/gr-osmosdr Done function rtl_build at: Sun Feb 3 19:29:47 SAST 2013 Starting function extras at: Sun Feb 3 19:29:47 SAST 2013 Doing GIT checkout for extra module gr-baz Building extra module gr-baz Doing GIT checkout for extra module grextras Couldnt build module grextras directory not there Done function extras at: Sun Feb 3 19:36:47 SAST 2013 Starting function mod_groups at: Sun Feb 3 19:36:47 SAST 2013 ******************************************************************************** This script has just modified /etc/group to place your userid '('$USER')' into group 'usrp' In order for this change to take effect, you will need to log-out and log back in again. You will not be able to access your USRP1 device until you do this. If you wish to allow others on your system to use the USRP1 device, you will need to use: sudo usermod -a -G usrp userid For each userid you wish to allow access to the usrp ******************************************************************************** Further Done function mod_groups at: Sun Feb 3 19:36:49 SAST 2013 Starting function mod_udev at: Sun Feb 3 19:36:49 SAST 2013 Done function mod_udev at: Sun Feb 3 19:36:53 SAST 2013 Starting function mod_sysctl at: Sun Feb 3 19:36:53 SAST 2013 Applying updates to /etc/sysctl.conf Group 'usrp' now has real-time scheduling privileges You will need to log-out and back in again for this to take effect Done function mod_sysctl at: Sun Feb 3 19:36:53 SAST 2013 Starting function pythonpath at: Sun Feb 3 19:36:53 SAST 2013 ************************************************************ You should probably set your PYTHONPATH to: /usr/local/lib/python2.7/dist-packages Using: export PYTHONPATH=/usr/local/lib/python2.7/dist-packages in your .bashrc or equivalent file prior to attempting to run any Gnu Radio applications or Gnu Radio Companion. ************************************************************* Done function pythonpath at: Sun Feb 3 19:36:53 SAST 2013 Done all functions at: Sun Feb 3 19:36:53 SAST 2013 All Done
sudo gnuradio-companion
My Raspberry ran out of space need bigger SD card (but the process is the same on Ubuntu) I will update this aria when I get my new SD card. Now we are reddy to run the mutimode.py cd to your directory where multimode.py something lie this cd /home/anton/Downloads/multimode/multimode/trunk run sudo ./multimode.py Woila ...
It seems that the Raspberry CPU is to slow to run the mutimode.py
Setting up a Windows Client to connect to rtl server.
Android client connecting to rdl_tcp server (Worked on my Galaxy S2 and Galaxy tab 7')
Screenshots is from Galaxy S2
What you need to install from Google Play
1) SDR Touch from Google play
2) [RTL2832U driver] from Google play
3) And you need to pay for the License app +_ R90 [SDR Touch Key]. (
If you see Demo on left bottom corner the key did not work run it first.
( I had to sometimes stop and start the app to get it working)
I also have plug in the RTL-2832U dongle directly to the phone with a adapter cable and it also works vine via a external powered USB HUB ( I got the adapter cable from local China mole for about R70-00)
Galaxy S2 USB Host Adapter
Samsung Galaxy S2
Run the [Touce Key] app and close it. Then run [SDR Touch] and you should see the screen below.
Select the menu button = on bottom of phone and you should see a menu like this. Enter your RTL_TCP server details as configure above.
Then click on [Spectrum] button and you can then scroll the freq by dragging the spectrum left or write.
You could also pres the[ set Mhz] button and enter the frequency in the menu see screenshot below. Just one problem (selecting the modulator option is a trick) [AM LSB USB NBFM .....] There is a small gap between the [set Mhz] button and the [help] button and you should carefully click the gap to change the mode. I am shore the developer will fix this soon
Debug info:
If you get popups saying you need root just ignore them. I had to sometimes restart the app.