1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 04:17:30 +02:00
Commit Graph

41 Commits

Author SHA1 Message Date
Werner Almesberger
a60fb1e26d usrp/sps/20110306: examine sidebands ("spikes") and try to reduce them 2011-03-07 04:45:15 -03:00
Werner Almesberger
9100fdf431 usrp/sps/Makefile: moved to 20110303 and adapted PATH 2011-03-06 17:40:18 -03:00
Werner Almesberger
cb3e80f502 usrp/sps/: use PATH instead of hard-coding relative paths in invocations 2011-03-06 16:47:21 -03:00
Werner Almesberger
b9244bdefd usrp/sps/: removed "Offset" from header, added 0 dB line to peak power overview
- row: the "Offset" header looked very crowded; removed it
- vizp: draw the x axis (0 dB) as solid black
2011-03-05 21:06:12 -03:00
Werner Almesberger
32818db581 usrp/sps/: added peak power summary graph
- vizp: plot the peak power
- row: retrieve peak power from "viz" (with -m) and use it to generate the
  summary
- vizr: corrected typo in prefix argument number
2011-03-05 20:25:27 -03:00
Werner Almesberger
bcd6e09189 usrp/sps/: added min/avg/max summary image
- range: generate min/avg/max data from FFT files
- vizr: plot the output of "range"
- row: make "viz" keep the FFT output and use it to generate the summary
2011-03-05 19:34:07 -03:00
Werner Almesberger
34722a54ef usrp/sps/viz: reject unrecognized command-line options 2011-03-05 19:02:15 -03:00
Werner Almesberger
7258e10a9a usrp/sps: further improved scripts, added Makefile
- Makefile (index): generate an illustrated index of all the measurement
  runs
- Makefile (upload): upload images and index to downloads.qi-hardware.com
- collect: added optional directory argument, for cases where the
  destination directory differs from the local directory
- collect: hard-coded remote host to run usrp2_rx_cfile.py at
- collect: added . to PATH, for execution of a local copy of atrf-txrx
- row: generate entire HTML page, not just the table entries
- row: accept a list of prefixes to iterate through
- row: highlight rows starting a "new" prefix
- viz: corrected sprintf formats from +%...f to %+...f
- viz: show negative peak power in red
2011-03-04 20:28:59 -03:00
Werner Almesberger
fd27bdc442 usrp/sps/: spectrum scan utilities (work in progress)
- collect: set up a test transmission at each available frequency, then
  then record the signal seen by the USRP2
- norm: extract parameters necessary for normalization
- viz: visualize the spectrum with gnuplot
- row: generate rows of spectra with "viz"
2011-03-03 23:26:31 -03:00
Werner Almesberger
b90e3e2dfd usrp/fft.c (do_fft): don't output the sample number when dumping
gnuplot already maintains the sample count in $0
2011-03-03 17:52:00 -03:00
Werner Almesberger
c98b91656a usrp/fft.c: added support for averaging of FFT results before dumping
- fft.c (usage, main): added optional averaging parameter for -d (dump)
- fft.c (do_fft): split the sample into several parts, FFT each of them
  individually, and average the FFT results
2011-03-03 17:50:02 -03:00
Werner Almesberger
95a9e12e2e usrp/fft.c: made window function user-selectable, added hann, blackman, rect
- fft.c (window, usage, main): added command line option -w window to
  select window function
- fft.c (window_rectangle, window_hann, window_hamming, window_blackman):
  increased choice of window functions
2011-03-03 17:49:54 -03:00
Werner Almesberger
fff1e1ed2f usrp/fft.c: added Hamming, make dump easier to interpret
- fft.c (window, fft_complex): added Hamming window function
- fft.c (do_fft): shift dump output such that center frequency is in the
  middle, not at the edges
