Browse Source

rfid_patterns.txt, needed by passdb

* cleanup vestigial comments in pass_communication.c
clementinecomputing 6 years ago
parent
commit
27ac032366
2 changed files with 13 additions and 1 deletions
  1. 1 1
      busunit/passdb/pass_communication.c
  2. 12 0
      busunit/passdb/rfid_patterns.txt

+ 1 - 1
busunit/passdb/pass_communication.c

@@ -703,7 +703,7 @@ int do_zflush(passdb_context *ctx, void *data, int len)
                     //In fast mode, we apply all of our update to the memory window without calling msync() or write(), and then
                     //(see below) when we're done rewriting the mmap()'d window for the local database, then we make one call
                     //to msync() or write() and splat it all down to flash at once.  This gets us a better compression ratio
-                    //on the large chunks of file (like the Cornell passes) which change infrequently and it produces less
+                    //on the large chunks of file which change infrequently and it produces less
                     //filesystem fragmentation, but it means that it is theoretically possible for a power event to cause a
                     //partial write to corrupt the local database (requiring a new flush).  That being said, when running on
                     //top of JFFS2, this should cause file truncation, which will be easily detectable and trigger another

+ 12 - 0
busunit/passdb/rfid_patterns.txt

@@ -0,0 +1,12 @@
+#Bits	Shift	Mask			Match			SiteShift	SiteMask		IDShift	IdMask
+#xx	xx	xxxxxxxxxxxxxxxx	xxxxxxxxxxxxxxxx	xx		xxxxxxxxxxxxxxxx	xx	xxxxxxxxxxxxxxxx
+
+# Pattern to ignore the high bit of the site ID
+23	15	0000000000000FFF	00000000000001FB	15		0000000000000FFF	01	00000000000FFFFF
+
+# 35 bit (0x23 bit) tag that uses all bits
+23	15	0000000000000000	0000000000000000	15		0000000000001FFF	01	00000000000FFFFF
+
+# Use all bits for a 26 bit (0x1A bit) tag
+1A	11	0000000000000000	0000000000000000	11		00000000000000FF	01	000000000000FFFF
+