sironitomas
Posts: 6
Joined: Mon Apr 23, 2012 12:59 pm

Re: Using the Rasbperry Pi as an access control system

Mon Apr 23, 2012 2:12 pm

Hello people. This is my first post to the forum. I bought a Raspberry Pi although I haven't got it yet. This is one of the projects I am thinking in.

The idea is very simple. My door has an electronic lock and I want the Raspi to open it echoing a logic 1 from a  GPIO pin.

Now comes the hard part. I want to use a USB fingerprint reader to authenticate a person's identity. I know there are some linux compatible but I don't know if there are any drivers/software available to the Raspi.

Has anybody used a fingerprint reader in Linux?

If you have any suggestions, please let me know.

Thanks.

Zagrophyte
Posts: 1
Joined: Mon Sep 03, 2012 8:19 pm

Re: Using the Rasbperry Pi as an access control system

Mon Sep 03, 2012 9:27 pm

I have successfully enabled fingerprint authentication in Raspbian Wheezy using the U.are.U 4000B Fingerprint Reader and the libfprint / pam_fprint software. Check available devices to see if yours is compatible.

FPrint Library:
http://www.freedesktop.org/wiki/Software/fprint/FAQ

PAM_FPrint (if you want to use fingerprint auth for logins):
http://www.freedesktop.org/wiki/Softwar ... pam_fprint

To get FPrint installed on the RaspberryPi (wheezy), this is what I did:
  1. First, install libfprint:

    Code: Select all

    sudo apt-get install libfprint0
  2. Then install libfprint-dev:

    Code: Select all

    sudo apt-get install libfprint-dev
  3. Optional: Install fprint-demo:

    Code: Select all

    sudo apt-get install fprint-demo
I'm still researching the best way to interface with libfprint for custom applications, but this library takes care of all the heavy lifting from the device so it's a great start.

I am currently using it for authentication for logins using the pam_fprint module.

rlaniel
Posts: 10
Joined: Tue Mar 13, 2012 7:50 pm

Re: Using the Rasbperry Pi as an access control system

Tue Sep 18, 2012 12:43 am

I was able to install DigitalPersona UareU 4500 fingerprint reader drivers using the UareU SDK v2.1.1 available on DigitalPersona website. I can see that the driver is loaded when the reader is connected to the RPI.

The problem is: I'm unable to run the include samples in the SDK. It always give me this error:
./UareUCaptureOnly: error while loading shared libraries: libdpfpdd.so.2: cannot open shared object file: No such file or directory

I tried to put the LD_LIBRARY_PATH environment variable to point to the SDK lib folder, but it doesn’t work. I even tried to create a file /etc/ld.so.conf.d/anything.conf file to include the lib folder, same thing, it doesn’t work. “sudo ldconfig” doesn’t give any errors.

