added supported list and -basic flag for simpler tests

This commit is contained in:
Arturo Hernandez 2018-07-24 19:49:18 -04:00
parent 46560b4511
commit c78d652162
2 changed files with 74 additions and 1 deletions

View File

@ -234,7 +234,71 @@ optional arguments:
``` ```
# Related Project (TODO: check compatibility) # Compatible devices
```
Firmware Version : Ver 6.21 Nov 19 2008
Platform : ZEM500
DeviceName : U580
Firmware Version : Ver 6.60 Oct 29 2012
Platform : ZEM800_TFT
DeviceName : iFace402/ID
Firmware Version : Ver 6.60 Dec 27 2014
Platform : ZEM600_TFT
DeviceName : iFace800/ID
Firmware Version : Ver 6.60 Mar 18 2013
Platform : ZEM560
DeviceName : MA300
Firmware Version : Ver 6.60 Dec 1 2010
Platform : ZEM510_TFT
DeviceName : T4-C
Firmware Version : Ver 6.60 Apr 9 2010
Platform : ZEM510_TFT
DeviceName : T4-C
Firmware Version : Ver 6.60 Mar 18 2011
Platform : ZEM600_TFT
DeviceName : iClock260
Firmware Version : Ver 6.60 Nov 6 2017 (remote tested with correct results)
Platform : ZMM220_TFT
DeviceName : (unknown device) (broken info but at least the important data was read)
```
### Latest tested (not really confirmed)
```
Firmware Version : Ver 6.60 Jun 16 2015
Platform : JZ4725_TFT
DeviceName : iClock260
Firmware Version : Ver 6.60 Jun 16 2015
Platform : JZ4725_TFT
DeviceName : K14 (not tested, but same behavior like the other one)
```
### Not Working (needs more tests, more information)
```
Firmware Version : Ver 6.4.1 (build 99) (display version 2012-08-31)
Platform :
DeviceName : iClock260 (no capture data - probably similar problem as the latest TESTED)
```
If you have another version tested and it worked, please inform me to update this list!
# Related Project (TODO: check compatibility with this fork)
* [zkcluster](https://github.com/fananimi/zkcluster/ "zkcluster project") is a django apps to manage multiple fingerprint devices. * [zkcluster](https://github.com/fananimi/zkcluster/ "zkcluster project") is a django apps to manage multiple fingerprint devices.

View File

@ -15,6 +15,9 @@ from zk.finger import Finger
from zk.attendance import Attendance from zk.attendance import Attendance
from zk.exception import ZKErrorResponse, ZKNetworkError from zk.exception import ZKErrorResponse, ZKNetworkError
class BasicException(Exception):
pass
conn = None conn = None
@ -27,6 +30,8 @@ parser.add_argument('-T', '--timeout', type=int,
help='Default [10] seconds (0: disable timeout)', default=1) help='Default [10] seconds (0: disable timeout)', default=1)
parser.add_argument('-P', '--password', type=int, parser.add_argument('-P', '--password', type=int,
help='Device code/password', default=0) help='Device code/password', default=0)
parser.add_argument('-b', '--basic', action="store_true",
help='display Basic Information (no buld read, ie: users)')
parser.add_argument('-f', '--force-udp', action="store_true", parser.add_argument('-f', '--force-udp', action="store_true",
help='Force UDP communication') help='Force UDP communication')
parser.add_argument('-v', '--verbose', action="store_true", parser.add_argument('-v', '--verbose', action="store_true",
@ -89,6 +94,8 @@ try:
conn.read_sizes() conn.read_sizes()
print (conn) print (conn)
print ('') print ('')
if args.basic:
raise BasicException("Basic Info... Done!")
print ('--- Get User ---') print ('--- Get User ---')
inicio = time.time() inicio = time.time()
users = conn.get_users() users = conn.get_users()
@ -223,6 +230,8 @@ try:
print('') print('')
print('--- capture End!---') print('--- capture End!---')
print ('') print ('')
except BasicException as e:
print (e)
except Exception as e: except Exception as e:
print ("Process terminate : {}".format(e)) print ("Process terminate : {}".format(e))
print ("Error: %s" % sys.exc_info()[0]) print ("Error: %s" % sys.exc_info()[0])