Suppose I have a timekeeper, Ronald jack x628-C, I export time attendance data from the device, including two files: data.dat and device.dat because the old machine runs or crashes the device, I buy the device again If I restore the fingerprint from the old device, I added the remaining device.dat file, which was reported: "IP Error Input!" Restore the data to the device, and the data must be the backup BIN data passing the backup function before. Any of you know this error only helps with.

Dani AI

Generated

What trips most folks up here is that the files you exported (data.dat, device.dat) are attendance logs/device config, not the fingerprint templates themselves. The device’s Restore function only accepts a full device backup created by the device’s own Data Management > Backup Data workflow (often to a USB stick). USB Manager’s Download uploads logs or user info, but it does not package templates for restore, which is why your .dat files are rejected. Try creating a proper backup on the old unit, then Restore on the new one. (manualslib.com)

If the old unit is too unstable to make a backup, you can migrate templates over TCP/IP with ZKTeco’s SDK (X628-C supports the SDK). Fetch users and templates from the old unit, then push them to the new unit, roughly like this:

using zkemkeeper;

var zk = new CZKEMClass();
if (!zk.Connect_Net("OLD_IP", 4370)) throw new Exception("Connect old failed");
zk.ReadAllUserID(1);

string id, name, pwd; int priv; bool enabled;
var templates = new List<(string user,int finger,string data)>();

while (zk.SSR_GetAllUserInfo(1, out id, out name, out pwd, out priv, out enabled))
{
    for (int finger = 0; finger < 10; finger++)
    {
        string tmp; int len;
        if (zk.SSR_GetUserTmpStr(1, id, finger, out tmp, out len))
            templates.Add((id, finger, tmp));
    }
}

zk.Disconnect();
zk.Connect_Net("NEW_IP", 4370);
foreach (var t in templates)
{
    zk.SSR_SetUserInfo(1, t.user, "", "", priv, true);
    zk.SSR_SetUserTmpStr(1, t.user, t.finger, t.data);
}
zk.RefreshData(1);

Notes that will save time:

  • Build your WinForms app for x86 and ensure zkemkeeper is registered, or you will see “class not registered” errors. (zkteco.com)
  • Default comms are TCP port 4370 and Comm Key 0; confirm both before connecting or restoring. (zkteco.com)
  • Template formats are algorithm-dependent (e.g., ZKFinger V10.0), so keep devices in the same family/firmware when migrating. (zkteco.com)

Good call by to involve the vendor; if your Ronald Jack X628-C matches ZKTeco’s X628-C, their SDK docs and support apply. (zkteco-sa.com)

Recommended Answers

All 3 Replies

I look for example backup and restore code written in winform C#, do you have this example shared with

@dongrien. It appears to be a rare thing. Again, find the maker to see what they supply for example code or API.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.