Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I am Using a fingerprint Scanner for attendance posting.
finger print reader vendor is essl,model is http://www.esslindia.com/Products.aspx?Id=E9999[^]
The device is connected on lan,It has option to download the users list and attendance list to pendrive in .dat format.
I am looking for fetching these data from device through any of the network computers other than manually copying to pendrive from the device each time.
Is it possible to download data from device through any of the network machines Using C# code ?
Plz Share ur valuable suggestions and sample codes
Posted
Updated 5-Nov-19 23:41pm
v2
Comments
Yvan Rodrigues 15-Jan-14 10:14am    
What does the manual say?
george4986 15-Jan-14 23:06pm    
thanks Yvan for ur Query.

the manual says use dll "zkemkeeper".
its working ...

zkemkeeper.CZKEMClass axczkem1 = new zkemkeeper.CZKEMClass();
////////ip="192.168.1.150" (device ip)
/////////port=4370
//////connecting device
axczkem1.Connect_Net(ip, port);
/////////registering device
axczkem1.RegEvent(axczkem1.MachineNumber, 65535);
///////////disable device before each access
axczkem1.EnableDevice(axczkem1.MachineNumber, false);
///////////reading attendance log
axczkem1.ReadGeneralLogData(axczkem1.MachineNumber);
while (axczkem1.SSR_GetGeneralLogData(axczkem1.MachineNumber, out sdwEnrollNumber, out idwVerifyMode,out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, ref idwWorkcode))//get records from the memory
{
/////////////code to fetch details
}
////////////enable device after each use
axczkem1.EnableDevice(axczkem1.MachineNumber, true);
//////////clearing attendance log
axczkem1.ClearGLog(axczkem1.MachineNumber)
///////////////refreshing device
axczkem1.RefreshData(axczkem1.MachineNumber)

but the problem is the dll am using is not paid one,it supports only limited devices.
what i am trying to find out is how i can fetch the log file without using this dll.
Using c# , I think its possible by using some methods in System.Net.Sockets namespace.
Is it possible? Plz Share ur valuable suggestions and sample codes Yvan.
Member 12988559 8-Feb-17 2:19am    
Sir zkmachine data delete krne ki query btaein
harish dobhila 31-Mar-21 6:28am    
where to write this code?
Member 12068878 15-Sep-16 23:38pm    
How to particular record delete in fingerprint machine zkemkeeper every click event.

Yes its posssible

step 1 . connect the device using the code

public void connectDevice()
{
string ipaddress = "192.168.1.112";
int port = 4370;
status = macobj.Connect_Net(ipaddress, port);
macobj.RegEvent(iMachineNumber, 65535);
}

This code connect the device and your code

step 2 using the below function to get all the data

public List<datamodel1> userData()
{
List<datamodel1> UserInfoList = new List<datamodel1>();
string dwEnrollNumber = "";
int dwMachineNumber = 0;
string Password = "";
string Name = "";
bool dwEnable = false;
int dwVerifyMode = 0;
int dwInOutMode = 0;
int dwWorkcode = 0;

int dwYear = 0;
int dwMonth = 0;
int dwDay = 0;
int dwHour = 0;
int dwMinute = 0;
int dwSecond = 0;

//bool dwEnable = true;
int Privilege = 1;

if (macobj.ReadAllUserID(iMachineNumber))//read all the attendance records to the memory
{
while (macobj.SSR_GetAllUserInfo(dwMachineNumber, out dwEnrollNumber, out Name, out Password, out Privilege, out dwEnable))
{
UserInfoList.Add(new dataModel1 { ENROLLNUMBER = dwEnrollNumber, NAME = Name, PASSWORD = Password, PRIVILAGE = Privilege.ToString(), ENABLE = dwEnable });


}

}
return UserInfoList;


}
 
Share this answer
 
Sir mujhe zk machine data delete krna hai all users ka please wo Query btaein visual studio .net 2013 per work kr rha hun me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900