interop zkemkeeper unlock door but ACUNLOCK command is not working sometimes. RRS feed

  • Question

  • Hi I created a simple code where i can open a boom barrier. The code is fine but the problem is barrier arm doesn't lift even i push a command to the machine, my analysis is that the machine is reading the barrier arm wrong that it is not fully down or closed that's why my command stuck and the machine is not releasing it. my question is how can i bypass this door in order to open it?

                   zkemkeeper.CZKEM zk = new zkemkeeper.CZKEM();
                   bool connected = false;
                   int PortNo = 4370;
                   int machineNumber = zk.MachineNumber;
                   string deviceIp = string.Empty;
                   connected = zk.Connect_Net(ipAddress, PortNo);
                   if (connected)
                       if (zk.ACUnlock(machineNumber, 500))
                           MessageBox.Show("Open boom door ", "Open Boom Door", MessageBoxButtons.OK);
                           MessageBox.Show("error opening boom gate door.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                       MessageBox.Show("error connecting with boom gate device. call it", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
               catch (Exception ex)

    i tried a loop command but this might harm the machine, i really don't
    know if it's possible to bypass this without even satisfying this


    ACUNLOCK(DOOR UNLOCK)-> DOOR UNLOCK(did not open)-> bypass the door-> open the door

    Monday, October 19, 2020 9:47 AM

All replies

  • Hi Reden Rodriguez,
    Based on your description, the "ACUNLOCK" is third-party.
    And I suggest you ask the machine manufacturer for help.
    Thank you for your understanding.
    Best Regards,
    Daniel Zhang

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, October 20, 2020 6:32 AM