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

653 Commits

Author SHA1 Message Date
Werner Almesberger
a8d74345b0 cntr/cntr.c: option -v (report data corruption) was never implemented, oops. 2010-11-05 13:37:34 -03:00
Werner Almesberger
9361f14875 Print a frequency estimate after each burst.
- tools/cntr/cntr.c (measure, print_f): moved pretty-printing of the
  frequency to a separate function
- tools/cntr/cntr.c (count_bursts): print a frequency estimate after each
  burst
- tools/cntr/cntr.c (count_bursts): added comment explaining when and where
  we take the various samples
2010-11-05 10:14:26 -03:00
Werner Almesberger
43f0bcee36 cntr/README: cntr -r always returns an error, so we cannot use it with && 2010-11-04 22:40:50 -03:00
Werner Almesberger
df1706fe74 Added burst counter mode to cntr tool, plus assorted small improvements.
- tools/cntr/cntr.c (measure): also stop if ^C is pressed while we're
  unsuccessfully trying to communicate with the device
- tools/cntr/cntr.c (main): report a usage error if an argument is given to
  -i or -r
- tools/cntr/cntr.c (arm_stop, measure): moveing open-coded arming of the
  SIGINT handler to separate function
- tools/cntr/cntr.c (count_bursts, usage, main): added burst counter mode
  (cntr -b [timeout_s])
2010-11-04 22:35:24 -03:00
Werner Almesberger
8cb17bb1b3 Document that the input circuit does not reach the design frequency (3 MHz) yet.
- cntr/cntr.sch: added warning that input circuit isn't good enough yet
- cntr/README: document input circuit problem, with measurement results
2010-11-04 22:33:04 -03:00
Werner Almesberger
4e568b0f1a Adapted firmware for V2 hardware.
- cntr/cntr.h: new file for variables shared among cntr.c and ep0.c
- cntr/cntr.c (cntr), cntr/ep0.c (cntr): moved to cntr/cntr.h
- fw/common/io.h (VERSION_ID): we can detect the board version by reading
  P2_1 (GND on version 1, open on version 2)
- cntr/cntr.c (init_io): added board version detection, board-specific
  GPIO initialization, and a LED blink to indicate version 2
- cntr/cntr.h (hw_type), cntr/cntr.c (hw_type), cntr/ep0.c (my_setup),
  common/config.h (HW_TYPE): the hardware type is now determined at run
  time
2010-11-03 12:20:13 -03:00
Werner Almesberger
f5388cac42 include/cntr/crc32.c was lost in the great involuntary purge. Add a dummy. 2010-11-03 11:05:40 -03:00
Werner Almesberger
c91658e1ed cntr/README update: name clarification and bugs list.
- cntr/README: change the name from "Arbitrary-precision counter" to
  "Arbitrary-precision frequency counter"
- cntr/README: added list of known hardware issues
2010-11-03 10:30:34 -03:00
Werner Almesberger
188bdb892b Support design version 2 in the boot loader.
- cntr/fw/common/io.h (LED): define version-specific LED pins
- cntr/fw/common/io.h (PROBE_TERM): describe how the role differs between
  version 1 and 2
- cntr/fw/common/config.h (PLATFORM_ENTER, PLATFORM_EXIT): add the version
  2 LED
2010-11-03 10:21:22 -03:00
Werner Almesberger
0fc2960b17 CAM setup update. Local relevance only.
- cam/doit: add board data for 2nd run
- cam/pcb.pl: set piece location to 2nd slot in bottom row
2010-11-03 10:12:51 -03:00
Werner Almesberger
c28ab2c99a cntr/fw/include/cntr/usb-ids.h was never checked in. Oops ! 2010-11-03 09:58:45 -03:00
Werner Almesberger
9103ae0aec Make toolpath cameo-friendly and use cameo for tool size compensation.
- cntr/cam/doit: use cameo
- cntr/cam/pcb.pl (cut): use exact value of pi, to make sure arcs meet
  with lines connecting to them
- cntr/cam/pcb.pl (hhole): force cut to be continuous
- cntr/cam/pcb.pl (arc, hhole, pcb): don't compensate for the tool size.
  Cameo now does this for us.
