0

ulta slim 4750 finger printer reader and CPE error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ulta slim 4750 finger printer reader and CPE error

by taymota on Sun Jun 06, 2021 1:18 pm

I keep coming across and issue using the adafruit_fingerprint circuit python lib on both the itsy and circuit playground. I have lib loaded and have been able to get the ready to the point of being able to read by removing some code from the "fingerprint_template_file_compare" anytime i try to go through the enroll_save_to_file call i get errors in get_gpdata .
I have not seen allot on the pid#4750 so is there something different i need to do for this sensor over the others on the site ?
I have opened up the adafruit_fingerprint.py but not sure where to look next .

cpe_fingerprint.PNG
error
cpe_fingerprint.PNG (14.57 KiB) Viewed 374 times

code.py
code
(5.48 KiB) Downloaded 5 times

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by taymota on Fri Jul 23, 2021 10:22 pm

anyone else have this issue? any help?

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by adafruit_support_carter on Mon Jul 26, 2021 1:22 pm

Looks like you may be running into a memory issue. Does the simpletest example run OK?
https://github.com/adafruit/Adafruit_Ci ... pletest.py

adafruit_support_carter
 
Posts: 21122
Joined: Tue Nov 29, 2016 2:45 pm

Re: ulta slim 4750 finger printer reader and CPE error

by taymota on Wed Jul 28, 2021 9:47 pm

No i get error when it trys to just load

"code.py output:
Traceback (most recent call last):
File "code.py", line 8, in <module>
File "adafruit_fingerprint.py", line 94, in <module>
MemoryError: memory allocation failed, allocating 296 bytes"


I was originally tried to use the QT py and thought maybe it did not have enough ram, so switched to circuit playground but got same issue.

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by adafruit_support_carter on Thu Jul 29, 2021 11:19 am

The QT PY and the Circuit Playground Express both use the same class of processor (SAMD21 M0). It looks like that does not have enough RAM for running this library. So, unfortunately, you'll need to upgrade to a board with more RAM.

adafruit_support_carter
 
Posts: 21122
Joined: Tue Nov 29, 2016 2:45 pm

Re: ulta slim 4750 finger printer reader and CPE error

by taymota on Thu Jul 29, 2021 11:32 am

So the guide has the Trinket M0 in it would that board work ?

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by adafruit_support_carter on Thu Jul 29, 2021 12:03 pm

No, that's also an M0 based board. I just tested to verify and opened a new issue for this here:
https://github.com/adafruit/Adafruit_Ci ... /issues/33
It may have worked before and the library has now grown too big.

adafruit_support_carter
 
Posts: 21122
Joined: Tue Nov 29, 2016 2:45 pm

Re: ulta slim 4750 finger printer reader and CPE error

by adafruit_support_carter on Fri Jul 30, 2021 12:31 pm

It seems like this library has unfortunately out grown the M0 based boards. We updated the guide to show usage with an M4 based board, which has higher RAM. If you want to stick with the M0, you could try using Arduino and the associated library:
https://github.com/adafruit/Adafruit-Fi ... or-Library

adafruit_support_carter
 
Posts: 21122
Joined: Tue Nov 29, 2016 2:45 pm

Re: ulta slim 4750 finger printer reader and CPE error

by taymota on Sat Aug 07, 2021 4:43 pm

Thank you for posting the update. that makes since. I have tried the sample code now on a RP2040 board running cp 7x and getting a new set of errors... and not sure why the sample code is throwing the error. should i open a new post in that area to see if someone can help ?

"
Place finger on sensor...Traceback (most recent call last):
File "code.py", line 186, in <module>
File "code.py", line 94, in enroll_finger
OSError: [Errno 22] Invalid argument
"

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by taymota on Sat Aug 07, 2021 5:08 pm

Never mind i think i figured it out , the sample code has "flush=True" at the end of most of the print commands and that was causing the invalid argument. Wonder if this was just implemented wrong or no longer needed in cp 7 and code was for cp6 ?

taymota
 
Posts: 6
Joined: Sun Jun 06, 2021 1:04 pm

Re: ulta slim 4750 finger printer reader and CPE error

by adafruit_support_carter on Mon Aug 09, 2021 1:16 pm


adafruit_support_carter
 
Posts: 21122
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.