Start Code: 40 hCommand : 05 hParameter : ( Finger ID) 00 h , 00 h , 00 h , 00 hSize : 00 h , 00 h , 00 h , 00 hFlag : 79 hCheck Sum : 40h + 05 h + 00 h + 00 h + 00 h + 00 h + 00 h + 00 h + 00 h + 00 h + 79 h = BE hEnd Code : 0A h
Start Code: 40 hCommand : 05 hParameter : ( Finger ID That Save ) xx h , xx h , xx h , xx hSize : 00 h , 00 h , 00 h , 00 hError : 61 h or 62 h or 63 h or 6B h or 6C h or 6D h or 6E h or 72 h or 76 hthat error code has a table to know any code; Check Sum : 40h + 05 h + xx h + xx h + xx h + xx h + 00 h + 00 h + 00 h + 00 h + xx h = xx hEnd Code : 0A h
byte[] b = new byte[15]; b[0] = 0x40; //start byte b[1] = 0x05; //command b[2] = 0x00; //paramid b[3] = 0x00; b[4] = 0x00; b[5] = 0x00; b[6] = 0x00; //size b[7] = 0x00; b[8] = 0x00; b[9] = 0x00; b[10] = 0x79; //flag b[11] = 0xBE; //checksum b[12] = 0x0A; //end code