Scripts for my raspberry pi SDR RTL pager decoder.
Last active
December 22, 2020 02:31
-
-
Save matbor/b9b7dfed55263280bb6f to your computer and use it in GitHub Desktop.
Scripts for my raspberry pi SDR RTL pager decoder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sends the pager messages to a csv file | |
pager_freq=( | |
148.904M | |
) | |
echo | |
echo "### STARTING ###" | |
date | |
echo "Frequency ${pager_freq[channel]}" | |
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq[channel]} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw - >> ${pager_freq[channel]}.csv & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# displays pager messages in the terminal | |
pager_freq=( | |
148.904M | |
) | |
echo | |
echo "### STARTING ###" | |
date | |
echo "Frequency ${pager_freq[channel]}" | |
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw /dev/stdin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sends all the pager messages to a mosquitto (MQTT) broker. | |
pager_freq=( | |
148.904M | |
) | |
echo | |
echo "### STARTING ###" | |
date | |
echo "Frequency ${pager_freq[channel]}" | |
sudo rtl_fm -g 100 -d 0 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a POCSAG1200 -a POCSAG2400 -a POCSAG512 -t raw - | xargs -d"\n" -I {} echo "{\"pager\":\"{}\"}" | mosquitto_pub -h localhost -l -r -q 2 -t pager/messages/raw | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# lets sdr sharp to connect, IP below is the local IP | |
sudo rtl_tcp -a 192.168.4.125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment