Showing posts with label Fingerprint. Show all posts
Showing posts with label Fingerprint. Show all posts

Monday, June 15, 2020

Setting waktu ke mesin Fingerprint

Sebelum ke sini baca ini :
  1. Memilih fingerprint yang support PHP
  2. Parse Data SOAP fingerprint

Untuk setting waktu di mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

kemudian buat file index.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
<body bgcolor="#caffcb">

<H3>Syncronize Time</H3>

<?php
$IP = filter_input(INPUT_GET, "ip");
        $Key = filter_input(INPUT_GET, "key");
if($IP=="") $IP="192.168.1.201";
if($Key=="") $Key="123456";
?>
<form action="syn-time.php">
IP Address: <input type="Text" name="ip" value="<?php echo $IP?>" size=15><BR>
Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key?>"><BR><BR>

<input type="Submit" value="Syn Time">
</form>
<BR>

<?php
if(filter_input(INPUT_GET, "ip")!=""){
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 if($Connect){
  $soap_request="<SetDate><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><Date xsi:type=\"xsd:string\">".date("Y-m-d")."</Date><Time xsi:type=\"xsd:string\">".date("H:i:s")."</Time></Arg></SetDate>";
  $newLine="\r\n";
  fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
     fputs($Connect, "Content-Type: text/xml".$newLine);
     fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
     fputs($Connect, $soap_request.$newLine);
  $buffer="";
  while($Response=fgets($Connect, 1024)){
   $buffer=$buffer.$Response;
  }
        }else {echo "Koneksi Gagal";};
 include("parse.php"); 
 $buffer=Parse_Data($buffer,"<Information>","</Information>");
 echo "<B>Result:</B><BR>";
 echo $buffer;

} 
?>



</body>
</html>

Sunday, June 14, 2020

Menghapus sidik jari di mesin Fingerprint

Sebelum ke sini baca ini :
  1. Memilih fingerprint yang support PHP
  2. Parse Data SOAP fingerprint

Untuk menghapus data sidik jari user di mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

kemudian buat file index.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html>
<head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
<body bgcolor="#caffcb">

<H3>Hapus Sidik Jari</H3>

<?php
$IP= filter_input(INPUT_GET, "ip");
$Key=filter_input(INPUT_GET, "key");
$id=filter_input(INPUT_GET, "id");
$fn=filter_input(INPUT_GET, "fn");
$temp=filter_input(INPUT_GET, "temp");

if($IP=="") $IP="192.168.1.201";
if($Key=="") $Key="123456";
if($id=="") $id="1";
if($fn=="") $fn="0";
?>

<form action="hapus-sidik-jari.php">
IP Address: <input type="Text" name="ip" value="<?php echo $IP?>" size=15><BR>
Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key?>"><BR><BR>

UserID: <input type="Text" name="id" size="5" value="<?php echo $id?>"><BR>
<BR>

<input type="Submit" value="Hapus">
</form>
<BR>

<?php
if(filter_input(INPUT_GET, "ip")!=""){?>

 <?php
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 if($Connect){
  $soap_request="<DeleteTemplate><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><PIN xsi:type=\"xsd:integer\">".$id."</PIN></Arg></DeleteTemplate>";
  $newLine="\r\n";
  fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
     fputs($Connect, "Content-Type: text/xml".$newLine);
     fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
     fputs($Connect, $soap_request.$newLine);
  $buffer="";
  while($Response=fgets($Connect, 1024)){
   $buffer=$buffer.$Response;
  }
        }else {echo "Koneksi Gagal";};
 include("parse.php");
// echo $buffer;
 $buffer=Parse_Data($buffer,"<DeleteTemplateResponse>","</DeleteTemplateResponse>");
 $buffer=Parse_Data($buffer,"<Information>","</Information>");
 echo "<B>Result:</B><BR>".$buffer;
 
}?>


</body>
</html>

Saturday, June 13, 2020

Mengirim sidik jari user ke mesin Fingerprint

Sebelum ke sini baca ini :
  1. Memilih fingerprint yang support PHP
  2. Parse Data SOAP fingerprint

Untuk mengirim data sidik jari user ke mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

kemudian buat file index.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
<body bgcolor="#caffcb">

<H3>Upload Sidik Jari</H3>

<?php
$IP= filter_input(INPUT_GET, "ip");
$Key=filter_input(INPUT_GET, "key");
$id=filter_input(INPUT_GET, "id");
$fn=filter_input(INPUT_GET, "fn");
$temp=filter_input(INPUT_GET, "temp");

if($IP=="") $IP="192.168.1.201";
if($Key=="") $Key="123456";
if($id=="") $id="1";
if($fn=="") $fn="0";
?>