2011-03-03 17:49:37 -03:00
Werner Almesberger
9c2f37bedb usrp/plscan: comment out yrange (the experiments now cover all sorts of ranges) 2011-01-03 23:09:32 -03:00
Werner Almesberger
c2b489d0bb usrp: adjust outlier rejection and signal range for improved antennas
- usrp/evscan: reduce outlier limit from 10 dB to 5 dB
- usrp/plscan: raise lower bound from -40 dB to -30 dB
2010-12-01 23:57:15 -03:00
Werner Almesberger
60d78fdbb5 usrp/fscan: results are now quite stable, so 20 instead of 100 runs are enough 2010-12-01 23:37:34 -03:00
Werner Almesberger
8ea171512b usrp/range: more useful diagnostic output and harden against underflows
- usrp/range: ignore "-inf" values
- usrp/range: print the average value when reporting an outlier
2010-12-01 11:08:41 -03:00
Werner Almesberger
e52b92f00f usrp/doall: usage and allow passing of arguments to evscan as well
Examples:

doall 'run/*'				# no arguments
doall -o foo.png 'run/*'		# arguments for plscan
doall -a 1 -- -o foo.png 'run/*'	# arguments for evscan and plscan

- usrp/doall: added usage()
- usrp/doall: arguments before -- are passed to evscan
2010-12-01 11:08:41 -03:00
Werner Almesberger
b3c0b4bf62 usrp: update filtering and display for uncorrupted measurement setup
We now have a much wider dynamic range of the signal (with better SNR).
The outliers are mainly WLAN interferences.

- usrp/evscan: changed threshold from -50 dB to -70 dB
- usrp/evscan: increase outlier tolerance from 2 dB to 10 dB
- usrp/plscan: changed display range from [-35:-25] to [-40:-5]
2010-12-01 11:08:16 -03:00
Werner Almesberger
40d1234bf4 usrp: try to bring back sanity to pre- and post-processing of FFT data
The pre- and post-processing of FFT data was tweaked based on results
obtained from a mis-configured measurement setup, in an only partially
successful attempt to right the wrong data.

- usrp/fft.c (fft_complex): square the magnitude on output but don't
  square the scaling
- usrp/fft.c (fft_real): square the magnitude on input (does this make
  sense ?)
- usrp/fft.c (fft_real): scale the output with the square root of the
  FFT size (dubious)
2010-12-01 10:32:43 -03:00
Werner Almesberger
fea4ee551a usrp/README: change threshold to avoid making section reference look like a typo
- usrp/README: changed threshold from 50 to 60, such that the reference
  "5)" right next to it doesn't look like a mistyped "50"
2010-12-01 10:30:02 -03:00
Werner Almesberger
eafb2a226f fix glitch in fft.c and add scripts to display data sets without temp file
- usrp/doall: new script to directly evaluate and plot data sets
- usrp/fft.c (fft_complex): don't square the magnitude
- usrp/plscan: if an argument name has the form title=name, use "name" as
  the file name and "title" as the title
2010-11-29 01:10:23 -03:00
Werner Almesberger
83d216244c usrp: support DCT in addition to complex FFT
- usrp/evscan (usage, main): treat all arguments but the last as options
  and pass them to "fft"
- usrp/fft.c (fft_complex, do_fft): moved actual FFT calculation to
  separate function
- usrp/fft.c (fft_real, do_fft): added real-valued FFT (DCT) as alternative
- usrp/fft.c (main): undocumented option -a to set the FFT algorithm
2010-11-26 12:16:34 -03:00
Werner Almesberger
59beaba426 usrp/plscan: truncate title at the last dot, not the first
- usrp/plscan: change ${n%%.*} to ${n%.*}
- usrp/README: updated description
2010-11-17 14:11:50 -03:00
Werner Almesberger
66f6ad6f7c usrp/README: described how to perform and evaluate a measurement run 2010-11-17 13:50:13 -03:00
Werner Almesberger
45d5946435 usrp/plscan: instead of echo ... sed ..., just use ${n%%.*} 2010-11-17 13:45:19 -03:00
Werner Almesberger
e31144ff5f usrp/fscan: fail if the directory name begins with a dash 2010-11-17 13:24:11 -03:00
Werner Almesberger
b7ad7f2a31 usrp/README: clarified distance between antennas and fixed typos in examples 2010-11-17 13:22:01 -03:00
Werner Almesberger
3684c0765a usrp/: new tools to run, evaluate, and plot a full frequency scan
- usrp/fscan: perform a frequency scan in my test setup
- usrp/evscan: determine the frequency-dependent signal strength from a
  frequency scan
