ur tut http://tutorial.cytron.com.my/2013/01/29/interfacing-fingerprint-reader-integrated-sm630-with-arduino-uno/ helped alot.. but that tut dealed with 5 finger prints only..
i tried to use fixed and variable part..
- CODE: SELECT_ALL_CODE
byte addFingerPrint[] = {0x4D, 0x58, 0x10, 0x03, 0x40}; // 5 fixed bytes
byte varyPart[3], highB = 0x00, lowB = 0x00; // 3 variable bytes
int a2;
varyPart[0]=highB;
varyPart[1]=lowB;
varyPart[2]=0x00;
a2=0;
while(a2<5){ //while loop to add fixed bytes to checksum
varyPart[2] = varyPart[2] + addFingerPrint[a2];
a2++;
}
a2 = 0;
while(a2<2){ //while loop to add variable bytes
varyPart[2] = varyPart[2]+varyPart[a2];
a2++;
}
Serial.write(addFingerPrint, sizeof(addFingerPrint)); // write the 5 fixed bytes array of the command code
Serial.write(varyPart, sizeof(varyPart)); // write the 3 variable bytes array of the command code
delay(1000);
correctRespond();
operationSuccesful();
and if operation is successful then lowB++ and highB++
but i m able to add only first fingerprint at 0th position.. then shows 'Wrong Respond'.. module is not rplying correctly for rest positions..
how could i add above 500 prints..??