Send commitlog mailing list submissions to
        commitlog@lists.openmoko.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        commitlog-requ...@lists.openmoko.org

You can reach the person managing the list at
        commitlog-ow...@lists.openmoko.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r5860 - in trunk/gta02-core: . bom bom/dk
      (wer...@docs.openmoko.org)
   2. r5861 - trunk/eda/boom (wer...@docs.openmoko.org)
   3. r5862 - trunk/gta02-core/bom (wer...@docs.openmoko.org)
   4. r5863 - in trunk/gta02-core/bom: . dk (wer...@docs.openmoko.org)
   5. r5864 - in trunk/gta02-core/bom: . farnell
      (wer...@docs.openmoko.org)
   6. r5865 - in trunk/gta02-core/bom: . arrow
      (wer...@docs.openmoko.org)
   7. r5866 - trunk/gta02-core/bom/dk (wer...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2010-03-31 20:17:01 +0200 (Wed, 31 Mar 2010)
New Revision: 5860

Modified:
   trunk/gta02-core/bom/dk/digi-key.equ
   trunk/gta02-core/bom/gta02-core.sub
   trunk/gta02-core/pmu.sch
Log:
- bom/gta02-core.sub: changed translation rule for HB414-IV01E from wildcard 
  (to handle space-separated) to underscore-separated
- bom/dk/digi-key.equ: added Murata BLM15HD102SN1 filter and Seiko HB414-IV01E
  backup battery
- pmu.sch: fixed typo in backup battery part name (was O instead of 0)



Modified: trunk/gta02-core/bom/dk/digi-key.equ
===================================================================
--- trunk/gta02-core/bom/dk/digi-key.equ        2010-03-27 13:45:38 UTC (rev 
5859)
+++ trunk/gta02-core/bom/dk/digi-key.equ        2010-03-31 18:17:01 UTC (rev 
5860)
@@ -34,3 +34,7 @@
 # Micron MT48H16M32LFCM-75:B TR
 
 DIGI-KEY 497-5911-1-ND                 STM LIS302DL
+
+DIGI-KEY 490-4003-1-ND                 MURATA BLM15HD102SN1
+DIGI-KEY 728-1041-1-ND                 SEIKO HB414-IV01E
+

Modified: trunk/gta02-core/bom/gta02-core.sub
===================================================================
--- trunk/gta02-core/bom/gta02-core.sub 2010-03-27 13:45:38 UTC (rev 5859)
+++ trunk/gta02-core/bom/gta02-core.sub 2010-03-31 18:17:01 UTC (rev 5860)
@@ -55,7 +55,7 @@
 VAL=DFBM-CS320         -> VAL=DFBM-CS320-FI1R
 VAL=FH23-39S           -> VAL=FH23-39S-0.3SHW(05)
 VAL=FH23-39S-0.3SHW    -> VAL=FH23-39S-0.3SHW(05)
-VAL=HB414*             -> VAL=HB414
+VAL=HB414_IV01E                -> VAL=HB414-IV01E
 VAL=HT110              -> VAL=HT-110USD5
 VAL=HT210              -> VAL=HT-210UD/NB
 VAL=K4M51323PE         -> VAL=K4M51323PC-DG75

Modified: trunk/gta02-core/pmu.sch
===================================================================
--- trunk/gta02-core/pmu.sch    2010-03-27 13:45:38 UTC (rev 5859)
+++ trunk/gta02-core/pmu.sch    2010-03-31 18:17:01 UTC (rev 5860)
@@ -1,4 +1,4 @@
-EESchema Schematic File Version 2  date Sun Feb  7 02:31:05 2010
+EESchema Schematic File Version 2  date Wed Mar 31 15:13:54 2010
 LIBS:power,device,conn,gta02-core,gta02-core-cache
 EELAYER 24  0
 EELAYER END
@@ -1084,7 +1084,7 @@
 U 1 1 4A3CEB03
 P 2500 7800
 F 0 "BAT1701" V 2300 8100 50  0000 C CNN
-F 1 "HB414 IVO1E" V 2700 8200 50  0000 C CNN
+F 1 "HB414 IV01E" V 2700 8200 50  0000 C CNN
        1    2500 7800
        0    1    1    0   
 $EndComp




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 20:18:37 +0200 (Wed, 31 Mar 2010)
New Revision: 5861

Modified:
   trunk/eda/boom/parser.pl
Log:
When parting the KiCad BOM or .inv or .equ files, convert special characters in
part names/numbers to underscores. This avoids situations where we end up with
meta-characters in part names and then have to use wildcards to still match
them.



Modified: trunk/eda/boom/parser.pl
===================================================================
--- trunk/eda/boom/parser.pl    2010-03-31 18:17:01 UTC (rev 5860)
+++ trunk/eda/boom/parser.pl    2010-03-31 18:18:37 UTC (rev 5861)
@@ -3,6 +3,22 @@
 use re 'eval';
 
 
+#
+# "sanitize" converts all "special" characters to underscores. This is used to
+# avoid part names that could conflict with other uses of meta-characters, such
+# as spaces or hash signs.
+#
+
+sub sanitize
+{
+       local (*s) = @_;
+       my $ok = '[^-a-zA-Z0-9._%,:()=+\/]';
+
+       print STDERR "converting special character(s) in $s\n" if $s =~ /$ok/;
+       $s =~ s/$ok/_/g;
+}
+
+
 sub skip
 {
     # do nothing
@@ -28,6 +44,9 @@
     my $ref = $1;
     my @f = split(/\s*;\s*/, $');
     next if $f[0] eq "NC";
+    for (@f) {
+       &sanitize(\$_);
+    }
     $cmp{$ref} = [ @f ];
 }
 
@@ -46,6 +65,8 @@
 sub equ
 {
     my @f = split(/\s+/);
+    &sanitize(\$f[1]);
+    &sanitize(\$f[3]);
     my $a = "$f[0] $f[1]";
     my $b = "$f[2] $f[3]";
     $id{$f[1]} = $a;
@@ -72,6 +93,7 @@
 sub inv
 {
     my @f = split(/\s+/);
+    &sanitize(\$f[1]);
     my $id = "$f[0] $f[1]";
     shift @f;
     my $ref = shift @f;




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 20:39:55 +0200 (Wed, 31 Mar 2010)
New Revision: 5862

Added:
   trunk/gta02-core/bom/stackpole.gen
Modified:
   trunk/gta02-core/bom/Makefile
   trunk/gta02-core/bom/misc.chr
Log:
We'll use a lot of resistors from Stackpole, so we generate their
characteristics from the part number.

- bom/stackpole.gen: rules to generate characteristics of some RMC series
  resistors by Stackpole Electronics, Inc.
- bom/Makefile: generate and use stackpole.chr
- bom/misc.chr: removed explicit characteristics of RMCF1/16S1501%R



Modified: trunk/gta02-core/bom/Makefile
===================================================================
--- trunk/gta02-core/bom/Makefile       2010-03-31 18:18:37 UTC (rev 5861)
+++ trunk/gta02-core/bom/Makefile       2010-03-31 18:39:55 UTC (rev 5862)
@@ -9,7 +9,7 @@
 EQU=fic/fic.equ fic/missing.equ dk/digi-key.equ mouser/mouser.equ
 INV=fic/fic.inv gta02-core.inv dummy.inv fic/missing.inv dk/digi-key.inv \
   mouser/mouser.inv
-CHR=darfon.chr ralec.chr avx.chr acx.chr misc.chr
+CHR=darfon.chr ralec.chr avx.chr acx.chr misc.chr stackpole.chr
 SCH=audio bt cpu-power cpu gps io lcm memory modem pmu sd-sim usb wlan
 
 .PHONY:                all optimist pessimist null spotless
@@ -51,6 +51,10 @@
                $(BOOM) gen2chr RALEC fic/fic.equ ralec.gen >$@ || \
                  { rm -f $@; exit 1; }
 
+stackpole.chr: dk/digi-key.equ stackpole.gen
+               $(BOOM) gen2chr STACKPOLE dk/digi-key.equ stackpole.gen >$@ || \
+                 { rm -f $@; exit 1; }
+
 fic/fic.equ:
                $(MAKE) -C fic fic.equ
 
@@ -72,7 +76,8 @@
 spotless:
                $(MAKE) -C fic spotless
                $(MAKE) -C dk spotless
-               rm -f gta02-core.par gta02-core.ord darfon.chr ralec.chr
+               rm -f gta02-core.par gta02-core.ord
+               rm -f darfon.chr ralec.chr stackpole.chr
                rm -f gta02-core-bom.pro gta02-core-bom.sch
                rm -f gta02-core-bom-all.ps.gz gta02-core-bom-all.pdf
                rm -f $(SCH:%=%-bom.sch) gta02-core-bom-*.ps

Modified: trunk/gta02-core/bom/misc.chr
===================================================================
--- trunk/gta02-core/bom/misc.chr       2010-03-31 18:18:37 UTC (rev 5861)
+++ trunk/gta02-core/bom/misc.chr       2010-03-31 18:39:55 UTC (rev 5862)
@@ -37,7 +37,3 @@
 # SAMSUNG
 
 SAMSUNG        CL05A475MQ5NRNC T=C     M=X5R   C=4.7uF TOL=20% V=6.3V  FP=0402
-
-# Stackpole Electronics Inc.
-
-STACKPOLE RMCF1/16S1501%R T=R  T=R     R=150R  TOL=1%  FP=0402 P=1/16W V=50V

Added: trunk/gta02-core/bom/stackpole.gen
===================================================================
--- trunk/gta02-core/bom/stackpole.gen                          (rev 0)
+++ trunk/gta02-core/bom/stackpole.gen  2010-03-31 18:39:55 UTC (rev 5862)
@@ -0,0 +1,24 @@
+#GEN
+
+# Stackpole Electronics Inc.
+#
+# http://www.seielect.com/Catalog/SEI-RMC.pdf
+
+#
+# RMCF series (RohS), 0402 package
+#
+
+RMCF* -> T=R {
+    RMCF1/16S(*)([15]%)R -> FP=0402 P=1/16W V=50V R=$REF:1 TOL=$REF:2
+}
+
+
+#
+# Normalize resistance
+#
+
+R=(*)K -> R=$R:1k              # 10K -> 10k
+R=*[0-9] -> R=${R}R            # 150 -> 150R
+
+# Accept
+!




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 21:26:55 +0200 (Wed, 31 Mar 2010)
New Revision: 5863

Modified:
   trunk/gta02-core/bom/dk/digi-key.equ
   trunk/gta02-core/bom/misc.chr
   trunk/gta02-core/bom/stackpole.gen
Log:
- bom/dk/digi-key.equ: replaced all resistors from Ralec that appeared in 
  "show-missing"
- bom/stackpole.gen: normalized resistance value must always end in "R", even 
  if it has a multiplier
- bom/misc.chr: added some resistors from Yageo and Vishay/Dale where we can't
  find a suitable Stackpole part at Digi-Key



Modified: trunk/gta02-core/bom/dk/digi-key.equ
===================================================================
--- trunk/gta02-core/bom/dk/digi-key.equ        2010-03-31 18:39:55 UTC (rev 
5862)
+++ trunk/gta02-core/bom/dk/digi-key.equ        2010-03-31 19:26:55 UTC (rev 
5863)
@@ -23,13 +23,24 @@
 # note: this digikey mic is similar to the IMP-413, but not equivalent.
 
 DIGI-KEY 668-1181-ND                   IMPERIAL IMP-413TN
-# note: Sim/SD card holder has a _slightly_ different footprint
+# note: SIM/SD card holder has a _slightly_ different footprint
 
 DIGI-KEY 101-00492-20-1-ND             PROCONN SMSN16-J0-2214
 DIGI-KEY 478-5526-1-ND                 AVX TLNS227M004R3000
 DIGI-KEY NTGD1100LT1GOSCT-ND           ON-SEMI NTGD1100L
+
+DIGI-KEY RMCF1/16S0RCT-ND              STACKPOLE RMCF1/16S0R
 DIGI-KEY RMCF1/16S150FRCT-ND           STACKPOLE RMCF1/16S1501%R
+DIGI-KEY RMCF1/16S220JR-ND             STACKPOLE RMCF1/16S2205%R
+DIGI-KEY RMCF1/16S100KJRCT-ND          STACKPOLE RMCF1/16S100K5%R
 
+DIGI-KEY 311-220JRCT-ND                        YAGEO RC0402JR-07220RL
+DIGI-KEY 311-2.2KJRCT-ND               YAGEO RC0402JR-072K2L
+DIGI-KEY 311-39.0KLRCT-ND              YAGEO RC0402FR-0739KL
+
+DIGI-KEY 541-42.2LCT-ND                        VISHAY CRCW040242R2FKED
+DIGI-KEY 541-12.4KLCT-ND               VISHAY CRCW040212K4FKED
+
 DIGI-KEY 557-1388-1-ND                 SAMSUNG K4M51323PC-DG75
 # Micron MT48H16M32LFCM-75:B TR
 
@@ -37,4 +48,3 @@
 
 DIGI-KEY 490-4003-1-ND                 MURATA BLM15HD102SN1
 DIGI-KEY 728-1041-1-ND                 SEIKO HB414-IV01E
-

Modified: trunk/gta02-core/bom/misc.chr
===================================================================
--- trunk/gta02-core/bom/misc.chr       2010-03-31 18:39:55 UTC (rev 5862)
+++ trunk/gta02-core/bom/misc.chr       2010-03-31 19:26:55 UTC (rev 5863)
@@ -37,3 +37,18 @@
 # SAMSUNG
 
 SAMSUNG        CL05A475MQ5NRNC T=C     M=X5R   C=4.7uF TOL=20% V=6.3V  FP=0402
+
+# Yageo
+
+# http://www.yageo.com/pdf/Pu-RC0402_51_PbFree_L_2.pdf
+
+YAGEO RC0402JR-07220RL T=R     R=220R  TOL=5%  FP=0402 P=1/16W V=50V
+YAGEO RC0402JR-072K2L  T=R     R=2.2kR TOL=5%  FP=0402 P=1/16W V=50V
+YAGEO RC0402FR-0739KL  T=R     R=39kR  TOL=1%  FP=0402 P=1/16W V=50V
+
+# Vishay/Dale
+
+# http://www.vishay.com/doc?20035
+
+VISHAY CRCW040242R2FKED        T=R     R=42.2R TOL=1%  FP=0402 P=1/16W V=50V
+VISHAY CRCW040212K4FKED        T=R     R=12.4kR TOL=1% FP=0402 P=1/16W V=50V

Modified: trunk/gta02-core/bom/stackpole.gen
===================================================================
--- trunk/gta02-core/bom/stackpole.gen  2010-03-31 18:39:55 UTC (rev 5862)
+++ trunk/gta02-core/bom/stackpole.gen  2010-03-31 19:26:55 UTC (rev 5863)
@@ -9,7 +9,8 @@
 #
 
 RMCF* -> T=R {
-    RMCF1/16S(*)([15]%)R -> FP=0402 P=1/16W V=50V R=$REF:1 TOL=$REF:2
+    RMCF1/16S(*)R -> FP=0402 P=1/16W V=50V R=$REF:1R
+    RMCF1/16S(*)([15]%)R -> FP=0402 P=1/16W V=50V R=$REF:1R TOL=$REF:2
 }
 
 
@@ -17,8 +18,7 @@
 # Normalize resistance
 #
 
-R=(*)K -> R=$R:1k              # 10K -> 10k
-R=*[0-9] -> R=${R}R            # 150 -> 150R
+R=(*)KR -> R=$R:1kR            # 10KR -> 10kR
 
 # Accept
 !




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 21:51:37 +0200 (Wed, 31 Mar 2010)
New Revision: 5864

Added:
   trunk/gta02-core/bom/farnell/
   trunk/gta02-core/bom/farnell/farnell.dsc
   trunk/gta02-core/bom/farnell/farnell.equ
   trunk/gta02-core/bom/farnell/farnell.inv
Modified:
   trunk/gta02-core/bom/Makefile
Log:
Found Micro Crystal CC7V-T1A via Octopart.

- bom/farnell/: files for Farnell catalog
- bom/Makefile: use Farnell catalog as well. "make show-farnell" shows items to
  order.



Modified: trunk/gta02-core/bom/Makefile
===================================================================
--- trunk/gta02-core/bom/Makefile       2010-03-31 19:26:55 UTC (rev 5863)
+++ trunk/gta02-core/bom/Makefile       2010-03-31 19:51:37 UTC (rev 5864)
@@ -6,14 +6,15 @@
 ANNOTATE=ord   # make ANNOTATE=par ... for the parts list
 
 KITS=20
-EQU=fic/fic.equ fic/missing.equ dk/digi-key.equ mouser/mouser.equ
-INV=fic/fic.inv gta02-core.inv dummy.inv fic/missing.inv dk/digi-key.inv \
-  mouser/mouser.inv
+EQU=fic/fic.equ fic/missing.equ \
+    dk/digi-key.equ mouser/mouser.equ farnell/farnell.equ
+INV=fic/fic.inv gta02-core.inv dummy.inv fic/missing.inv \
+    dk/digi-key.inv mouser/mouser.inv farnell/farnell.inv
 CHR=darfon.chr ralec.chr avx.chr acx.chr misc.chr stackpole.chr
 SCH=audio bt cpu-power cpu gps io lcm memory modem pmu sd-sim usb wlan
 
 .PHONY:                all optimist pessimist null spotless
-.PHONY:                show-dup show-missing show-dk show-fic show-mouser
+.PHONY:                show-dup show-missing show-dk show-fic show-mouser 
show-farnell
 .PHONY:                ann sch gen generate gv xpdf upload
 
 all:           gta02-core.ord
@@ -102,6 +103,12 @@
                  sed 's/^...  //' | \
                  awk '{ s += $$(NF); print; } END { print "USD", s }'
 
+show-farnell:  gta02-core.ord farnell/farnell.dsc
+               (echo '#ORD'; grep '^FARNELL ' gta02-core.ord ; ) | \
+                 $(BOOM) prettyord - farnell/farnell.dsc | \
+                 sed 's/^...  //' | \
+                 awk '{ s += $$(NF); print; } END { print "UKP", s }'
+
 show-fic:      $(EQU) fic/fic.dsc
                (echo '#ORD'; grep '^FIC ' gta02-core.ord ; ) | \
                  $(BOOM) prettyord '-s/OldPn (\S+)/FIC/' \

Added: trunk/gta02-core/bom/farnell/farnell.dsc
===================================================================
--- trunk/gta02-core/bom/farnell/farnell.dsc                            (rev 0)
+++ trunk/gta02-core/bom/farnell/farnell.dsc    2010-03-31 19:51:37 UTC (rev 
5864)
@@ -0,0 +1,3 @@
+#DSC
+
+FARNELL 1539380                CRYSTAL, SMD CER 32.768KHZ 12.5

Added: trunk/gta02-core/bom/farnell/farnell.equ
===================================================================
--- trunk/gta02-core/bom/farnell/farnell.equ                            (rev 0)
+++ trunk/gta02-core/bom/farnell/farnell.equ    2010-03-31 19:51:37 UTC (rev 
5864)
@@ -0,0 +1,5 @@
+#EQU
+
+FARNELL        1539380         MICRO-CRYSTAL CC7V-T1A
+# the full Micro Crystal part name is
+# CC7V-T1A 32.768KHZ +-20PPM 12.5PF

Added: trunk/gta02-core/bom/farnell/farnell.inv
===================================================================
--- trunk/gta02-core/bom/farnell/farnell.inv                            (rev 0)
+++ trunk/gta02-core/bom/farnell/farnell.inv    2010-03-31 19:51:37 UTC (rev 
5864)
@@ -0,0 +1,2 @@
+#INV
+FARNELL 1539380                1188 UKP 1 1.20 10 0.99 1 0.99 100 0.86 1 0.86 
250 0.74 1 0.74




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 22:25:35 +0200 (Wed, 31 Mar 2010)
New Revision: 5865

Added:
   trunk/gta02-core/bom/arrow/
   trunk/gta02-core/bom/arrow/arrow.dsc
   trunk/gta02-core/bom/arrow/arrow.equ
   trunk/gta02-core/bom/arrow/arrow.inv
Modified:
   trunk/gta02-core/bom/Makefile
Log:
- bom/arrow/: added Arrow NAC catalog
- bom/Makefile: use Arrow NAC catalog (incl. show-arrow)
- bom/Makefile: the various show-<distributor> targets now use common macro
  SHOW_PRETTY



Modified: trunk/gta02-core/bom/Makefile
===================================================================
--- trunk/gta02-core/bom/Makefile       2010-03-31 19:51:37 UTC (rev 5864)
+++ trunk/gta02-core/bom/Makefile       2010-03-31 20:25:35 UTC (rev 5865)
@@ -7,14 +7,15 @@
 
 KITS=20
 EQU=fic/fic.equ fic/missing.equ \
-    dk/digi-key.equ mouser/mouser.equ farnell/farnell.equ
+    dk/digi-key.equ mouser/mouser.equ farnell/farnell.equ arrow/arrow.equ
 INV=fic/fic.inv gta02-core.inv dummy.inv fic/missing.inv \
-    dk/digi-key.inv mouser/mouser.inv farnell/farnell.inv
+    dk/digi-key.inv mouser/mouser.inv farnell/farnell.inv arrow/arrow.inv
 CHR=darfon.chr ralec.chr avx.chr acx.chr misc.chr stackpole.chr
 SCH=audio bt cpu-power cpu gps io lcm memory modem pmu sd-sim usb wlan
 
 .PHONY:                all optimist pessimist null spotless
-.PHONY:                show-dup show-missing show-dk show-fic show-mouser 
show-farnell
+.PHONY:                show-dup show-missing
+.PHONY:                show-dk show-fic show-mouser show-farnell show-arrow
 .PHONY:                ann sch gen generate gv xpdf upload
 
 all:           gta02-core.ord
@@ -91,24 +92,27 @@
                  $(BOOM) prettyord - $(EQU) fic/fic.dsc | \
                  sed 's/^...  \(.\{,78\}\).*/\1/'
 
+
+# --- show priced orders by distributor ---------------------------------------
+
+
+SHOW_PRETTY = (echo '\#ORD'; grep '^$(1) ' gta02-core.ord ; ) | \
+                  $(BOOM) prettyord - $(2) | \
+                  sed 's/^...  //' | \
+                  awk '{ s += $$(NF); print; } END { print "$(3)", s }'
+
 show-dk:       gta02-core.ord dk/digi-key.dsc
-               (echo '#ORD'; grep '^DIGI-KEY ' gta02-core.ord ; ) | \
-                 $(BOOM) prettyord - dk/digi-key.dsc | \
-                 sed 's/^...  //' | \
-                 awk '{ s += $$(NF); print; } END { print "USD", s }'
+               $(call SHOW_PRETTY,DIGI-KEY,dk/digi-key.dsc,USD)
 
 show-mouser:   gta02-core.ord mouser/mouser.dsc
-               (echo '#ORD'; grep '^MOUSER ' gta02-core.ord ; ) | \
-                 $(BOOM) prettyord - mouser/mouser.dsc | \
-                 sed 's/^...  //' | \
-                 awk '{ s += $$(NF); print; } END { print "USD", s }'
+               $(call SHOW_PRETTY,MOUSER,mouser/mouser.dsc,USD)
 
 show-farnell:  gta02-core.ord farnell/farnell.dsc
-               (echo '#ORD'; grep '^FARNELL ' gta02-core.ord ; ) | \
-                 $(BOOM) prettyord - farnell/farnell.dsc | \
-                 sed 's/^...  //' | \
-                 awk '{ s += $$(NF); print; } END { print "UKP", s }'
+               $(call SHOW_PRETTY,FARNELL,farnell/farnell.dsc,UKP)
 
+show-arrow:    gta02-core.ord arrow/arrow.dsc
+               $(call SHOW_PRETTY,ARROW,arrow/arrow.dsc,USD)
+
 show-fic:      $(EQU) fic/fic.dsc
                (echo '#ORD'; grep '^FIC ' gta02-core.ord ; ) | \
                  $(BOOM) prettyord '-s/OldPn (\S+)/FIC/' \

Added: trunk/gta02-core/bom/arrow/arrow.dsc
===================================================================
--- trunk/gta02-core/bom/arrow/arrow.dsc                                (rev 0)
+++ trunk/gta02-core/bom/arrow/arrow.dsc        2010-03-31 20:25:35 UTC (rev 
5865)
@@ -0,0 +1,3 @@
+#DSC
+ARROW PCF50633HN043UM  PCF50633HN043UM
+ARROW HT-210UD/NB      LED Bi-Color Amber/Blue 468nm/609nm

Added: trunk/gta02-core/bom/arrow/arrow.equ
===================================================================
--- trunk/gta02-core/bom/arrow/arrow.equ                                (rev 0)
+++ trunk/gta02-core/bom/arrow/arrow.equ        2010-03-31 20:25:35 UTC (rev 
5865)
@@ -0,0 +1,3 @@
+#EQU
+ARROW PCF50633HN043UM          NXP PCF50633HN/04/N3,5
+ARROW HT-210UD/NB              HARVATEK HT-210UD/NB

Added: trunk/gta02-core/bom/arrow/arrow.inv
===================================================================
--- trunk/gta02-core/bom/arrow/arrow.inv                                (rev 0)
+++ trunk/gta02-core/bom/arrow/arrow.inv        2010-03-31 20:25:35 UTC (rev 
5865)
@@ -0,0 +1,3 @@
+#INV
+ARROW PCF50633HN043UM  0 USD 1000 0.39
+ARROW HT-210UD/NB      0 USD 1 0.24




--- End Message ---
--- Begin Message ---
Author: werner
Date: 2010-03-31 22:59:34 +0200 (Wed, 31 Mar 2010)
New Revision: 5866

Modified:
   trunk/gta02-core/bom/dk/Makefile
   trunk/gta02-core/bom/dk/digi-key.equ
   trunk/gta02-core/bom/dk/dk-db.pl
Log:
When adding new components to the Digi-Key equivalences list, the entire
cache was updated. This makes progress slow and fires a lot of unnecessary
queries at Digi-Key's server. dk-db.pl now has the option to load an
existing cache and to skip any parts already mentioned there.

- bom/dk/dk-db.pl: in query mode, the cache can be grown incrementally with the
  -i option
- bom/dk/Makefile: use incremental mode
- bom/dk/digi-key.equ: added some more resistors



Modified: trunk/gta02-core/bom/dk/Makefile
===================================================================
--- trunk/gta02-core/bom/dk/Makefile    2010-03-31 20:25:35 UTC (rev 5865)
+++ trunk/gta02-core/bom/dk/Makefile    2010-03-31 20:59:34 UTC (rev 5866)
@@ -6,7 +6,10 @@
 
 $(CACHE):      digi-key.equ
                awk '/^DIGI-KEY / { print $$2 }' digi-key.equ | \
-                 perl ./dk-db.pl query >$@ || { rm -f $@; exit 1; }
+                 perl ./dk-db.pl query \
+                 `[ -r $(CACHE) ] && echo '' -i $(CACHE)` >_$@ || \
+                 { rm -f $@ _$@; exit 1; }
+               mv _$@ $@
 
 digi-key.dsc:  $(CACHE)
                perl ./dk-db.pl dsc $(CACHE) >$@ || { rm -f $@; exit 1; }
@@ -22,7 +25,7 @@
                $(MAKE) all
 
 clean:
-               rm -f $(CACHE)
+               rm -f $(CACHE) _$(CACHE)
 
 #
 # we don't do a "make clean" on "make spotless", so that things like "make
@@ -30,4 +33,4 @@
 #
 
 spotless:
-               rm -f digi-key.dsc digi-key.inv
+               rm -f digi-key.dsc digi-key.inv _$(CACHE)

Modified: trunk/gta02-core/bom/dk/digi-key.equ
===================================================================
--- trunk/gta02-core/bom/dk/digi-key.equ        2010-03-31 20:25:35 UTC (rev 
5865)
+++ trunk/gta02-core/bom/dk/digi-key.equ        2010-03-31 20:59:34 UTC (rev 
5866)
@@ -30,8 +30,11 @@
 DIGI-KEY NTGD1100LT1GOSCT-ND           ON-SEMI NTGD1100L
 
 DIGI-KEY RMCF1/16S0RCT-ND              STACKPOLE RMCF1/16S0R
+DIGI-KEY RMCF1/16S33JRCT-ND            STACKPOLE RMCF1/16S335%R
 DIGI-KEY RMCF1/16S150FRCT-ND           STACKPOLE RMCF1/16S1501%R
 DIGI-KEY RMCF1/16S220JR-ND             STACKPOLE RMCF1/16S2205%R
+DIGI-KEY RMCF1/16S1KJRCT-ND            STACKPOLE RMCF1/16S1K5%R
+DIGI-KEY RMCF1/16S10KJRCT-ND           STACKPOLE RMCF1/16S10K5%R
 DIGI-KEY RMCF1/16S100KJRCT-ND          STACKPOLE RMCF1/16S100K5%R
 
 DIGI-KEY 311-220JRCT-ND                        YAGEO RC0402JR-07220RL

Modified: trunk/gta02-core/bom/dk/dk-db.pl
===================================================================
--- trunk/gta02-core/bom/dk/dk-db.pl    2010-03-31 20:25:35 UTC (rev 5865)
+++ trunk/gta02-core/bom/dk/dk-db.pl    2010-03-31 20:59:34 UTC (rev 5866)
@@ -28,7 +28,7 @@
 
 sub usage
 {
-    print STDERR "usage: $0 (query|dsc|inv) [file ...]\n";
+    print STDERR "usage: $0 (query [-i cache_file] | dsc | inv) [file ...]\n";
     exit(1);
 }
 
@@ -37,23 +37,33 @@
 &usage unless $mode eq "query" || $mode eq "dsc" || $mode eq "inv";
 
 if ($mode eq "query") {
+    if ($ARGV[0] eq "-i") {
+       shift @ARGV;
+       $name = shift @ARGV;
+       open(OLD, $name) || die "$name: $!";
+       $q = join("", <OLD>);
+       ($old = $q) =~ tr/\r\n//d;
+       close OLD;
+    }
+
     while (<>) {
        chop;
        s/#.*//;
        next if /^\s*$/;
        next if /^\s/;
        s/\s.*//;
+       next if $old =~ m#align=right>Digi-Key Part Number</th><td>$_</td#;
        push(@pn, $_);
     }
 
-    exit unless 0...@pn;
+    if (0...@pn) {
+       $cmd = "wget -nv -O - ".join(" ",
+         map
+         
"http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail\\&name=$_";,
+         @pn);
+       $q .= `$cmd`;
+    }
 
-    $cmd = "wget -nv -O - ".join(" ",
-      map
-      "http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail\\&name=$_";,
-      @pn);
-    $q = `$cmd`;
-
     print $q;
     exit;
 }




--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to