Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Finger Print data error #172

Open
nguyenthao1988 opened this issue Mar 24, 2023 · 6 comments
Open

Download Finger Print data error #172

nguyenthao1988 opened this issue Mar 24, 2023 · 6 comments
Labels
bug help wanted need more info More info is required to anaylize/fix the issue

Comments

@nguyenthao1988
Copy link

I'm using device zkteco details:
SerialNumber: A7K2204560009
FirmwareVer: Ver 6.60 Oct 8 2019
Mac: 00:17:61:12:f5:13
PlatForm: ZMM200_TFT
DeviceName: G2
FPAlg: 10
FaceAlg: 7
Manufacturer: ZKTeco Co., Ltd.
ManufactureTime: 2020-11-13 16:17:40

If my device upload less 1000 users in device,
this lib get data Success,
and then i upload more than 1000 users in this device
status device: ZK tcp://192.168.24.15:4370 users[72]:1686/20000 fingers:3359/50000, records:0/200000 faces:0/0
this lib return error => Process terminate : RWB Not supported
This code using:

`import sys
import os
sys.path.insert(1,os.path.abspath("./pyzk"))
from zk import ZK, const
conn = None

create ZK instance

zk = ZK('192.168.24.15', port=4370)

zk = ZK('192.168.24.15', port=4370)

try:
conn = zk.connect()
conn.read_sizes()
print(conn)
users = conn.get_users()
i = 0
for user in users:
i = i +1
print ('- UID #{}'.format(user.uid))
print (' Name : {} {}'.format(user.name, i))

except Exception as e:
print ("Process terminate : {}".format(e))
finally:
if conn:
conn.disconnect()`

How to fix it, Thanks sir.

@kurenai-ryu
Copy link
Collaborator

please include a pcap file, and enable verbose mode

@kurenai-ryu kurenai-ryu added the need more info More info is required to anaylize/fix the issue label Mar 24, 2023
@nguyenthao1988
Copy link
Author

dear @kurenai-ryu
pcap file using app Wireshark for capture http request ?

Thanks you sir!

@nguyenthao1988
Copy link
Author

nguyenthao1988 commented Mar 27, 2023

Dear @kurenai-ryu
Data.pcap at link: https://drive.google.com/file/d/1iMSZtm_oqJcQAtHKT-TQO_VBBrNcNWPR/view?usp=sharing
In wireshark i'm filter package
ip.addr == 192.168.24.15 and tcp.port in {4370}

PS D:\Documents\Downloads\sitemap-generator-master\sitemap-generator-master> & C:/Python311/python.exe d:/Documents/Downloads/test_zk.py
ZK tcp://192.168.24.15:4370 users[72]:946/20000 fingers:1912/50000, records:0/200000 faces:0/0
Process terminate : RWB Not supported

=> when upload account user: 930/20000 => ERROR RWB Not supported.
And in wireshark i not capture package return list user.

https://laptrinhvb.net/error2.png

and enable Verbose show this image:
https://laptrinhvb.net/error3.png

Can you help me, Thanks you so much,

@kurenai-ryu
Copy link
Collaborator

kurenai-ryu commented Mar 27, 2023

add verbose mode and also the code used for test. that error seems unrelated to pyzk.
reopen if needed
(check comment below)

@kurenai-ryu
Copy link
Collaborator

ok, after reviewing some of the info, It seems your device is too old, maybe you can try with an older version of this library, way before implementing the ReadWriteBuffer (probably tag 0.9 or 0.6)

as it seems, I didn't found a device that didn't have the RWB feature until today - that's why I replace the older mechanism with the RWB (that uses command _CMD_PREPARE_BUFFER to build a bulk request)

in the mean time try using the get_user_template to read each template one by one,
and please test the get_attendance if the same error rises.
if not, that workaround could help you.
if yes, sorry, the current version can't help you.

sadly I don't have the time nor devices to re-implement the older method, so that's on you.

@nguyenthao1988
Copy link
Author

nguyenthao1988 commented Mar 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted need more info More info is required to anaylize/fix the issue
Projects
None yet
Development

No branches or pull requests

2 participants