fananimi / pyzk

Unofficial library of zkteco fingerprint attendance machine
GNU General Public License v2.0
489 stars 319 forks source link

connecting with F18-DM firmware : Ver 8.0.3.2-20170117 #194

Closed Amervega closed 11 months ago

Amervega commented 11 months ago

Describe the bug Connect to device F18-DM

To Reproduce python3 test_machine.py -a 192.168.5.233 -v -p 4370

Capture Data

Connecting to device ... Process terminate : timed out Error: <class 'zk.exception.ZKNetworkError'>

Traceback (most recent call last): File "/home/veganet/pyzk-master/zk/base.py", line 249, in __send_command self.tcp_data_recv = self.sock.recv(response_size + 8) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "test_machine.py", line 67, in conn = zk.connect() File "/home/veganet/pyzk-master/zk/base.py", line 373, in connect cmd_response = self.send_command(const.CMD_CONNECT) File "/home/veganet/pyzk-master/zk/base.py", line 260, in send_command raise ZKNetworkError(str(e)) zk.exception.ZKNetworkError: timed out

System (please complete the following information):

Additional context firmware Ver 8.0.4.2.01-20180911 device : F18-DM telnet : Welcome to Linux (ZMM220) for MIPS Kernel 3.0.8 on an MIPS result : not connected

another device worked fine firmware : Ver 8.0.3.2-20170117 device : F18/ID os (telnet ) : Welcome to Linux (ZMM220) for MIPS Kernel 3.0.8 on an MIPS result : connected

kurenai-ryu commented 11 months ago

it means unsupported device

Amervega commented 11 months ago

@kurenai-ryu thank you for you reply, but is there any update ? the two devices working with zk tech software thank you in advance.

kurenai-ryu commented 11 months ago

if you have a working device check if the firmware is different, check if the ip address is correct, check if the port is correct, check if the password is empty/disable

everything is on your side.

Amervega commented 11 months ago

if you have a working device check if the firmware is different, check if the ip address is correct, check if the port is correct, check if the password is empty/disable

everything is on your side.

everything is working fine with zk tech software the different is firmware : Ver 8.0.3.2-20170117 (working device) Ver 8.0.4.2.01-20180911 (not working )

kurenai-ryu commented 11 months ago

if you have correct communication between zkteco software, please capture the PCAP file

  1. for the working device (as confirmation)
  2. for the not working device

but as i said, it means that your newer device is incompatible with pyzk library

reopen if you have the aforementioned files