- Wed Dec 09, 2009 8:36 am
#86796
Seems like more and more people are getting onto the bandwagon and trying this fingerprint module out.
I've decided to post up whatever data i have on this module while typing out stuff during email exchanges from people requesting help troubleshooting the sensor, so i hope the information that follow will be of some help to anybody reading this thread as well.
Okay, first off. Checksum calculation.
To calculate the checksum, you add up the packet flag + packet length + command + any parameters.
eg:
EF01FFFFFFFF01000606010000020010
in bold = checksum
so you add this.
EF01FFFFFFFF 01 00 06 06 01 00 00 02= 0010
1 + 6 + 6 + 1 + 2 = 10 (HEX)
same goes for command and response packet checksum calculation.
Next, a serial dump from my sniffing sessions.
Here's whats going on when the software gives a TIMEOUT response.
Timeout time should be about 500ms seconds.
If i'm not wrong the software does this for 10 times. if for each time the command getimage is sent is returned with the response packet 239,1,255,255,255,255,7,0,3,2,0,12, and after 10 times, then it is a time out. You can specify your own timeout. I personally use 15 requests.
TIME OUT
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
if >10 then TIMEOUT
DURING AN ENROLMENT (CMD SIDE)
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,4,2,0,0,7,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,3,1,0,5,
239,1,255,255,255,255,1,0,4,2,1,0,8,
239,1,255,255,255,255,1,0,3,5,0,9,
239,1,255,255,255,255,1,0,6,6,1,0,3,0,17,
enroll success id = 3
CMD
DURING AN ENROLMENT(RESPONSE)
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,0,0,10,
239,1,255,255,255,255,7,0,3,0,0,10,
239,1,255,255,255,255,7,0,3,2,0,12,
239,1,255,255,255,255,7,0,3,0,0,10,
239,1,255,255,255,255,7,0,3,0,0,10,
239,1,255,255,255,255,7,0,3,0,0,10,
239,1,255,255,255,255,7,0,3,0,0,10,
enroll success id = 3
response
Response example of a successful match
239,1,255,255,255,255,7,0,3,2,0,12,(GET IMAGE FAIL)
239,1,255,255,255,255,7,0,3,2,0,12,(GET IMAGE FAIL)
239,1,255,255,255,255,7,0,3,2,0,12,(GET IMAGE FAIL)
239,1,255,255,255,255,7,0,3,2,0,12,(GET IMAGE FAIL)
239,1,255,255,255,255,7,0,3,2,0,12,(GET IMAGE FAIL)
239,1,255,255,255,255,7,0,3,0,0,10,(GET IMAGE SUCCESS)
239,1,255,255,255,255,7,0,3,0,0,10,(GEN CHAR SUCCESS)
239,1,255,255,255,255,7,0,7,0,0,1,0,54,0,69,(MATCH SUCCESS)
MATCH SUCCESS: ID = 1 ( 2nd User, since the first user would be at ID =0)
239,1,255,255,255,255,7,0,7,0,0,0,0,59,0,73,
MATCH SUCCESS: ID = 0
These, and the other information provided by AJ should be more than sufficient to get anybody started.
Cheers
Michelle