How to set template in GT-521F32 fingerprint scanner?

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!

Moderator: phalanx

Post Reply
drapizaaldryx
Posts: 1
Joined: Fri Jul 06, 2018 11:15 pm

How to set template in GT-521F32 fingerprint scanner?

Post by drapizaaldryx » Sat Jul 07, 2018 1:13 am

I'm working on a project using the GT-521F32 fingerprint scanner, i want to store the templates in a database in my computer rather than have them stay in the fingerprint scanner's memory. While I am able to get the templates from the fingerprint scanner and store it in my computer, I am unable to set the templates back to the fingerprint scanner. I am currently using RealTerm to send commands to the fingerprint scanner.

First, I would get the template from ID 1

Send command (Get template from ID 1):
0x55 0xAA 0x01 0x00 0x01 0x00 0x00 0x00 0x70 0x00 0x71 0x01
Output:
55 AA 01 00 00 00 00 00 30 00 30 01 (Acknowledge)
5A A5 01 00 ...(498 bytes of template data)... FD DF (Data Packet)

I would then delete the template in ID 1, and set the template that I got from ID 1 in ID 2

Send Command (Set template to ID 2):
0x55 0xAA 0x01 0x00 0x02 0x00 0x00 0x00 0x71 0x00 0x73 0x01
Output:
55 AA 01 00 00 00 00 00 30 00 30 01 (Acknowledge)
Send Command (Data packet):
0x5A 0xA5 0x01 0x00 ...(former ID 1 template data)... 0xFD 0xDF

Doing this doesn't result in an acknowledgement packet

Even when using the demo program provided, when I use the setTemplate option, it just results with "Communication error". How do I set templates from my computer to the fingerprint scanner's memory?

Post Reply