ZKLibrary icon indicating copy to clipboard operation
ZKLibrary copied to clipboard

Very Long Time Getting Data From Device

Open wahib05 opened this issue 6 years ago • 12 comments

I used this library but it was very long time to get data from device (60-90 seconds), I think all many resource in web services would be taken, so All Aplication in same web services waiting for getting data finish.

Could you give me solution ? Thanks u very much

wahib05 avatar Apr 05 '18 02:04 wahib05

Ok, i got solution for this issue, thanks

wahib05 avatar Apr 05 '18 21:04 wahib05

@wahib05 what was your solution?

kemboidickson avatar Apr 05 '18 21:04 kemboidickson

@wahib05 can u share us your solution? I'm also having this kind of long time execution of pulling data from the device

termers avatar Apr 06 '18 00:04 termers

for implementasion i just call:

$zk = new ZKLibrary('172.16.0.201', 4370); $zk->connect(); $zk->getAttendance(); it this only need 1 second to get data in device

I dont call : // $zk->disableDevice(); //$zk->clearAttendance(); //$zk->enableDevice(); //$zk->disconnect(); and other method,

may be device can be handle with that method so long time for execution, regard

wahib05 avatar Apr 06 '18 04:04 wahib05

@wahib05 I have tried your solution and heck yea.. it is lightning fast... I only commented the disableDevice() & enableDevice() functions...

termers avatar Apr 13 '18 02:04 termers

$zk->disableDevice(); 

only to prevent user check while application read attendance data and the check is not recorded. When $zk->disableDevice(); called, device will display text "Working..." so user can wait until the process done.

kamshory avatar Jun 01 '18 07:06 kamshory

@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?.

Please help me :)

javidu avatar Dec 28 '18 22:12 javidu

@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?.

Please help me :)

I have zkteco k40 and it's working very well with this clasd

wombiro avatar Jun 21 '20 21:06 wombiro

@wombiro Please how did you connect it. I mean get the library working locally

Fajendagba-Joy avatar Nov 17 '21 15:11 Fajendagba-Joy

I've zkteco fv18, in localhost it's working but when I test in the server this error is showing (Warning: socket_sendto(): Unable to write to socket [1]: Operation not permitted in /home/irydyuct/jccallcentre.com/emplogin/zk4/zklib/src/Connect.php on line 27) . How to solve this issue

zaid2255 avatar Jan 17 '23 12:01 zaid2255

@wahib05 Hi. I have a zkt eco 40 device but I cant conect it yet. First I would like to know what device do you have. Second, do you implement the same sdk code without change it?. Please help me :)

I have zkteco k40 and it's working very well with this clasd

I have zkteco k40 but its not working. i have copy this code but not working. ping pong recevied from device. but not working

shariqali91 avatar May 22 '23 08:05 shariqali91

I've zkteco fv18, in localhost it's working but when I test in the server this error is showing (Warning: socket_sendto(): Unable to write to socket [1]: Operation not permitted in /home/irydyuct/jccallcentre.com/emplogin/zk4/zklib/src/Connect.php on line 27) . How to solve this issue

SAME issue, i think this lib does not work while accessing externally

Ehtasham-CEF avatar Feb 22 '24 14:02 Ehtasham-CEF