--- aes2501-wy-0.1.orig/aes2501.1
+++ aes2501-wy-0.1/aes2501.1
@@ -0,0 +1,53 @@
+.TH "AES2501-WY" "1"
+.SH "NAME"
+aes2501 \(em program to acquire fingerprints from aes2501 scanner
+.SH "SYNOPSIS"
+.PP
+\fBaes2501 [\-r]\fR
+.SH "DESCRIPTION"
+.PP
+This manual page documents briefly the
+\fBaes2501\fR command.
+.PP
+\fBaes2501\fR is a command line program that
+scans fingerprints from an aes2501 scanner. It creates an image in local
+directory named \fBfp.pnm\fP, so assure you have write
+permissions in the directory you
+exec the command.
+.PP
+The AES 2501 fingerprint scanner vendor is Authentec and this sensor
+can be found in:
+.PP
+
+.IP " \(bu" 6
+Medion MD85264 USB sensor
+.IP " \(bu" 6
+HP nx6125 notebook
+.IP " \(bu" 6
+HP Compaq nx6320 notebook
+.IP " \(bu" 6
+Fujitsu-Siemens P7120 notebook.
+.IP " \(bu" 6
+LG P1 PRO Express Dual notebook.
+.PP
+Please, if you have this device and It's not in this list, send
+us to include it. (xerakko \-at- debian \-dot- org)
+.SH "OPTIONS"
+.PP
+\-r Scan in reverse mode
+.SH "SEE ALSO"
+.PP
+fvs (1)
+.SH "AUTHOR"
+.PP
+This manual page was written by Miguel Gea Milvaques xerakko@debian.org for
+the \fBDebian\fP system (but may be used by others). Permission is
+granted to copy, distribute and/or modify this document under
+the terms of the GNU General Public License, Version 2 or any
+later version published by the Free Software Foundation.
+
+.PP
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
+
+.\" created by instant / docbook-to-man, Wed 05 Mar 2008, 23:02
--- aes2501-wy-0.1.orig/aes2501.c
+++ aes2501-wy-0.1/aes2501.c
@@ -37,7 +37,7 @@
/**********************************************************
** Utility funtions
**********************************************************/
-static int debug_level = 20;
+static int debug_level = 0;
static time_t tstart_sec = 0;
static uint32_t tstart_usec = 0;
@@ -131,8 +131,8 @@
usec = 1000000 + usec - tstart_usec;
sec--;
}
- snprintf(buf, size, "%lu.%03u", (unsigned long) sec,
- (unsigned) (usec/1000));
+ //snprintf(buf, size, "%lu.%03u", (unsigned long) sec,
+ // (unsigned) (usec/1000));
}
static
@@ -535,11 +535,14 @@
static
unsigned assemble(const uint8_t *raw, uint8_t *img, unsigned nstrips,
- int overlap)
+ int overlap, unsigned reverse)
{
uint8_t *img2 = img;
unsigned s,r,c,h;
-
+
+ if (reverse)
+ raw = raw + 192*8*(nstrips-1);
+
/* Transpose: convert column-wise to row-wise data. */
for (s = 0; s != nstrips; s++) {
for (c = 0; c != 192; c++) {
@@ -549,12 +552,16 @@
}
}
img += 192*16;
- raw += 192*8;
+ if (reverse)
+ raw -= 192*8;
+ else
+ raw += 192*8;
}
if (overlap) {
img = img2;
img2 = img + 192*16;
+
h = 0;
for (s = 1; s != nstrips; s++) {
unsigned o = findMovement(img, img2, 16);
@@ -628,7 +635,13 @@
unsigned sheight = 16;
unsigned maxstrip = 150;
unsigned nstrips, height;
+ unsigned reverse=0;
+ printf("argc=%d ",argc);
+ if ((argc>1) && (strcmp(argv[1],"-r") ==0 )) {
+ reverse=1;
+ printf("Param=%s\n",argv[1]);
+ }
printf("Initializing, please standby...\n");
init();
if (ndevices == 0) {
@@ -652,17 +665,17 @@
nstrips = aesReadFingerprint(aes, raw, maxstrip);
printf("Assembling...\n");
- height = assemble(raw, cooked, nstrips, 1);
- if (height < 100) {
+ height = assemble(raw, cooked, nstrips, 1,reverse);
+ if (height >= 100) {
/* It was a "touch", not a finger scan. */
- break;
- }
+
toPNM(cooked, swidth, height, fp_pnm);
- height = assemble(raw, cooked, nstrips, 0);
+ height = assemble(raw, cooked, nstrips, 0,reverse);
toPNM(cooked, swidth, height, fporig_pnm);
system(displayCmd);
printf("\n");
+ }
}
printf("Terminating...\n");
aesStandby(aes);
--- aes2501-wy-0.1.orig/debian/aes2501.sgml
+++ aes2501-wy-0.1/debian/aes2501.sgml
@@ -0,0 +1,119 @@
+Miguel">
+ Gea Milvaques">
+ març 9, 2007">
+ 1">
+ xerakko@debian.org">
+
+ AES2501-WY">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2007
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+ program to acquire fingerprints from aes2501 scanner
+
+
+
+ &dhpackage; [-r]
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage; command.
+
+ &dhpackage; is a command line program that
+ scans fingerprints from an aes2501 scanner. It creates an image in local
+ directory named fp.pnm, so assure you have write
+ permissions in the directory you
+ exec the command.
+ The AES 2501 fingerprint scanner vendor is Authentec and this sensor
+ can be found in:
+
+
+ Medion MD85264 USB sensor
+ HP nx6125 notebook
+ HP Compaq nx6320 notebook
+ Fujitsu-Siemens P7120 notebook.
+ LG P1 PRO Express Dual notebook.
+
+
+ Please, if you have this device and It's not in this list, send
+ us to include it. (xerakko -at- debian -dot- org)
+
+
+
+ OPTIONS
+
+ -r Scan in reverse mode
+
+
+
+ SEE ALSO
+
+ fvs (1)
+
+
+
+ AUTHOR
+
+ This manual page was written by &dhusername; &dhemail; for
+ the &debian; system (but may be used by others). Permission is
+ granted to copy, distribute and/or modify this document under
+ the terms of the &gnu; General Public License, Version 2 or any
+ later version published by the Free Software Foundation.
+
+
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in /usr/share/common-licenses/GPL.
+
+
+
+
+
+
+
+
--- aes2501-wy-0.1.orig/debian/changelog
+++ aes2501-wy-0.1/debian/changelog
@@ -0,0 +1,54 @@
+aes2501-wy (0.1-5ubuntu2) zesty; urgency=medium
+
+ * debian/compat: Bump to 9.
+ * debian/control:
+ - Build-depend on debhelper (>= 9).
+ * debian/rules:
+ - Add recommended build-arch and build-indep targets.
+ - Use dh_prep instead of dh_clean -k.
+
+ -- Bhavani Shankar Tue, 28 Feb 2017 20:56:10 +0530
+
+aes2501-wy (0.1-5ubuntu1) precise; urgency=low
+
+ * debian/control
+ - Fixed typo in Description field. (LP: #950441)
+
+ -- Ronny Cardona Thu, 08 Mar 2012 18:26:06 -0600
+
+aes2501-wy (0.1-5) unstable; urgency=low
+
+ * Added recommends for imagemagick.
+
+ -- Miguel Gea Milvaques Thu, 27 Dec 2007 13:29:31 +0100
+
+aes2501-wy (0.1-4) unstable; urgency=low
+
+ * Added more supported models to list
+ * Changed Maintainer/uploaders to fingerforce-devel list mail.
+ * Moved Homepage tag in control
+ * Updated Policy version
+
+ -- Miguel Gea Milvaques Thu, 27 Dec 2007 13:28:06 +0100
+
+aes2501-wy (0.1-3) unstable; urgency=low
+
+ * Added HP Compaq nx6320 to list of supported models. (Closes: #426926)
+ * removed linux/compiler.h header in usb.c file. Now builds ok.
+ (Closes: #427259)
+
+ -- Miguel Gea Milvaques Fri, 01 Jun 2007 16:43:41 +0200
+
+aes2501-wy (0.1-2) unstable; urgency=low
+
+ * Spelling changes in control and aes2501.sgml files (Thanks to Frank
+ Lichtenheld). Closes: #422565
+
+ -- Miguel Gea Milvaques Sun, 20 May 2007 23:50:57 +0200
+
+aes2501-wy (0.1-1) unstable; urgency=low
+
+ * Initial release (Closes: #412566)
+
+ -- Miguel Gea Milvaques Fri, 9 Mar 2007 13:20:43 +0100
+
--- aes2501-wy-0.1.orig/debian/compat
+++ aes2501-wy-0.1/debian/compat
@@ -0,0 +1 @@
+9
--- aes2501-wy-0.1.orig/debian/control
+++ aes2501-wy-0.1/debian/control
@@ -0,0 +1,39 @@
+Source: aes2501-wy
+Section: graphics
+Priority: optional
+Maintainer: Ubuntu Developers
+XSBC-Original-Maintainer: FingerForce Team
+Uploaders: Luca Capello , Miguel Gea Milvaques
+Build-Depends: debhelper (>= 9), docbook-to-man
+Standards-Version: 3.7.3
+Homepage: http://gkall.hobby.nl/authentec.html
+
+Package: aes2501-wy
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: imagemagick
+Description: userspace software for usb aes2501 fingerprint scanner
+ Command line scanning sofware for AES2501 usb fingerprint reader. The output
+ are grayscale pnm files with quite good quality.
+ .
+ The AES 2501 fingerprint scanner vendor is Authentec and this sensor can be
+ found in:
+ * Medion MD85264 USB sensor
+ * HP nx6125 notebook
+ * HP Compaq 6710b
+ * HP Compaq 6510b
+ * HP Compaq nx6320
+ * HP nx6325
+ * HP Compaq nc8430
+ * HP Compaq nc6320
+ * Compaq HEL80/81 notebook
+ * Fujitsu-Siemens P7120 notebook.
+ * LG P1 PRO Express Dual notebook.
+ * LG S1 Pro Express Dual notebook
+ * Lenovo 3000 N100
+ * Lenovo 3000 n200 notebook
+ * Toshiba Libretto U100
+ * Toshiba Portégé R200 notebook
+ * Targa Traveller 1577 X2
+
+
--- aes2501-wy-0.1.orig/debian/copyright
+++ aes2501-wy-0.1/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by Miguel Gea Milvaques on
+Fri, 9 Mar 2007 13:20:43 +0100.
+
+It was downloaded from http://gkall.hobby.nl/aes2501-wy.tar.bz2
+
+Upstream Author: Wittawat Yamwong
+
+
+Copyright: (2006) Wittawat Yamwong
+
+
+License:
+
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+
+The Debian packaging is (C) 2007, Miguel Gea Milvaques and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- aes2501-wy-0.1.orig/debian/dirs
+++ aes2501-wy-0.1/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- aes2501-wy-0.1.orig/debian/docs
+++ aes2501-wy-0.1/debian/docs
@@ -0,0 +1 @@
+NOTES
--- aes2501-wy-0.1.orig/debian/rules
+++ aes2501-wy-0.1/debian/rules
@@ -0,0 +1,81 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+
+ touch configure-stamp
+
+
+build: build-stamp
+build-arch: build-stamp
+build-indep: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ $(MAKE)
+ docbook-to-man debian/aes2501.sgml > aes2501.1
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ rm -f aes2501 aes2501.o usb.o
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ # Add here commands to install the package into debian/aes2501-wy.
+ cp aes2501 $(CURDIR)/debian/aes2501-wy/usr/bin
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installman aes2501.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install configure
--- aes2501-wy-0.1.orig/usb.c
+++ aes2501-wy-0.1/usb.c
@@ -28,7 +28,7 @@
#include
#include
#include
-#include
+//#include
#include
#include
#include