Arduino SM-630 Finger print attendance tutorial

Talk about Arduino board, sheilds. Sharing Arduino projects, program, problems, solutions, suggestions..... many more, all are welcome.

Arduino SM-630 Finger print attendance tutorial

Postby xyzbilal » Mon May 16, 2016 3:12 am

Hello everyone,
Sorry for if duplicate topic created..
cytron provided me very valuable information about fingerprint scanner project. now I m trying to develop new project based on the codes provided at this link http://tutorial.cytron.com.my/2013/09/0 ... rd-system/

but there is a couple of questions that makes me confused.
CODE: SELECT_ALL_CODE
ommand Code & Respond Code For Add Fingerprint
**********************************************/
byte addFingerPrint0[] = {0x4D, 0x58, 0x10, 0x03, 0x40, 0x00, 0x00, 0xF8}; // 8 bytes
byte addFingerPrint1[] = {0x4D, 0x58, 0x10, 0x03, 0x40, 0x00, 0x01, 0xF9}; // 8 bytes
byte addFingerPrint2[] = {0x4D, 0x58, 0x10, 0x03, 0x40, 0x00, 0x02, 0xFA}; // 8 bytes
byte addFingerPrint3[] = {0x4D, 0x58, 0x10, 0x03, 0x40, 0x00, 0x03, 0xFB}; // 8 bytes
byte addFingerPrint4[] = {0x4D, 0x58, 0x10, 0x03, 0x40, 0x00, 0x04, 0xFC}; // 8 bytes

at this code part I see only 5 id can be added to database. do I need to write mode code same as this code to add eg 100 finger print to database, if so can you help me how to do that.

the second question is in SM630 user manual I see template download and upload operations can be done with 0x50 and 0x52 codes, can you give me an example code how to use this values to download fingerprint templates and upload another one.

any response is valuable for me. thanks for your support..

best regards..
xyzbilal
Greenhorn
 
Posts: 2
Joined: Mon May 16, 2016 2:55 am

Re: Arduino SM-630 Finger print attendance tutorial

Postby bengchet » Mon May 16, 2016 2:37 pm

Hi,

The example given just demonstrates 5 fingerprints are added but you can customise the function to make add fingerprint function more flexible. The important bytes are last 3 bytes (2 bytes for ID number and 1 byte for checksum). You can setup the 2 bytes according to the ID you want for adding fingerprint. For example, if the ID value is 100, the 2 bytes are 0x00 and 0x64.
In program, you can just set

byte addFingerPrint[8];

addFingerPrint[0]=0x4D;
addFingerPrint[1]=0x58;
.....

For desired ID value,
addFingerPrint[5] = (ID_value)/256; //(high byte of ID value)
addFingerPrint[6] = (ID_value)%256; //(low byte of ID value)

The last byte will be the sum of first 7 bytes. You can use loop function to do it.

As for template download and upload operations, there are limited explanations and guide from the manufacturer as well so we couldn't provide more info about it. However, do try it and share with us with any findings.

If you are doing Arduino project, you can try our Arduino Library and examples. This will help you getting started.

Good luck.
bengchet
Moderator
 
Posts: 237
Joined: Tue Aug 25, 2015 8:29 am

Re: Arduino SM-630 Finger print attendance tutorial

Postby xyzbilal » Mon May 16, 2016 3:18 pm

Hi,
thank you for your great support, I'll try your suggestions and examples you provided.

regards.
xyzbilal
Greenhorn
 
Posts: 2
Joined: Mon May 16, 2016 2:55 am


Return to Arduino Based

Who is online

Users browsing this forum: No registered users and 24 guests