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

1003 Commits

Author SHA1 Message Date
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
6f8665e5a2 scripts/fpd2pdf: moved over to eda-tools 2010-11-13 18:47:36 -03:00
Werner Almesberger
bb548642dc scripts/fpd2pdf (usage): don't call the input files .pdf - they're .fpd ! 2010-11-13 18:45:55 -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
000c087789 fw/atusb/atusb.c: make the LED flash 1/4 the previous time in test mode
This is purely for esthetical reasons.
2010-11-11 21:40:03 -03:00
Werner Almesberger
22288a2932 atrf-txrx can now run a shell command while emitting a test wave
- atrf-txrx.c (test_mode, usage, main): optionally run a shell command while
  in test mode
- atrf-txrx.c (usage): explain all parameters
2010-11-11 21:31:15 -03:00
Werner Almesberger
b2049e7074 Various items in CNTR referred to ATSPI/atspi
- cntr/tools/Makefile, cntr/fw/cntr/descr.c, cntr/fw/cntr/Makefile: files
  were originally from ATSPI/ATRF and has comments left over from there
2010-11-11 10:56:42 -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
d1953cd47f The Great ATSPI Renaming, part 10: more title comment fixes
- atusb/fw/boot/Makefile: still referred to the project as ATSPI (not ATRF)
  in title comment
- atusb/fw/include/atusb/usb-ids.h: still had old atspi path in title comment
2010-11-11 10:47:39 -03:00
Werner Almesberger
4d7cb125ee atusb.sch: mention that the TST connection is a rework and not in the layout 2010-11-11 10:36:57 -03:00
Werner Almesberger
809311284d lib/atusb.c: fix typo in function name
- lib/atusb.c (atusd_interrupt, atusb_driver): we're in atusb.c, so the
  function name should begin with atusb_, not atusd_
2010-11-11 10:34:09 -03:00
Werner Almesberger
a8a898e202 The Great ATSPI Renaming, part 9: update comments as well
- Makefile.common, lib/atrf.c, lib/atusd.c: change ATSPI to ATRF in title
  comment