<form action="upload-sidik-jari.php">
IP Address: <input type="Text" name="ip" value="<?php echo $IP?>" size=15><BR>
Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key?>"><BR><BR>

UserID: <input type="Text" name="id" size="5" value="<?php echo $id?>"><BR>
Finger No: <input type="Text" name="fn" size="1" value="<?php echo $fn?>"><BR><BR>
Template Sidik jari: <BR>
<textarea name="temp" rows="7" name="isi" cols="40"><?php echo $temp?></textarea><BR><BR>

<input type="Submit" value="Upload">
</form>
<BR>

<?php
if(filter_input(INPUT_GET, "ip")!=""){?>

 <?php
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 if($Connect){
  $soap_request="<SetUserTemplate><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><PIN xsi:type=\"xsd:integer\">".$id."</PIN><FingerID xsi:type=\"xsd:integer\">".$fn."</FingerID><Size>".strlen($temp)."</Size><Valid>1</Valid><Template>".$temp."</Template></Arg></SetUserTemplate>";
  $newLine="\r\n";
  fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
     fputs($Connect, "Content-Type: text/xml".$newLine);
     fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
     fputs($Connect, $soap_request.$newLine);
  $buffer="";
  while($Response=fgets($Connect, 1024)){
   $buffer=$buffer.$Response;
  }
        }else {echo "Koneksi Gagal";};
 include("parse.php");
// echo $buffer;
 $buffer=Parse_Data($buffer,"<SetUserTemplateResponse>","</SetUserTemplateResponse>");
 $buffer=Parse_Data($buffer,"<Information>","</Information>");
 echo "<B>Result:</B><BR>".$buffer;
 
 //Refresh DB
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 $soap_request="<RefreshDB><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey></RefreshDB>";
 $newLine="\r\n";
 fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
    fputs($Connect, "Content-Type: text/xml".$newLine);
    fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
    fputs($Connect, $soap_request.$newLine);

}?>


</body>
</html>

Friday, June 12, 2020

Mengambil sidik jari user dari mesin Fingerprint

Sebelum ke sini baca ini :
  1. Memilih fingerprint yang support PHP
  2. Parse Data SOAP fingerprint

Untuk mengambil data sidik jari user di mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

kemudian buat file index.php


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<html>
<head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
<body bgcolor="#caffcb">

<H3>Download Sidik Jari</H3>

<?php
$IP= filter_input(INPUT_GET, "ip");
$Key=filter_input(INPUT_GET, "key");
$id=filter_input(INPUT_GET, "id");
$fn=filter_input(INPUT_GET, "fn");

if($IP=="") $IP="192.168.1.201";
if($Key=="") $Key="123456";
if($id=="") $id="1";
if($fn=="") $fn="0";
?>

<form action="download-sidik-jari.php">
IP Address: <input type="Text" name="ip" value="<?php echo $IP;?>" size=15><BR>
Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key;?>"><BR><BR>

UserID: <input type="Text" name="id" size="5" value="<?php echo $id;?>"><BR>
Finger No: <input type="Text" name="fn" size="1" value="<?php echo $fn;?>"><BR><BR>

<input type="Submit" value="Download">
</form>
<BR>

<?php
if(filter_input(INPUT_GET, "ip")!=""){?>

 <table cellspacing="2" cellpadding="2" border="1">
 <tr align="center">
     <td><B>UserID</B></td>
     <td width="200"><B>FingerID</B></td>
     <td><B>Size</B></td>
     <td><B>Valid</B></td>
     <td align="left"><B>Template</B></td>  
 </tr>

 <?php
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 if($Connect){
  $soap_request="<GetUserTemplate><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><PIN xsi:type=\"xsd:integer\">".$id."</PIN><FingerID xsi:type=\"xsd:integer\">".$fn."</FingerID></Arg></GetUserTemplate>";
  $newLine="\r\n";
  fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
     fputs($Connect, "Content-Type: text/xml".$newLine);
     fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
     fputs($Connect, $soap_request.$newLine);
  $buffer="";
  while($Response=fgets($Connect, 1024)){
   $buffer=$buffer.$Response;
  }
        }else{
            echo "Koneksi Gagal";
            
        };
 
 echo $buffer;
 
 include("parse.php");
 $buffer=Parse_Data($buffer,"<GetUserTemplateResponse>","</GetUserTemplateResponse>");
 $buffer=explode("\r\n",$buffer);
 for($a=0;$a<count($buffer);$a++){
  $data=Parse_Data($buffer[$a],"<Row>","</Row>");
  $PIN=Parse_Data($data,"<PIN>","</PIN>");
  $FingerID=Parse_Data($data,"<FingerID>","</FingerID>");
  $Size=Parse_Data($data,"<Size>","</Size>");
  $Valid=Parse_Data($data,"<Valid>","</Valid>");
  $Template=Parse_Data($data,"<Template>","</Template>");?>
  <tr align="center">
      <td><?php echo $PIN;?></td>
      <td><?php echo $FingerID;?></td>
      <td><?php echo $Size;?></td>
      <td><?php echo $Valid;?></td>
      <td><?php echo $Template;?></td>   
  </tr>  
 <?php        
        }
        ?>
</table>
<?php
        }
        ?>


