metalx1000

rtl sdr detect when signal is sent on frequency

Jun 23rd, 2017 (edited)
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2. #sdr detect when signal is sent on frequency
  3. sudo apt install rtl-sdr
  4.  
  5. r1=314M
  6. r2=316M
  7. bin=1M
  8. g=300
  9.  
  10. let thres=11;
  11.  
  12. rtl_power -f $r1:$r2:$bin -g $g -i 1|\
  13.   while read l;
  14.   do
  15.     let p="$(echo "$l"|cut -d\, -f7|cut -d\. -f1)";
  16.     if [ "$p" -gt "$thres" ];
  17.     then
  18.       echo "click";
  19.     fi;
  20.   done
Add Comment
Please, Sign In to add comment