- usrp/plscan: plot one or more data sets produced by evscan
2010-11-17 13:12:56 -03:00
Werner Almesberger
cc5090b179 usrp/README: description of the preparation for antenna measurements. 2010-11-16 21:17:33 -03:00
Werner Almesberger
c4d906bd8b usrp/range: obtain avg/min/max from a series of values and eliminate outliers 2010-11-16 21:16:41 -03:00
Werner Almesberger
489acc49a5 usrp/fft: one more analysis tool for antenna measurements
- usrp/fft.c: utility to read a set of samples obtained with
  usrp2_rx_cfile.py and to perform a Fourier transform on them
- usrp/Makefile: use LDLIBS for libraries, not LDFLAGS
- usrp/Makefile: added "fft"
2010-11-16 20:28:03 -03:00
Werner Almesberger
e76af7dd9a usrp/: gave tools slightly more self-explaining names
- usrp/d.c: renamed to avg.c
- usrp/p.c: renamed to peak.c
- usrp/Makefile (all): renamed for d and p
- usrp/plot: renamed to plpk
2010-11-12 11:56:12 -03:00
Werner Almesberger
044c1528c7 usrp/plot: enable grid and accept center sensitivity from the command line 2010-11-12 11:54:17 -03:00
Werner Almesberger
417ef7b8c1 usrp/p: cleanup and more command-line control
- usrp/p.c (find_peak, main): moved data processing to separate function
- usrp/p.c (find_peak, usage, main): new option -s skip to set the number
  of samples to skip (default: 0)
- usrp/p.c (find_peak, usage, main): new option -d to dump the histogram
  instead of picking the peak
- usrp/p.c (find_peak, usage, main): the percentile can now be set on the
  command line (default: 0.9)
2010-11-12 11:54:17 -03:00
Werner Almesberger
38e5b8a3a9 usrp/d: cleanup and allow number of samples to be set on command line 2010-11-12 11:54:13 -03:00
Werner Almesberger
d78dd4ee8c usrp/: move first "step" runs to directory usrp/step/ 2010-11-12 11:44:51 -03:00
Werner Almesberger
7f9488e156 The Great ATSPI Renaming, part 11: TODO update and fix script using a tool
- TODO: changed reference to atspi-txrx to atrf-txrx
- TODO: removed renaming from the list of pending issues
- usrp/step: atspi-txrx is now called atrf-txrx
2010-11-11 10:52:39 -03:00
Werner Almesberger
fe7d55dc8b Small improvements to spectrum walk script.
- usrp/step: the default number of runs (10) can now be overridden on the
  command line
- usrp/step: usrp2_rx_cfile.py likes to busy loop from time to time. Add
  a CPU time limit to prevent this from getting out of hand.
2010-09-25 15:13:21 -03:00
Werner Almesberger
dce0a19794 Measurement results and a script to view them.
- usrp/plot: convenience script to plot the signal strength scans
- usrp/step-A, usrp/step-I, usrp/step-II: signal strength scans for three
  boards
2010-09-16 14:45:09 -03:00
Werner Almesberger
e445fe1b01 usrp/: a set of utilities for testing board performance with an USRP2
- usrp/d.c: reduce the number of data points in a file produced by
  usrp2_rx_cfile.py and print them as text suitable for gnuplot
- usrp/p.c: determine the peak amplitude in a series of transmissions,
  filtering noise and artefacts at the beginning of the data file
- usrp/step: step through all channels and measure TX power (for antenna
  tuning)
- usrp/Makefile: built "p" and "d"
2010-09-16 01:01:02 -03:00