</body>
</html>

Thursday, June 11, 2020

Menghapus data user di mesin Fingerprint

Sebelum ke sini baca ini :
  1. Memilih fingerprint yang support PHP
  2. Parse Data SOAP fingerprint

Untuk menghapus data user di mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

kemudian buat file index.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<html>
<head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
<body bgcolor="#caffcb">

<H3>Hapus User</H3>

<?php
$IP= filter_input(INPUT_GET, "ip");
$Key=filter_input(INPUT_GET, "key");
$id=filter_input(INPUT_GET, "id");
$fn=filter_input(INPUT_GET, "fn");
$temp=filter_input(INPUT_GET, "temp");

if($IP=="") $IP="192.168.1.201";
if($Key=="") $Key="123456";
if($id=="") $id="1";
if($fn=="") $fn="0";
?>

<form action="hapus-user.php">
IP Address: <input type="Text" name="ip" value="<?php echo $IP?>" size=15><BR>
Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key?>"><BR><BR>

UserID: <input type="Text" name="id" size="5" value="<?php echo $id?>"><BR>
<BR>

<input type="Submit" value="Hapus">
</form>
<BR>

<?php
if(filter_input(INPUT_GET, "ip")!=""){?>

 <?php
 $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
 if($Connect){
  $soap_request="<DeleteUser><ArgComKey xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><PIN xsi:type=\"xsd:integer\">".$id."</PIN></Arg></DeleteUser>";
  $newLine="\r\n";
  fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
     fputs($Connect, "Content-Type: text/xml".$newLine);
     fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
     fputs($Connect, $soap_request.$newLine);
  $buffer="";
  while($Response=fgets($Connect, 1024)){
   $buffer=$buffer.$Response;
  }
        }else {echo "Koneksi Gagal";};
 include("parse.php");
 //echo $buffer;
 $buffer=Parse_Data($buffer,"<DeleteUserResponse>","</DeleteUserResponse>");
 $buffer=Parse_Data($buffer,"<Information>","</Information>");
 echo "<B>Result:</B><BR>".$buffer;
 
}?>

</body>
</html>

Wednesday, June 10, 2020

Mengirim data user ke mesin Fingerprint

