-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show_fingerprint_template #9
Comments
Are you running the exact example? Do you have a print already enrolled at ID 1? |
yes a double checked everything, as i said all the other examples are working, but just this one. |
Add |
Also what is your MCU? |
packet length was 128 |
No, add the lines and let me see the actual results in the serial monitor. |
Also provide a link to your fingerprint module |
Sorry sent you the wrong link, this is the one, Robocraze 5 Optical Fingerprint Reader Sensor Module for Mega2560 UNO R3 Raspberry Pi 3 RC-A-400 https://www.amazon.in/dp/B07DL2DXJX/ref=cm_sw_r_cp_apa_i_UkySBbTS58S6T Sending you the logs in next message |
Here's the log
|
It seems you're passing 0 for buffer size. I need to see the exact sketch you're executing. Use pastebin, if you can use it. |
Just using your example
|
Hmm. Add
right before |
I didn't get you, add what and where? |
hi , Even i am facing the same issue after adding the Serial print i got this output
|
@sand007man Okay change:
to:
and:
to:
in the sketch and let me see what it prints. MAKE SURE a template already exists or has been enrolled before at the location 4 you're loading it from. |
hi i was not able to find
|
Ah, I see the problem now I think. I assumed the template size on all modules is 512 bytes, based on the datasheets I've read but it seems some modules have a template size of 768 bytes. Will adjust the example accordingly in a minute. @milindrc you should download and try the latest version, should hopefully work for you now. |
The changes have been made to the example, you can test them (and the others again) to see if they work for you. |
hi, Thank you for all the help and the changes you made works great :).. thank you so much :) |
Now it workd flawlessly!!!! |
You're welcome ;-) |
Hi i know this is out of topic but need a bit of help if possible to store this template value in mysql database. So my first step should be to store the buffer value in some other variable and then from there i have to update it to mysql database using inser query...!!but how to store 768 byte of data!! |
Sorry, but I don't have any real experience with SQL. Though if you can write the bytes to a file then I'd imagine it's as simple as saving that file to your database. You can google how to do those. |
Ok will try that but i have to end up using external eeprom or sd card to do that |
Isn't your database external on some server? |
Locally(mysql 5.7 server) and my node_mcu will be connected to the same network |
So stream the contents of the template array to your PC server over the network and have it write the 768 bytes to a file, to be saved in your database. No need for an sd card or anything. |
Ok "Stream"....that concept something new to me, when it comes to node_mcu...how is it possible?? any guidance...my node_mcu will be connected to the network via router ...i did google about file transfer over the network most of it suggested a php script i have to write.I am able to insert all other sensor value i the database just 768 byte of data i dont kn how to do this !! |
You're not transferring a file, you're transferring an array's contents, mere bytes. Check your Node MCU |
Hi thanks for the all the input but i figured it out how to post this template directly in mysql database ..all i had to do is to convert the buffer value into char array and upload it to mysql database :) But will surely try this client.write option that you told me :) |
Hi sorry to disturb you again but need a small help in template comparison, I have two template stored in database and what to compare it ...do you have any idea about fingerprint confidence match that happens in adafruit library ...can the same logic be implemented for the template on the server side ...i kn i am asking for too much help !! |
hi, sorry i got stuck in template format...as in there is 2 fingerprint template format ...ANSI 381...and ISO 19794-2....which is the format generated by this code....or is it hardware specific???? |
It's not a detail that's known, manufacturer secret. So basically you cant compare templates on your PC since you dont know the rules for comparing them. You're of course free to experiment and try the different formats and see if they hopefully used one of them. Or you can perform a 1:1 match by having your server load the user's enrolled print into the module buffer and having the module compare that against the presented finger (with |
Ok I have stored the template in the database ..i can get that template using sql query and stored in my esp8266 .. so to compare that template with the current template generated i have to upload the template from server to the fingerprint module....so i did little research and there is something upchar and downchar in fingerprint module to upload the other template !! ....and for finger.match_pair() what are the arguments to be passed?? |
@sand007man I've added an example for match_pair(), see if it works for you. |
Hello, Wanted to revive the tite and ask, this template is ISO 19794-2? Another validation question in the module would have some form of 1: N since 1: 1 slow be very read when I have a database of 3,000 users. |
I don't know what the format is, I believe others have tried and the format doesn't seem to be ISO but something proprietary like I already said in a previous comment (below). You can try contacting the manufacturer to see if you get a response though that's unlikely. Another option is to use the open source SourceAFIS project to convert images from the sensor into templates and then make comparisons server-side using SourceAFIS again. Their templates aren't ISO either but some optimized format, but at least you'll now be able to compare as many prints as you want without relying on the sensor.
|
I'm already using soureceAFIS, however the time to extract the image and send via network to a server via TCP / IP socket took 5 seconds, I found very time consuming. So I wanted the ISO template which is very small and fast bytes. |
Ah, that's true, every verification would mean an image transfer. You don't have any other means of identifying the user? Perhaps some unique ID that can be provided before their finger is checked. |
You may even think of something, but do not become flexible and versatile. Do you know of any readers who extract the template in ISO 19794-2 or ANSI format? |
I don't know of any such readers though you can probably find them online. |
I have found some readers in China who do an ISO extraction. Thanks for sharing your code, I saw that you use windows, where can I find .dll for Linux? |
I didnt find any Linux equivalent in the SDK, you'll have to search online for ways of using a DLL in Linux. Or you could get another reader that speaks ISO |
Hey, your sketch can solve all my problems, But unfortunately it's not working although all other sketches are working but I just couldn't get this sketch to work. I am getting the following error
template 1 loaded
Error receiving packet
Unknown error
digging in your library i found that this snippet is causing the function to close before end packet.
if (bufLen == NULL || *bufLen < packetLen) // if a buffer was provided, ensure theres enough space { return false; }else
I tried to fix it but for some reason my arduino crashes.
Please help me out.
Thanks in advance.
The text was updated successfully, but these errors were encountered: