-
Notifications
You must be signed in to change notification settings - Fork 343
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
Template transfer feature #116
base: master
Are you sure you want to change the base?
Template transfer feature #116
Conversation
updated to 2.1.1
added template transfer support
example for saving template to SD card
example of saving template to external sd card
Example to write back saved template data to the sensor from an external SD card
Fixed typo
Arduino cli dependency solve
Basic example of reading template data and store in an array buffer
Basic example to properly write template data to the sensor and enroll against an ID.
…late_to_sensor.ino to examples/template_transfer/write_to_sensor/write_to_sensor.ino
Fixed issues with 'write_template_to_sensor' function.
Excellent work! Glad to see syncing now implanted and possible across multiple devices. |
Fixed template buffer size issues
Fixed template size issues
Clarified the buf size issue
…e.ino to examples/template_transfer/get_direct_template/get_direct_template.ino
example to show already saved template data
Fixed issue with memset
Will this get merged someday? |
Yep, that would be nice. @p2baron |
In the meantime I've created a fork with some of the pending PR's and added missing functionality for automatic registration and verification. |
@ladyada & @evaherrada any chance that this gets merged into main? |
its not scheduled - since it would require a lot of testing. pleae manually install the fork to use this feature and let us know if it works! |
I've been over the code, looks good to me. Think it's worth squashing the commits into one. There are a few commits that are just creating a file, deleting a file, and moving a file. Three commits for really one action makes it much harder to follow some of the code changes. @AsifKhan991 Other than that, really great job on this. |
how to compare two templates? |
Shortcomings of previous version:
Adafruit_Fingerprint_Packet
structure didn't adapt to the data packet length. This is crucial for correctly getting template data from sensor and writing back to it.Changes made to the updated Library:
get_template_buffer()
function to transfer finger print template data to upper computer without data loss. (upper computer refers to the microcontroller you are using )write_template_to_sensor()
function to write fingerprint template data to the sensor from the upper computergetParameters()
functions withinverifyPassword()
function to properly set up parameters at the start.Adafruit_Fingerprint_Packet
structure to adapt buffers up to 256 bytes, depending on the sensor's data packet length. This ensures efficient transfer of template data.Platform support:
The library is tested on esp32 and Arduino Mega 2560 platform. But supposed to work flawlessly with all the other boards having adequate RAM (1Kb or more)
Caution:
The template transfer examples are recommended to be used with microcontroller's having RAM no less than 1kbyte. (as the template data itself is 512 Bytes for most of the sensors).
Adapt to controllers having lower RAM:
setPacketSize()
function.