Sebelum ke sini baca ini :


  • Memilih fingerprint yang support PHP



  • Parse Data SOAP fingerprint


  • Untuk mengirim data user ke mesin Fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

    kemudian buat file index.php

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    <html>
    <head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
    <body bgcolor="#caffcb">
    
    <H3>Upload Nama</H3>
    
     <?php
            $IP = filter_input(INPUT_GET, "ip");
            $Key = filter_input(INPUT_GET, "key");
            $id = filter_input(INPUT_GET, "id");
            $nama = filter_input(INPUT_GET, "nama");
            if ($IP == "") {
                $IP = "192.168.1.201";
            }
            if ($Key == "") {
                $Key = "123456";
            }
            ?>
    
    <form action="upload-nama.php">
    IP Address: <input type="Text" name="ip" value="<?php echo $IP;?>" size=15><BR>
    Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key;?>"><BR><BR>
    
    UserID: <input type="Text" name="id" size="5" value="<?php echo $id;?>"><BR>
    Nama: <input type="Text" name="nama" size="15" value="<?php echo $nama;?>"><BR><BR>
    
    <input type="Submit" value="Upload Nama">
    </form>
    <BR>
    
    <?php
    if(filter_input(INPUT_GET, "ip")!=""){
     $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
     if($Connect){
      $id=$HTTP_GET_VARS["id"];
      $nama=$HTTP_GET_VARS["nama"];
      $soap_request="<SetUserInfo><ArgComKey Xsi:type=\"xsd:integer\">".$Key."</ArgComKey><Arg><PIN>".$id."</PIN><Name>".$nama."</Name></Arg></SetUserInfo>";
      $newLine="\r\n";
      fputs($Connect, "POST /iWsService HTTP/1.0".$newLine);
         fputs($Connect, "Content-Type: text/xml".$newLine);
         fputs($Connect, "Content-Length: ".strlen($soap_request).$newLine.$newLine);
         fputs($Connect, $soap_request.$newLine);
      $buffer="";
      while($Response=fgets($Connect, 1024)){
       $buffer=$buffer.$Response;
      }
     }else echo "Koneksi Gagal";
     include("parse.php"); 
     $buffer=Parse_Data($buffer,"<Information>","</Information>");
     echo "<B>Result:</B><BR>";
     echo $buffer;
    } 
    ?>
    
    </body>
    </html>
    

    Tuesday, June 9, 2020

    Menghapus log data di mesin Fingerprint

    Sebelum ke sini baca ini :
    1. Memilih fingerprint yang support PHP
    2. Parse Data SOAP fingerprint

    Untuk menghapus log data dari mesin fingerprint, terlebih dahulu mesin fingerprint harus disetting IP dan Commkey nya.

    kemudian buat file index.php untuk menghapus log data dari mesin fingerprint:

    
    
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    <html>
        <head><title>Contoh Koneksi Mesin Absensi Mengunakan SOAP Web Service</title></head>
        <body bgcolor="#caffcb">
    
            <H3>Clear Log Data</H3>
    
            <?php
            $IP = filter_input(INPUT_GET, "ip");
            $Key = filter_input(INPUT_GET, "key");
            if ($IP == "") {
                $IP = "192.168.1.201";
            }
            if ($Key == "") {
                $Key = "123456";
            }
            ?>
    
            <form action="clear-data.php">
                IP Address: <input type="Text" name="ip" value="<?php echo $IP; ?>" size=15><BR>
                Comm Key: <input type="Text" name="key" size="5" value="<?php echo $Key; ?>"><BR><BR>
    
                <input type="Submit" value="Clear Log">
            </form>
            <BR>
    
            <?php
            if (filter_input(INPUT_GET, "ip") != "") {
                $Connect = fsockopen($IP, "80", $errno, $errstr, 1);
                if ($Connect) {
                    $soap_request = "<ClearData><ArgComKey xsi:type=\"xsd:integer\">" . $Key . "</ArgComKey><Arg><Value xsi:type=\"xsd:integer\">3</Value></Arg></ClearData>";
                    $newLine = "\r\n";
                    fputs($Connect, "POST /iWsService HTTP/1.0" . $newLine);
                    fputs($Connect, "Content-Type: text/xml" . $newLine);
                    fputs($Connect, "Content-Length: " . strlen($soap_request) . $newLine . $newLine);
                    fputs($Connect, $soap_request . $newLine);
                    $buffer = "";
                    while ($Response = fgets($Connect, 1024)) {
                        $buffer = $buffer . $Response;
                    }
                } else
                    echo "Koneksi Gagal";
                include("parse.php");
                $buffer = Parse_Data($buffer, "<Information>", "</Information>");
                echo "<B>Result:</B><BR>";
                echo $buffer;
            }
            ?>
    
        </body>
    </html>
    

    Saturday, June 6, 2020

    Memilih fingerprint yang mendukung pemrograman PHP

    Yang perlu diperhatikan dalam memilih Fingerprint untuk sistem Absensi atau Akses Kontrol  ruangan dengan menggunakan PHP:
    • Fingerprint Absensi / Akses Kontrol mendukung SDK SOAP
    SDK yang disupport dapat dilihat di buku manual fingerprint, biasanya fingerprint dengan tipe Standalone mempunyai SDK SOAP.

    • Fingerprint Absensi / Akses Kontrol mempunyai webserver. 
    Jika menemukan Webserver versi 3.1 terdapat kendala saat penarikan LOG DATA menggunakan SOAP, untuk permasalahan tersebut dapat dilakukan downgrade ke vendor penyedia fingerprint.

    •  Alogaritma pengkodean sidik jari 
    Jenis jenis alogaritma : ZKFinger VX9.0, ZKFinger VX10.0 atau ZKFingerVein VX3.0. Kalau melanjutkan sistem yang sudah ada maka jenis alogaritmanya harus sama kalau tidak sama maka harus daftar ulang finger untuk semua karyawan yang terdaftar di mesin absensi lama.


    Sumber ZKTeco sdk 

    Contoh Fingerprint biasa dan Fingerprint Akses kontrol yang support SDK SOAP

    1. Fingerspot premier series
    2. Solution X304 
    3. Zkteco R18/F18


    Hal-hal yang dapat dilakukan SDK SOAP dengan PHP ke mesin Fingerprint
    • Mengambil log data dari mesin
    • Menghapus log data di mesin
    • Mengirim data user ke mesin
    • Menghapus data user di mesin
    • Mengambil sidik jari user dari mesin
    • Mengirim sidik jari user ke mesin
    • Menghapus sidik jari di mesin
    • Setting waktu ke mesin

    Popular Posts