You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
369 B
13 lines
369 B
function dmrdecode --description "Decodes DMR signals on $argv frequency"
|
|
if test (count $argv) = 1
|
|
if test "$argv[1]" -gt 430000000 -a "$argv[1]" -lt 447000000
|
|
rtl_fm -f $argv[1] -s 22050 | dsdccx -i - -o - -fr | play -q -t s16 -r 8k -c 1 -
|
|
else
|
|
echo "Incorrect frequency!"
|
|
end
|
|
else
|
|
echo "Which frequency?"
|
|
echo "Use: dmrdecode <frequency>"
|
|
end
|
|
end
|