- include/atrf.h: comment still referred to atrf-id as "atspi-id"
2010-11-11 10:30:37 -03:00
Werner Almesberger
6ee514239e The Great ATSPI Renaming, part 8: rename the tools from atspi-* to atrf-*
- tools/atrf-*/atspi-*.c: renamed to atrf-*.c
- tools/atrf-*/Makefile (MAIN): updated name of program
- tools/atrf-*/*.c: updated path in title comment
2010-11-11 10:27:49 -03:00
Werner Almesberger
2873174739 The Great ATSPI Renaming, part 7: rename tools/atspi-* to tools/atrf-*
- tools/atspi-id/: renamed to atrf-id
- tools/atspi-reset/: renamed to atrf-reset
- tools/atspi-rssi/: renamed to atrf-rssi
- tools/atspi-trim/: renamed to atrf-trim
- tools/atspi-txrx/: renamed to atrf-txrx
- tools/Makefile: renamed directories from atspi-* to atrf-*

e	lib/misctxrx.o
2010-11-11 10:14:04 -03:00
Werner Almesberger
bcd3691c8a The Great ATSPI Renaming, part 6: change atrf API from atspi_* to atrf_*
- include/atrf.h, lib/atrf.c (struct atspi_dsc): renamed to "struct
  atrf_dsc"
- include/atrf.h, lib/atrf.c (atspi_*): renamed all functions to atrf_*
- include/misctxrx.h, lib/misctxrx.c (wait_for_interrupt): updated for API
  name change
- atspi-id/atspi-id.c (show_usb_info, show_info, main),
  atspi-reset/atspi-reset.c (main), atspi-rssi/atspi-rssi.c (sweep, main),
  atspi-rssi/gui.h (gui), atspi-rssi/gui.c (sweep, gui),
  atspi-trim/atspi-trim.c (main), atspi-txrx/atspi-txrx.c (init_txrx,
  set_channel, set_power, receive, transmit, test_mode, main):
  updated for API name change
2010-11-11 10:10:13 -03:00
Werner Almesberger
688df9771d The Great ATSPI Renaming, part 5: rename "struct atspi_driver" to "atrf_driver"
- lib/driver.h: rename "struct atspi_driver" to "struct atrf_driver"
- lib/atrf.c, lib/atusb.c, lib/atusd.c: track above change
2010-11-11 09:04:36 -03:00
Werner Almesberger
cf23ac6128 The Great ATSPI Renaming, part 4: rename include/atspi.h to include/atrf.h
- include/atspi.h: renamed to include/atrf.h
- include/misctxrx.h, lib/atrf.c, lib/misctxrx.c, atspi-id/atspi-id.c,
  atspi-reset/atspi-reset.c, atspi-rssi/atspi-rssi.c, atspi-rssi/gui.c,
  atspi-rssi/gui.h, atspi-trim/atspi-trim.c, atspi-txrx/atspi-txrx.c:
  change  #include "atspi.h"  to  #include "atrf.h"
2010-11-11 08:58:47 -03:00
Werner Almesberger
84b61f35f2 The Great ATSPI Renaming, part 3: rename libatspi.a to libatrf.a
- tools/lib/atspi.c: renamed to atrf.c
- tools/lib/Makefile (OBJS): track above change
- tools/Makefile.common (LDLIBS), tools/lib/Makefile (LIB): rename the
  whole library from libatspi to libatrf
2010-11-11 08:48:08 -03:00
Werner Almesberger
96b6a50b3a The Great ATSPI Renaming, part 2: rename ATSPI_* identifiers to ATUSB_*
- atusb/fw/include/atusb/ep0.h, atusb/fw/atusb/ep0.c: rename all ATSPI_*
  identifiers (EP0 commands, protocol revision, etc.) to ATUSB_*
- tools/lib/atusb.c, tools/atspi-id/atspi-id.c: track identifier change
2010-11-11 08:41:25 -03:00
Werner Almesberger
7e71f98007 The Great ATSPI Renaming, part 1: rename atusb firmware files from atspi to atusb
- atusb/fw/atspi/atspi.c: renamed to atusb/fw/atspi/atusb.c
- atusb/fw/atspi/Makefile: track above change
- atusb/fw/include/atspi/: renamed to atusb/fw/include/atusb/
- atusb/fw/common/config.h, atusb/fw/atspi/atspi.c, atusb/fw/atspi/descr.c,
  atusb/fw/atspi/ep0.c: track change of include location
- atusb/fw/atspi/: renamed to atusb
- atusb/fw/Makefile: track above change
- tools/atspi-id/atspi-id.c, tools/atspi-trim/atspi-trim.c,
  tools/lib/atusb.c: track change of include location
2010-11-11 08:26:01 -03:00
Werner Almesberger
1e78135bf4 atspi-txrx: new option -f to set the channel by frequency
- atspi-txrx/atspi-txrx.c (usage): rearranged description of -T
- atspi-txrx/atspi-txrx.c (usage, main): option -f freq to specify the
  channel by frequency
2010-11-11 02:44:33 -03:00
Werner Almesberger
d4fe0277c2 atspi-txrx: option -T <delta_MHz> to emit a constant wave
- atspi-txrx/atspi-txrx.c (set_power): make enabling the CRC optional
  (this is necessary for test mode, which doesn't seem to work if the CRC
  is selected)
- atspi-txrx/atspi-txrx.c (test_mode): emit a constant wave in test mode
- atspi-txrx/atspi-txrx.c (usage, main): new option -T <delta> to emit a
  constant wave -2 MHz, -0.5 MHz, or +0.5 MHz from the nominal carrier
  frequency
2010-11-11 02:32:09 -03:00
Werner Almesberger
5d63a009c8 libatspi: new function atspi_test_mode to enter test mode
- include/atspi.h, lib/atspi.c: new function atspi_test_mode to enter test
  mode
- lib/driver.h (struct atspi_driver): add backend function test_mode
- lib/atusb.c (atusb_test_mode), lib/atusb.c (atusb_driver): enter test
  mode
- lib/atusd.c (atusd_driver): test mode is not supported
2010-11-11 02:29:07 -03:00
Werner Almesberger
2337557a8c atusd firmware now supports setting the TST pin.
- common/io.h: TST is connected to P0_7
- include/at86rf230.h: added test mode registers REG_CONT_TX_0 (0x36) and
  REG_CONT_TX_1 (0x3d), with their values
- atspi/atspi.c (set_test_mode): set or reset TST and the LED
- atspi/atspi.c (reset_rf): leave test mode
- atspi/atspi.c (test_mode): enter test mode
- atspi/atspi.c (main): flash the LED when in test mode
- include/atspi/ep0.h (enum atspi_requests), atspi/ep0.c (my_setup): new
  command ATSPI_TEST to enter test mode
- include/atspi/ep0.h (EP0ATSPI_MINOR): bumped protocol to version 0.1
- include/at86rf230.h: corrected comment before TRX_CMD field to indicate
  that the register is called TRX_STATE
2010-11-11 02:25:54 -03:00
Werner Almesberger
c45f1bb3c8 atusb/: connect TST to P0_7 (rework of existing boards) 2010-11-11 02:12:45 -03:00
Werner Almesberger
256da91e04 atspi-rssid: for color and geometry, use #defines instead of literals
- atspi-rssid/gui.c (sweep, label_channels): moved geometry values to
  #defines
- atspi-rssid/gui.c (CBIG, CSMALL, label_channels): moved color values to
  #defines
2010-11-09 13:53:04 -03:00
Werner Almesberger
e3bae73a5e atspi-rssi/gui.c (gui): exit on keystroke or quit request 2010-11-08 20:31:38 -03:00
Werner Almesberger
0463bbea5d Added graphical display of RSSI scan results.
- tools/Makefile.common: CFLAGS and OBJS can now be target-specific
- tools/atspi-rssi/Makefile: add SDL, SDL_gfx, and the GUI object files
  when building on the host
- tools/atspi-rssi/Makefile: set -DHAVE_GFX when building on the host
- tools/atspi-rssi/atspi-rssi.c (usage, main): new option -g to use GUI
  mode
- tools/atspi-rssi/atspi-rssi.c (main): rename variable for the number of
  sweeps in non-GUI mode from "sweeps" to "arg", since it may have other
  uses in the future
- tools/atspi-rssi/digit.h, tools/atspi-rssi/digit.c: draw 7 segment style
  digits
- tools/atspi-rssi/zgrid.h, tools/atspi-rssi/zgrid.c: display a surface in
  faux 3D with SDL/SDL_gfx
- tools/tools/atspi-rssi/gui.h, tools/atspi-rssi/gui.c: display RSSI scans
  as a scrolling 3D profile
2010-11-08 20:31:38 -03:00
Werner Almesberger
a7a94b85cd Use getopt in atspi-rssi.c
- atspi-rssi/atspi-rssi.c (main): use getopt
- atspi-rssi/atspi-rssi.c (usage, main): introduce option -n to select
  number-of-sweeps mode (default)
2010-11-08 16:22:39 -03:00
Werner Almesberger
4c905300d3 Minor CNTR layout cleanup.
- cntr.brd: added pin 1 marker for U1
- cntr.brd: moved via next to P7 a 5 mil away from the probe trace
- cntr.pro: commit noise
2010-11-06 17:14:25 -03:00
Werner Almesberger
190e8f0082 Firmware support for CNTR version 3.
- common/io.h: describe the role of PROBE_TERM in version 3
- common/io.h (VERSION_ID): renamed to VERSION_ID1
- common/io.h (VERSION_ID2): added P2_0, and described version number
  encoding
- cntr/cntr.h (enum hw_type): added HW_TYPE_V3
- cntr/cntr.c (init_io): decode version 3, flash LED three times, and
  configure PROBE_TERM according to version
2010-11-06 17:03:33 -03:00
Werner Almesberger
10b4b51e4f ants.brd: added ground fill exclusion zone under connector (again ?) 2010-11-06 11:40:47 -03:00
Werner Almesberger
53f2fc7ce1 ants.brd: add guide lines for placement of bottom adhesive 2010-11-06 11:17:12 -03:00
Werner Almesberger
f2ab3cfd18 Updated cntr.sch for BOM processing. Fixed omission in atrf.sub
- cntr/cntr.sch (P5, P6, P7): added footprint
- cntr/cntr.pro: commit noise
- bom/atrf.sub: accept resistor values without unit or multiplier (e.g.,
  "68" becomes "68R")
2010-11-06 03:09:21 -03:00
Werner Almesberger
b7eb4b9496 cntr/: version 3 with simplified input circuit.
- cntr/cntr.sch: change input circuit according to ECN0006
- cntr/cntr.sch: make P2_0 yet another version ID input
- cntr/cntr.cmp: surprise, this wasn't checked in either
- cntr/cntr.brd: update for above changes
- cntr/cntr.brd: adjust for resized USB connector
- cntr/cntr.brd: top ground fill was very spotty - removed it
- cntr/cntr.brd: board can now be 100 mil shorter
- cntr/cam/pcb.pl: updated for new board outline
2010-11-06 02:53:18 -03:00
Werner Almesberger
f8ff8bbe29 modules/usb_a_plug_smt.fpd: enlarge signal pads by 0.2 mm
- modules/usb_a_plug_smt.fpd: move the far edge of the signal pads out by
  0.2 mm, moving their center by 0.1 mm
- modules/INFO: explain why Molex' calculation seems to be questionable
2010-11-06 01:45:37 -03:00
Werner Almesberger
e58985d1d0 ants/ants.brd: add exclusion zone around ground pad on top layer 2010-11-06 01:23:08 -03:00
Werner Almesberger
3f28b92c4f CAM process for the antenna test boards.
- ants/ants.brd: added board dimensions
- ants/cam/Makefile, ants/cam/pcb.pl, ants/cam/doit: CAM process for the
  "ants" boards
2010-11-06 01:18:56 -03:00
Werner Almesberger
424ddce975 ants/: Passive board for antenna testing.
- ants/Makefile, ants/ants.pro, ants/ants.sch, ants/ants.cmd,
  ants/ants.brd: passive generic antenna testing board
- ants/meander.fpd: variant of modules/meander.fpd with variable length and
  without "tail"
2010-11-06 00:36:24 -03:00
Werner Almesberger
7c2542e321 KiCad dislikes dots in file names: renamed u.fl-receptacle to u-fl-receptacle 2010-11-06 00:35:11 -03:00
Werner Almesberger
e6c8818d46 Added footprint for U.FL (micro coax) receptacle. 2010-11-05 22:22:25 -03:00
Werner Almesberger
6d4ea61ae1 More detailed examination of the input circuit problem.
- cntr/README, ecn/INDEX, ecn/ecn0006.txt: moved discussion of the input
  circuit from README to ECN0006
- cntr/cntr.sch: changed pointer from README to ECN0006
- ecn/ecn0006.txt: added more measurements, explanations, and an analysis
  of the situation
2010-11-05 14:45:12 -03:00