Guide to decoding POCSAG on Linux

What scanner to buy? What's the best antenna to use? Programming? Ask here!

Moderator: Always RX

Post Reply
JhG123
150+ posts
150+ posts
Posts: 253
Joined: Mon Oct 29, 2018 8:20 pm

Guide to decoding POCSAG on Linux

Post by JhG123 »

Guide for setting up POCSAG decoder on Linux
Tested on Ubuntu 18.04.3 and macOS 10.15 Catalina with an RTL820T2 SDR.

1.

Code: Select all

sudo apt update
2.

Code: Select all

sudo apt install rtl_sdr netcat sox gqrx
3. Clone this repository to the home folder

Code: Select all

git clone https://github.com/EliasOenal/multimon-ng.git
and cd into it
4. To build multimon-ng, follow these instructuctions, you will need make installed.

Code: Select all

mkdir build
cd build
cmake ..
make
sudo make install
5. Launch GQRX and go to Tools>Remote Control Settings and set the port to 7355, and add localhost to the allowed hosts list.
6. Attach your SDR and make sure GQRX is getting data, then tune to your intended paging frequency.
7. Click the UDP button, located near the bottom right of the GQRX window.
You'll want to set the Filter Width to about 11k and the mode to NFM, don't enable any noise blankers or AGC.
8. Launch the terminal and paste

Code: Select all

nc -l -u localhost 7355 |     sox -t raw -esigned-integer -b 16 -r 48000 - -esigned-integer -b 16 -r 22050 -t raw - |     multimon-ng -t raw -a POCSAG512 -a POCSAG1200 -a POCSAG2400  -f alpha -
8. If all has worked correctly, once GQRX recieves a signal, which will appear in the waterfall as 2 streams of data, multimon-ng will start to decode them.

You may need to adjust some of the reciever settings to get a good signal, but it should work fine.
Last edited by JhG123 on Mon Jun 29, 2020 8:39 am, edited 1 time in total.
vk6hgr
Site Admin
Site Admin
Posts: 2610
Joined: Thu Feb 24, 2005 10:33 pm
Amateur callsign: VK6HGR
Scanners and Receivers: Various Yaesu, Kenwood, Tait, Simoco and Philips'
Location: Perth, Western Australia
Contact:

Re: Guide to decoding POCSAG on Linux

Post by vk6hgr »

Nice.
2400 baud doesn't appear to be used on Australian networks so you'd get a bit of a performance boost by not having Multimon try to decode it.
Gavin Rogers; VK6HGR
http://vk6hgr.ampr.org/
WARSUG forum administrator
Site and stream donations: https://www.paypal.me/vk6hgr
roland985
150+ posts
150+ posts
Posts: 218
Joined: Thu Aug 28, 2014 8:23 pm
Scanners and Receivers: Uniden EZI30XLT Scanner.
Bearcat UBC355XLT
Location: High Wycombe

Re: Guide to decoding POCSAG on Linux

Post by roland985 »

Works for me. Thanks!
WASES CSU
JhG123
150+ posts
150+ posts
Posts: 253
Joined: Mon Oct 29, 2018 8:20 pm

Re: Guide to decoding POCSAG on Linux

Post by JhG123 »

No problem! If anyone would like it as well, I could post a guide for decoding digital modes with GQRX and DSD on linux too.

Also if you need to tune your SDR's frequency correction, I normally put my CB on 25, or 477.025, key up once I put GQRX onto 477.025 and just adjust the correction until the frequency matches up with the waterfall output.
roland985
150+ posts
150+ posts
Posts: 218
Joined: Thu Aug 28, 2014 8:23 pm
Scanners and Receivers: Uniden EZI30XLT Scanner.
Bearcat UBC355XLT
Location: High Wycombe

Re: Guide to decoding POCSAG on Linux

Post by roland985 »

Or you can just use an FM radio station...

Mine still drifts due to temperature. It's time to get a proper SDR reciever.
WASES CSU
JhG123
150+ posts
150+ posts
Posts: 253
Joined: Mon Oct 29, 2018 8:20 pm

Re: Guide to decoding POCSAG on Linux

Post by JhG123 »

I didn't even consider that, that's a much better idea.
Post Reply