The LD_LIBRARY_PATH is containing this: /opt/DigitalPersona/UareUSDK/Linux/lib/arm/
The file libdpfpdd.so.2 is really in this folder, but when I run: “LD_DEBUG=libs ./UareUCaptureOnly”, I get this:
1662: find library=libm.so.6 [0]; searching
1662: search path=tls/v6l/vfp:tls/v6l:tls/vfp:tls:v6l/vfp:v6l:vfp::/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/v6l/vfp:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/v6l:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/vfp:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/v6l/vfp:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/v6l:/opt/DigitalPersona/UareUSDK/Linux/lib/arm/vfp:/opt/DigitalPersona/UareUSDK/Linux/lib/arm (LD_LIBRARY_PATH)
1662: trying file=tls/v6l/vfp/libm.so.6
1662: trying file=tls/v6l/libm.so.6
1662: trying file=tls/vfp/libm.so.6
1662: trying file=tls/libm.so.6
1662: trying file=v6l/vfp/libm.so.6
1662: trying file=v6l/libm.so.6
1662: trying file=vfp/libm.so.6
1662: trying file=libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/v6l/vfp/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/v6l/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/vfp/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/tls/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/v6l/vfp/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/v6l/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/vfp/libm.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/libm.so.6
1662: search cache=/etc/ld.so.cache
1662: trying file=/lib/arm-linux-gnueabihf/libm.so.6
1662:
1662: find library=libc.so.6 [0]; searching
1662: search path=tls/v6l/vfp:tls/v6l:tls/vfp:tls:v6l/vfp:v6l:vfp::/opt/DigitalPersona/UareUSDK/Linux/lib/arm (LD_LIBRARY_PATH)
1662: trying file=tls/v6l/vfp/libc.so.6
1662: trying file=tls/v6l/libc.so.6
1662: trying file=tls/vfp/libc.so.6
1662: trying file=tls/libc.so.6
1662: trying file=v6l/vfp/libc.so.6
1662: trying file=v6l/libc.so.6
1662: trying file=vfp/libc.so.6
1662: trying file=libc.so.6
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/libc.so.6
1662: search cache=/etc/ld.so.cache
1662: trying file=/lib/arm-linux-gnueabihf/libc.so.6
1662:
1662: find library=libdpfpdd.so.2 [0]; searching
1662: search path=tls/v6l/vfp:tls/v6l:tls/vfp:tls:v6l/vfp:v6l:vfp::/opt/DigitalPersona/UareUSDK/Linux/lib/arm (LD_LIBRARY_PATH)
1662: trying file=tls/v6l/vfp/libdpfpdd.so.2
1662: trying file=tls/v6l/libdpfpdd.so.2
1662: trying file=tls/vfp/libdpfpdd.so.2
1662: trying file=tls/libdpfpdd.so.2
1662: trying file=v6l/vfp/libdpfpdd.so.2
1662: trying file=v6l/libdpfpdd.so.2
1662: trying file=vfp/libdpfpdd.so.2
1662: trying file=libdpfpdd.so.2
1662: trying file=/opt/DigitalPersona/UareUSDK/Linux/lib/arm/libdpfpdd.so.2
1662: search cache=/etc/ld.so.cache
1662: search path=/lib/arm-linux-gnueabihf/tls/v6l/vfp:/lib/arm-linux-gnueabihf/tls/v6l:/lib/arm-linux-gnueabihf/tls/vfp:/lib/arm-linux-gnueabihf/tls:/lib/arm-linux-gnueabihf/v6l/vfp:/lib/arm-linux-gnueabihf/v6l:/lib/arm-linux-gnueabihf/vfp:/lib/arm-linux-gnueabihf:/usr/lib/arm-linux-gnueabihf/tls/v6l/vfp:/usr/lib/arm-linux-gnueabihf/tls/v6l:/usr/lib/arm-linux-gnueabihf/tls/vfp:/usr/lib/arm-linux-gnueabihf/tls:/usr/lib/arm-linux-gnueabihf/v6l/vfp:/usr/lib/arm-linux-gnueabihf/v6l:/usr/lib/arm-linux-gnueabihf/vfp:/usr/lib/arm-linux-gnueabihf:/lib/tls/v6l/vfp:/lib/tls/v6l:/lib/tls/vfp:/lib/tls:/lib/v6l/vfp:/lib/v6l:/lib/vfp:/lib:/usr/lib/tls/v6l/vfp:/usr/lib/tls/v6l:/usr/lib/tls/vfp:/usr/lib/tls:/usr/lib/v6l/vfp:/usr/lib/v6l:/usr/lib/vfp:/usr/lib (system search path)
1662: trying file=/lib/arm-linux-gnueabihf/tls/v6l/vfp/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/tls/v6l/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/tls/vfp/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/tls/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/v6l/vfp/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/v6l/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/vfp/libdpfpdd.so.2
1662: trying file=/lib/arm-linux-gnueabihf/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/tls/v6l/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/tls/v6l/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/tls/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/tls/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/v6l/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/v6l/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/arm-linux-gnueabihf/libdpfpdd.so.2
1662: trying file=/lib/tls/v6l/vfp/libdpfpdd.so.2
1662: trying file=/lib/tls/v6l/libdpfpdd.so.2
1662: trying file=/lib/tls/vfp/libdpfpdd.so.2
1662: trying file=/lib/tls/libdpfpdd.so.2
1662: trying file=/lib/v6l/vfp/libdpfpdd.so.2
1662: trying file=/lib/v6l/libdpfpdd.so.2
1662: trying file=/lib/vfp/libdpfpdd.so.2
1662: trying file=/lib/libdpfpdd.so.2
1662: trying file=/usr/lib/tls/v6l/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/tls/v6l/libdpfpdd.so.2
1662: trying file=/usr/lib/tls/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/tls/libdpfpdd.so.2
1662: trying file=/usr/lib/v6l/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/v6l/libdpfpdd.so.2
1662: trying file=/usr/lib/vfp/libdpfpdd.so.2
1662: trying file=/usr/lib/libdpfpdd.so.2
1662:

