ptrkrysik / gr-gsm

Gnuradio blocks and tools for receiving GSM transmissions
Other
1.34k stars 432 forks source link

Automatic kalibration of RTL-SDR devices #142

Open MatejKovacic opened 8 years ago

MatejKovacic commented 8 years ago

The idea is to add automatic kalibration of RTL-SDR devices to _airprobe_rtlsdrscanner (-p parameter).

Right now this could be done with this script (first you need to install Kalibrate (i. e. kal):

tmpf=$(tempfile)
echo "Kalibrating... step 1"
stdbuf -oL kal -s GSM900 >&1 > $tmpf
channel=$(more +2 $tmpf | awk 'BEGIN {FS="[:, ]+"} {print $6"-"$2}' | sort | awk 'BEGIN {FS="[-, ]+"} {print $2}' | head -1)
stdbuf -oL kal -c $channel >&1 > $tmpf
ppm=$(tail -n 1 $tmpf | awk 'BEGIN {FS="[:, ]+"} {print $4}' | awk '{print int($1+0.5)}')
echo "Kalibration completed!"
echo "Run: airprobe_rtlsdr_scanner.py -p $ppm"
rm $tmpf

OK, it is ugly as hell, but it is working. Basically it scans GSM900 band and picks up the strongest channel. Then it computes average ppm for this channel and prints it.

P. S. It is good to know, that a RTL-SDR device needs re-kalibration after it warms up (after several minutes).

dydfrancis commented 4 years ago

please sir why can't you update us with video tutorial on this i really need to learn

dydfrancis commented 4 years ago

please can somebody assist me on this whasapp +2348087070541 thanks