- cntr/cam/pcb.pl: switch to 2nd piece position
2010-11-01 20:14:43 -03:00
Werner Almesberger
1702234db6 cntr/cam/: added PCB-cutting process
- cam/Makefile (pcb, spool): generate the job and spool it to the mill
- cam/doit: coordinate transform and format conversions
- cam/pcb.pl: PCB outline and holes
2010-10-31 23:59:35 -03:00
Werner Almesberger
86b1163eed Added cntr's MMCX jack, USB A jack, and NPN transistor to BOM.
- bom/atrf.sub: translate MMCX-F-EDGE* to MMCX-F-EDGE-SMT
- bom/atrf.equ, bom/dk/digi-key.equ: added MMCX board edge jacks
- bom/atrf.equ, bom/dk/digi-key.equ: added USB A plug
- bom/atrf.equ, bom/dk/digi-key.equ: added MMST3904 NPN transistor
2010-10-25 18:48:34 -03:00
Werner Almesberger
fca53a386b Corrected MMCX connector fields.
- cntr/cntr.sch: footprint is MMCX-F-EDGE*, not MMCX-F-PLUG*
- cntr/cntr.sch: changed value from BNC to MMCX
2010-10-25 18:34:04 -03:00
Werner Almesberger
8cd7acd622 Use "standard" 2:1 pad to hole ratio for USB connector shield.
- modules/usb_a_plug_smt.fpd: increased pad to hole ratio from 1.5 to 2
- cntr/cntr.brd: updated layout to accommodate larger USB connector pads
2010-10-25 18:18:41 -03:00
Werner Almesberger
2ad54bf2e2 Cleaned up board outline and ground routing.
- cntr/cntr.pro, cntr/cntr.brd: reduced PCB edge line width from 15 mil to
   5 mil
- cntr/cntr.brd: make edge follow hole for MMCX connector
- cntr/cntr.brd: fill bottom and input area with ground
- cntr/cntr.sch, cntr/cntr.brd (R4): replace 0 Ohm jumper and GND via
  P2.1 with vias
2010-10-25 18:09:42 -03:00
Werner Almesberger
e9147b0ba9 Major redesign of "cntr" circuit.
- cntr/cntr.pro: added usb_a_plug.lib, mmcx-f-edge.mod, usb_a_plug_smt.mod,
  and sot-323.mod
- cntr/cntr.sch, cntr/cntr.brd: reassigned LED and pull GPIO for easier
  routing
- cntr/cntr.sch, cntr/cntr.brd: replaced mini-USB receptacle with USB A
  plug and removed 0 Ohm resistor previously used for swapping D+/D-
- cntr/cntr.sch, cntr/cntr.brd: changed TVSs on USB from 200 pF 0603 to
  100 pF 0402 type
- cntr/cntr.sch, cntr/cntr.brd: replaced basically unterminated 100 mil
  header with properly terminated MMCX connector
- cntr/cntr.brd: reduced board width (nominally 15.8 mm) to USB connector
  width (16 mm)
- modules/mmcx-f-edge.fpd: swap contacts for compatibility with "BNC"
  symbol
2010-10-25 08:44:41 -03:00
Werner Almesberger
7dd3d1ac90 SOT-323 footprint for MMST3904 NPN transistor (use NPN standard symbol)
- AUTHORS, modules/INFO, modules/Makefile, modules/sot-323.fpd: footprint
  for SOT-323 package with clockwise (normal) or counter-clockwise
  (transistors) pin numbering
- BOOKSHELF: added MMST3904 NPN small signal transistor
2010-10-25 04:09:08 -03:00
Werner Almesberger
f73f0a9481 Added Molex 0480371000 USB A plug (SMT)
- AUTHORS, components/INFO, components/usb_a_plug.lib,
  components/usb_a_plug.dcm: added symbol for USB A plug
- AUTHORS, modules/INFO, modules/usb_a_plug_smt.fpd: added footprint for
  USB A plug
