Skip to content

Instantly share code, notes, and snippets.

@a-a
Created May 17, 2020 15:14
Show Gist options
  • Save a-a/de5462846b0dce501b07cae3a2fddc2b to your computer and use it in GitHub Desktop.
Save a-a/de5462846b0dce501b07cae3a2fddc2b to your computer and use it in GitHub Desktop.
Script to send POCSAG messages on multiple known frequencies to known RIC where transmission paramaters are unknown.
#! /bin/bash
#
# Script to send POCSAG messages on multiple known frequencies to specified RIC
# This could be useful where the RIC is known, the frequency is unknown but
# suspected to be a former UK commercial paging network, but all other
# paramaters such as baud raud or inversion are unknown.
#
# You should be using this in an RF test chamber to avoid voilating the law.
# But if you're playing with pagers, you presumably already known this :)
ric=1591217
known_uk_freqs=(137.975e6 138.075e6 138.15e6 138.175e6 153.075e6 153.125e6\
153.15e6 153.175e6 153.2375e6 153.25e6 153.275e6 153.325e6 153.3375e6\
153.35e6 153.3625e6 153.375e6 153.45e6 153.825e6 454.075e6 454.2e6\
454.2375e6 454.675e6 454.775e6 454.825e6 466.075e6)
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:2400 $f" | sudo ./pocsag -r 2400 -f $i
done
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:I2400 $f" | sudo ./pocsag -r 2400 -i -f $i
done
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:1200 $f" | sudo ./pocsag -r 1200 -f $i
done
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:I1200 $f" | sudo ./pocsag -r 1200 -i -f $i
done
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:512 $f" | sudo ./pocsag -r 512 -f $i
done
for i in "${known_uk_freqs[@]}"
do
echo Trying $i
f=${i::-2}
printf "$ric:I512 $f" | sudo ./pocsag -r 512 -i -f $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment