MuaazH / ZKTeco_PULLSDK_Wrapper

A wrapper for ZKTeco's pullsdk & ZKFinger
51 stars 31 forks source link

Do you have example about use QR500 for drive? #1

Closed haisaco closed 1 year ago

haisaco commented 1 year ago

Can I know what is AccessPanel use QR500?

MuaazH commented 1 year ago

QR500 is not an Access Panel. It's just a card reader that is meant to be connected to an access panel. I could be wrong, the idiots from ZKTeco gave a very poor description and no datasheet for the product.

MuaazH commented 1 year ago

You should have a control panel somewhere else, can you describe your setup?

haisaco commented 1 year ago

I have 4 devices, each with a QR code reader. I create a separate database to store accessible QR code information. I use DllImport("plcommpro.dll"). First I "Connect" drive then use GetRTLog to get the information returned when the user uses the QR. I then examine the data in the database to make a decision to open the door. Currently my code is getting quite a lot of errors related to processing between threads.

MuaazH commented 1 year ago

If you've gotten that far, you may as well use AccessPanel.GetEventLog. The example on how to connect is on README

MuaazH commented 1 year ago

Closed for inactivity.

haisaco commented 1 year ago

Thanks you. I have a question. I want to set time pending for open door, do you know where it is? I see when I call OpenDoor it is open about 5s. I want to set wait open about 10s.

MuaazH commented 1 year ago

Change the 5 to 10. The 1st parameter is the door id. Example: 1, 2, 3... The 2nd parameter is time in seconds. Max is 60 seconds.

haisaco commented 1 year ago

2nd it's waiting time between 2 gate openings. It's not the waiting time to open the gate until someone comes through. I want to increase the open wait time until someone passes by

MuaazH commented 1 year ago

Are you sure? I only worked with these device remotely, I could've been mislead. Even the documentation is misleading in that case.

MuaazH commented 1 year ago

Param3 [in]: When the OperationID is output operation, the parameter indicates the door-opening time (0 indicates the closed state, 255 indicates the normal open state, the value range is 1 to 60 seconds). The default value is 0.

The bad, ugly documentation

MuaazH commented 1 year ago

take the last version of the code and try calling openDoor with 255. It should leave the door open forever. Then call closeDoor when you want to close it. That could be it.

MuaazH commented 1 year ago

Closed for inactivity.