Open AsifKhan991 opened 2 years ago
Excellent work! Glad to see syncing now implanted and possible across multiple devices.
Will this get merged someday?
Yep, that would be nice. @p2baron
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.