将用户数据添加到生物识别设备
大家好
我有ZKTeco公司的生物识别设备。通过我的C#代码,我可以成功连接到设备,Ping它等。
但是,我无法使用SDK(Zkemkeeper)将用户数据(如用户名,密码等)添加到设备.dll)SSR_SetUserInfo函数。在编译或运行时,我的代码没有出现任何错误或警告。在我的表单上,我有两个按钮WriteData(用于添加用户数据)和ReadData(用于访问用户数据)。我想在表单上显示数据,让我们说出一个列表(代码尚未编写)。两个按钮(WriteData和ReadData)的代码如下所示:
Hi Everyone
I have a Biometric Device from ZKTeco Company. Through my C# Code i can successfully connect to the device, Ping it etc.
However, i am unable to add user Data(such as Username, password etc.) to the device using the SDK's(Zkemkeeper.dll) SSR_SetUserInfo function. I don't get any Error or Warning for my code at Compile or Run time. On my Form i have two buttons WriteData(to add user Data) and ReadData(to access user Data). I want to display data on the Form let us say as a list(code for which has not been written as yet). The code for both the buttons(WriteData and ReadData) is written below:
private void btn_WriteData_Click(object sender, EventArgs e)
{
int MachineNumber = 1;
string EnrollNumber = "1";
string Name = "Mich";
string Password = "123";
int Privilege = 1;
bool Enabled = true;
objZkeeper.SSR_SetUserInfo(MachineNumber, EnrollNumber, Name, Password, Privilege, Enabled);
}
private void btn_ReadData_Click(object sender, EventArgs e)
{
int MachineNumber = 1;
string EnrollNumber = "";
string Name = "";
string Password = "";
int Privilege = 0;
bool Enabled = true;
objZkeeper.SSR_GetUserInfo(MachineNumber, EnrollNumber, out Name, out Password, out Privilege, out Enabled);
}
我们非常感谢这方面的任何帮助。
最好的问候>
MS
我尝试过:
我试图从网上获得答案,但没有成功获得所需的答案。
Any help in this regard is highly appreciated.
Best Regards
MS
What I have tried:
I have tried to get answer from the web but have not been successful in getting the desired answer.
你应该与创建它的人交谈 - ZKTeco支持 [ ^ ] - 他们应该提供技术支持,并且会比我们更了解他们的产品。如果他们不这样做,那么找另一个供应商并要求退款!
You should talk to the people who created it - ZKTeco Support[^] - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!
只需在
objZkeeper
之前添加一行
objZkeeper.EnableDevice(MachineNumber,false);
完成后添加此行
objZkeeper.EnableDevice(MachineNumber,true);
objZkeeper.EnableDevice(MachineNumber , false);
and after you finish add this line
objZkeeper.EnableDevice(MachineNumber , true);