The file is found, but not used.

Any ideas what I should try to do?

Thank you.

rlaniel
Posts: 10
Joined: Tue Mar 13, 2012 7:50 pm

Re: Using the Rasbperry Pi as an access control system

Thu Sep 20, 2012 3:06 am

Just to let you know, today, I tried the same finderprint reader (UareU 4500) using the same SDK from Digital Persona, but this time on Arch Linux and everything is working fine with the included samples.

I will try to build my own program and see how it goes.

dero
Posts: 21
Joined: Wed Nov 07, 2012 3:21 pm

Re: Using the Rasbperry Pi as an access control system

Wed Jul 24, 2013 9:39 pm

Did the UareU SDK work out? Could you please post an update on this?

Code: Select all

static int __trace( const char* file, const int line ) { pr_info( "#TRACE %s:%d\n", file, line ); return 1; }
#define return if( __trace( __FILE__, __LINE__) == 0 ) {} else return
#undef pr_debug
#define pr_debug pr_info

johnefe84
Posts: 1
Joined: Tue Mar 03, 2015 2:15 pm

Re: Using the Rasbperry Pi as an access control system

Tue Mar 03, 2015 2:26 pm

Hello. Can somebody share with me the digital personal SDK for linux? I can find it for download on google.
Actually Iam working in a access control in python. I already have a version for microsoft windows but want to migrate to linux and to raspberry pi.

Thanks

I am writing from Bogotá colombia south america

vvavepacket
Posts: 2
Joined: Thu Mar 05, 2015 1:32 pm

Re: Using the Rasbperry Pi as an access control system

Thu Mar 05, 2015 1:34 pm

May I know if its possible to use multiple u4500, deployed to different locations, and have some sort of centralize database or network them? What I want to do is that when I tap into any of my u4500, it gets registered.

johngamarra
Posts: 4
Joined: Fri Nov 23, 2012 6:54 pm

Re: Using the Rasbperry Pi as an access control system

Fri May 15, 2015 7:37 pm

johnefe84 wrote:Hello. Can somebody share with me the digital personal SDK for linux? I can find it for download on google.
Actually Iam working in a access control in python. I already have a version for microsoft windows but want to migrate to linux and to raspberry pi.

Thanks

I am writing from Bogotá colombia south america
I can help you, contact me at skype: sandrockcol

Gallosuarez
Posts: 1
Joined: Thu May 21, 2015 1:02 pm

Re: Using the Rasbperry Pi as an access control system

Thu May 21, 2015 1:20 pm

rlaniel:
rlaniel wrote:Just to let you know, today, I tried the same finderprint reader (UareU 4500) using the same SDK from Digital Persona, but this time on Arch Linux and everything is working fine with the included samples.

I will try to build my own program and see how it goes.
Trying to do the same thing (Raspberry Pi 2, Arch Linux and SDK from Digital Personal), not luck so far. Could you be kind enough to write down step by step what you did?

Thanks in advanced,
Gerardo Suarez Trejo

mavirroco
Posts: 2
Joined: Sat Jul 18, 2015 3:51 am

Re: Using the Rasbperry Pi as an access control system

Sat Jul 18, 2015 4:00 am