- BOOKSHELF: added Molex 0480371000 USB A plug for SMT
- AUTHORS: corrected type in file extension of modules/xtal-4.fpd (was .fpg)
2010-10-25 03:07:03 -03:00
Werner Almesberger
e3c85074c8 modules/Makefile (MODULES): belatedly remove "pads" and "stdpass". Oops. 2010-10-25 03:07:02 -03:00
Werner Almesberger
01a9f2ce2c Added BOM data for "atusb" sub-project.
- bom/atrf.chr, bom/dk/digi-key.equ: added crystal and inductors for atusb
- bom/atrf.equ: is C8051F326 C8051F326-GM
- bom/atrf.inv, bom/atrf.sub: added printed component PAD_2mm
- bom/atrf.sub: tentatively added translation for crystals (X*)
- bom/atrf.sub: hack to turn rare 0.82 pF capacitors into more common 0.8 pF
- bom/Makefile (all, vpath, spotless): added atusb
- bom/Makefile (spotless): also remove cntr.par and cntr.ord
2010-10-25 01:00:11 -03:00
Werner Almesberger
a0f0781a96 atusb/atrf.sch (X1): don't explicitly say that the tolerance is a maximum 2010-10-25 00:53:35 -03:00
Werner Almesberger
9d6906d7d8 Cleanup of values in atusb/*.sch
- atusb/atrf.sch (C6, C7): use canonical name 820fF instead of 0.82pF
- atusb/usb.sch (VR1, VR2, VR3): changed value from 5V6 to 5V5 for
  compatibility with selected part
- atusb/atusb.sch: commit noise
- atusb/atusb.brd: reloaded for value changes
2010-10-25 00:26:27 -03:00
Werner Almesberger
b493f09363 Great renaming: atrf/wpan-atrf* becomes atusb/atusb*
- atrf/: rename to atusb/
- atrf/wpan-atrf.pro, atrf/wpan-atrf.sch, atrf/wpan-atrf.brd,
  atrf/wpan-atrf.cmp: rename to atusb.*
- atrf/Makefile: change ben-wpan to atusb
- atrf/atusb.pro (LastNetListRead): update for name change
- tools/Makefile.common (CFLAGS): change fw/ include location from atrf/
  to atusb/
2010-10-25 00:10:00 -03:00
Werner Almesberger
57874cf5e2 Revert TVS size reduction. We're not ready for it yet.
- cntr/cntr.sch (VR1, VR2, VR3): reverted change to 0402, because this
  would be too difficult to route with current board
- cntr/cntr.sch (VR1, VR2, VR3): change voltage from 5.6 V to 5.5 V,
  for compatibility with selected part
- cntr/cntr.brd: updated for value change
2010-10-24 23:55:37 -03:00
Werner Almesberger
a2e91cf13e Take "pads" and "stdpass" modules from kicad-libs and remove local copy.
- atrf/wpan-atrf.pro, atusd/atusd.pro, cntr/cntr.pro: use "pads" footprint
  from kicad-libs
- atrf/wpan-atrf.pro, cntr/cntr.pro: use "stdpass" footprint from
  kicad-libs
- AUTHORS, modules/INFO, modules/pads.fpd, modules/stdpass.fpd: removed
  pads.fpd and stdpass.fpd
2010-10-24 23:52:23 -03:00
Werner Almesberger
69ddbf6f0c Added BOM data for "cntr" sub-project.
- bom/atrf.chr: tentative characteristics of two transient voltage
  suppressors
- bom/Makefile (CHR): added atrf.chr
- bom/atrf.sub: added tentative translation for TVSs
- bom/atrf.equ: added C8051F320 and mini-USB receptacle (for cntr)
- bom/atrf.inv: added 120x60 mil pad (for cntr)
- bom/atrf.sub: map footprint to value for PAD_12x60
- bom/Makefile: marked .par files as "precious"
- bom/Makefile (all, vpath): added cntr sub-project
- bom/dk/digi-key.equ: added cntr parts: C8051F320-GQ, LTST-C190KRKT,
  TVSs CT0603M4G and EZJ-P0V080GA, USB receptacle 1734035-2
2010-10-24 23:52:23 -03:00
Werner Almesberger
6e0abca154 bom/Makefile generalization
- bom/Makefile: simplify atusd.ord and atusd.par rule by using $^
- bom/Makefile: use pattern rule for atusd.ord and atusd.par
- bom/Makefile: since we can't have more than one percent sign on a
  dependency, add vpath
- bom/Makefile: use pattern rule for show-atusd. We also have to remove
  show-atusd from .PHONY because implicit rules are not applied to phony
  targets.
2010-10-24 23:51:50 -03:00
Werner Almesberger
2e742d9281 Assorted termination simulation cleanup.
- term/Makefile: "make qucs" shortcut for invoking qucs
- term/term.sch: disable switch to .dpl page after simulation
- term/term.sch: changed R3 from 50 Ohm to the more common 47 Ohm
- term/term.sch: changed C2 from 22 pF to 330 pF to match TVS
- term/term.sch: renamed Vin to Vdst and put graph in diagram on top
- term/term.sch: added more annotations
2010-10-24 20:15:11 -03:00
Werner Almesberger
021bb00e96 Cleaned up component values in cntr schematics.
- cntr/cntr.sch: LED part number is LTST-C190KRKT, not LTST-C190KTKR
- cntr/cntr.sch: changed Vdc of VR4 from 5.6 V to 5.5 V (to match EPCOS
  CT0603M4G
- cntr/cntr.sch: changed VR1 through VR3 to 0402 for lower capacitance
2010-10-24 19:43:53 -03:00
Werner Almesberger
41765416db cntr/term/term.sch: simulation of impedance-matched termination circuit 2010-10-24 13:07:24 -03:00
Werner Almesberger
6668a6de02 Added (partially incorrect, see INFO) footprint of F MMCX board edge connector
- AUTHORS, modules/INFO, modules/mmcx-f-edge.fpd: MMCX female SMT board
  edge connector (not entirely correct, due to limitations of fped)
- BOOKSHELF: added Molex 73415-0961 data sheet
2010-10-24 01:42:53 -03:00
Werner Almesberger
850e9fca29 More rm -rf to rm -f changes.
- bom/Makefile (atusd.ord, atusd.par): rm -r in case of failure is enough
  (reported by Wolfgang Spraul)
2010-10-23 08:39:51 -03:00
Werner Almesberger
2dec6466c4 Use prettyord -t plus a tiny bit of shell to do what SHOW_PRETTY did.
- bom/Makefile (SHOW_PRETTY): open-coded what little remained of this macro
- bom/Makefile (show-atusd): use prettyord -t to simplify the formatting
2010-10-17 20:37:42 -03:00
Werner Almesberger
265ba07ab2 eda-tools now has all the R and C we need here. Removed local database.
- bom/Makefile: access database in eda-tools/boom/
- dk/digi-key.equ: removed resistors and capacitors
- bom/Makefile, bom/avx.gen, bom/johanson.gen, bom/murata.gen,
  bom/panasonic.gen, bom/stackpole.chr, bom/tdk.gen, bom/yageo.gen: remove
  databases already present in eda-tools
2010-10-17 20:23:52 -03:00
Werner Almesberger
bcbd6d8370 Merge branch 'master' of projects.qi-hardware.com:ben-wpan 2010-10-03 21:57:57 -03:00
Werner Almesberger
b1f1b48bac Moved dsv to eda-tools.
- scripts/dsv: moved to eda-tools/dsv/dsv
- Makefile: changed path to dsv's new location
2010-10-03 21:56:22 -03:00
kristianpaul
76322b9f4c Added filled case version 2010-10-02 22:12:22 -05:00
kristianpaul
be87d645e6 New case design blue collored ~4 mm high 2010-09-28 22:04:18 -05:00
kristianpaul
058c417219 Updated instruccions about how to get the gerber in Heekscad also niw Case is now full green 2010-09-25 13:50:09 -05:00
kristianpaul
9b99628aff Merge branch 'master' of projects.qi-hardware.com:ben-wpan 2010-09-25 13:29:44 -05:00
kristianpaul
5810f2bf21 Added 6mm tall case 2010-09-25 13:28:50 -05: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
kristianpaul
6af7641ed8 Added first alpha design files for atusd case 2010-09-25 13:04:55 -05:00
Werner Almesberger
e89fc6ab4c Added the Johanson 2450FB15L0001 balun as a less expensive alternative to the
Wuerth 748421245.

- BOOKSHELF (balun3): added data sheet for Johanson 2450FB15L0001
- bom/atrf.equ: Johanson 2450FB15L0001 and 2450FB15L0001E (Digi-Key use)
  are equivalent
2010-09-22 12:33:02 -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
Werner Almesberger
c99ba2c769 atspi-txrx can now send repeatedly, cleans up on ^C, prints the power level.
if it differs by more than 0.01 dBm from the level specified
- tools/atspi-txrx/Makefile (LDLIBS): added -lm, for fabs()
- tools/atspi-txrx/atspi-txrx.c (transmit, usage, main): add optional
  command-line argument with the number of times to send the message
- tools/atspi-txrx/atspi-txrx.c (receive, transmit, die, main): return and
  clean up on ^C
- tools/tools/lib/misctxrx.c (wait_for_interrupt) return and raise SIGINT
  for the caller's signal handler on ^C
2010-09-14 17:12:03 -03:00
Werner Almesberger
b390b28364 atusd/ERRATA: started errata section for 100912. Nothing major so far. 2010-09-14 13:44:16 -03:00