Wednesday, October 6, 2010

[Discuss-gnuradio] Simple USRP to baudline script

I made this simple script that takes a signal from the fabulous USRP
and sends it the fabulous "baudline" software, so I thought I'd share
it.

FYI, this runs on Fedora 13.

#!/bin/sh

### A simple script to get a signal from the fabulous USRP and
### use the fabulous "baudline" for display

freq0=$1 ## NB: don't use "M" or "G" , ie use 88500000, not 88.5M
decim0=$2 ## eg: 16, 32, 64
usrpargs0="$3" ## eg: "-R B -g 60"

###################

usrpsamplerate0=64000000
baudlinesamplerate0=$(($usrpsamplerate0 / $decim0))

#baudlineformat0=le32f ; usrpformat0="" ## floating point
baudlineformat0=le16 ; usrpformat0="--output-shorts" ## 16 signed
integers, little endian

usrp_rx_cfile.py $usrpformat0 $usrpargs0 -f $freq0 -d $decim0 /dev/stdout | \
baudline -reset -channels 2 -quadrature -flipcomplex -stdin \
-basefrequency $freq0 -format $baudlineformat0 \
-samplerate $baudlinesamplerate0

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment