Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?


try
           {
               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);
                   }
                   else
                   {
                       MessageBox.Show("error opening boom gate door.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                   }
                   zk.Disconnect();
               }
               else
               {
                   MessageBox.Show("error connecting with boom gate device. call it", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
               }
           }
           catch (Exception ex)
           {
               MessageBox.Show(ex.Message);
           }


here is the manual that i found in the google

zkemsdkmanual_compress.pdf - Google Drive[^]

here is the dll that i'm using

zkemkeeper.dll - Google Drive[^]

and here is the command that of the dll
ZK.txt - Google Drive[^]

What I have tried:

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)
ACUNLOCK(DOOR UNLOCK)-> DOOR UNLOCK(did not open)-> bypass the door-> open the door
Posted
Updated 19-Oct-20 2:23am

1 solution

first do some research on CodeProject: [^], and Google: [^]

And, of course, look for documentation on the "boom" hardware from the manufacturer.
 
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