我有ZKTeco Biometrics设备,它使用本教程(C#ZKTeco生物识别设备入门)与C#windows应用程序连接.
它工作正常,但一段时间后,我的应用程序无法ping通设备.如下面的代码建议,我试图在每25秒后ping一次设备.
private void TimerCheckPingAndCloseAttendanceForm() {
timerCheckPingAndCloseAttendanceForm = new Timer();
timerCheckPingAndCloseAttendanceForm.Tick += new EventHandler(CheckPingAndCloseAttendanceForm);
timerCheckPingAndCloseAttendanceForm.Interval = 25000;//25 seconds.
timerCheckPingAndCloseAttendanceForm.Start();
}
private void CheckPingAndCloseAttendanceForm(object sender, EventArgs e) {
string ipAddress = tbxDeviceIP.Text.Trim();
if (UniversalStatic.PingTheDevice(ipAddress) == false) {
//CloseAttendaceListForm();
IsDeviceConnected = false;
string infoString = "Application started on " + applicationStartDateTime.ToString() + " and ping failed on " + DateTime.Now.ToString() + " then, app closed while device ip is "+ ipAddress;
File.AppendAllText("ConnectionLog.txt", infoString + Environment.NewLine);
Application.Exit();
//timerCheckPingAndCloseAttendanceForm.Tick -= …Run Code Online (Sandbox Code Playgroud) 我有这个生物识别技术,但它给了我完全错误的输出 - 不同的用户 ID和2132 年的验证日期。
是什么导致了这种错误信息?我在互联网上找不到任何类似的问题。有没有其他人遇到过和我一样的问题?
C# 代码:
if (axCZKEM1.ReadGeneralLogData(GetMachineNumber()))
{
while (axCZKEM1.SSR_GetGeneralLogData(GetMachineNumber(), 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
{
DataRow dr = dt_log.NewRow();
dr["User ID"] = sdwEnrollNumber;
dr["Verify Date"] = idwYear + "-" + idwMonth + "-" + idwDay + " " + idwHour + ":" + idwMinute + ":" + idwSecond;
dr["Verify Type"] = idwVerifyMode;
dr["Verify …Run Code Online (Sandbox Code Playgroud) 我正在尝试构建一个java应用程序来获取zkteco生物识别的数据。
zkteco有内置API吗?
如果没有,我如何将zkteco连接到 java 应用程序?
我是 ZKteco 设备的新手!我正在使用 Zkteco 设备。我有一个 Zkteco 设备,并且下载了一个独立的 SDK,但该 SDK 不会触发事件(例如 OnVerify 或 OnAttTransaction)。所以,我在一些文章中看到,我需要使用Push SDk,但我找不到它。
zkteco ×4
c# ×3
biometrics ×2
.net ×1
api ×1
connection ×1
device ×1
sdk ×1
vb.net ×1
zkemkeeper ×1