me too i was trying with no luck with raspbian, archilinux,pidora,....
seems package kernel-devel is not in those OS.

Altierres
Posts: 1
Joined: Mon Aug 24, 2015 11:42 am

Re: Using the Rasbperry Pi as an access control system

Mon Aug 24, 2015 11:46 am

I'm having the same problem, SDK I got works perfectly only in kernel 2.6. *, is I do the raspbean kernel downgrade to the 2.6 kernel. *?I am using the SDK digital persona.

lcoronelp
Posts: 1
Joined: Mon Oct 12, 2015 3:28 pm

Re: Using the Rasbperry Pi as an access control system

Mon Oct 12, 2015 4:12 pm

Update In Wheezy based Raspbian, we have the version 0.4 of libfprint, this version not work with u4500, only with the u4000, so that this device doesnt work. I updated to jessie version 0.5 and work perfectly!

Thanks! :D

Hello guys,

I have a different problem:

When i connect the u4500 at PC (debian) works perfectly with fprint_demo but when i connect the device to Raspberry (raspbian) when i use fprint_demo and click on "enroll", the device does not turn on the blue neither red leds.

I think that the raspberry USB port doesn't have too much capacity to turn on this leds, but with the command lsusb the device is present and the fprint_demo recognize it.

I tried with an 5V 2A power supply, 5V 0.7A, 5V 1A and the USB port from PC but the result is the same.

Do you think that is a power consumption problem?

I have a U4500, Raspberry Pi 2 and Waveshare SpotPear 4inch touchscreen.

Thanks a lot in advance!
Leonardo Coronel

jb63
Posts: 152
Joined: Mon May 11, 2015 6:41 pm
Location: Chicago, USA
Contact: Website

Re: Using the Rasbperry Pi as an access control system

Fri Nov 13, 2015 3:03 pm

Anyone managed to get the Microsoft 1033 Fingerprint Reader with a PI2 running Raspbian?

Miqi
Posts: 6
Joined: Wed Nov 28, 2018 5:21 pm

Re: Using the Rasbperry Pi as an access control system

Thu Jan 31, 2019 10:41 pm

Hello, I've got the U.are.U 4500 working with fprintd-enroll and fprintd-verify in the terminal, but now I'm trying to integrate it with a flask app for user login. Do I need to use the bash commands in my flask code, or is there an easier way to integrate fprintd?

Please be gentle as I'm fairly new to python in general :D

jeedee23
Posts: 2
Joined: Mon Dec 30, 2019 7:52 pm

Re: Using the Rasbperry Pi as an access control system

Mon Dec 30, 2019 8:01 pm

Miqi wrote:
Thu Jan 31, 2019 10:41 pm
Hello, I've got the U.are.U 4500 working with fprintd-enroll and fprintd-verify in the terminal, but now I'm trying to integrate it with a flask app for user login. Do I need to use the bash commands in my flask code, or is there an easier way to integrate fprintd?

Please be gentle as I'm fairly new to python in general :D
Hi , were you able to implement it in a flask app?
The fprintd is quite complex, as to avoid fraud and mismatches, so the DP fingerprint scanner is one of the better. A bit old ... but very reliable, in my opinion.

I implemented it in VB and C++, now trying on the Pi4 ... can you share?

Miqi
Posts: 6
Joined: Wed Nov 28, 2018 5:21 pm

Re: Using the Rasbperry Pi as an access control system

Thu Jan 02, 2020 7:00 pm

Happy to help. I don't have my code in front of my right now (I'll be back in office next week), but I wound up using the subprocess module to execute the batch scripts in my code and capture the output with stdout. There may be a neater solution out there, but this worked for my purposes.

Here's the module documentation if you're not familiar: https://docs.python.org/3/library/subprocess.html

davidvmc18
Posts: 1
Joined: Wed Jan 22, 2020 2:59 am

Re: Using the Rasbperry Pi as an access control system

Wed Jan 22, 2020 3:04 am

Hi everyone i have the U are U 4500 and i need to programming in linux in web application, i dont know how i can do this, can anybody help me please :)

Return to “Other projects”