bastianraschke / pyfingerprint

Python library for ZhianTec fingerprint sensors (e.g. ZFM-20, ZFM-60)
Other
190 stars 115 forks source link

Upload characteristics working modifications #94

Open ivanbazina opened 4 years ago

ivanbazina commented 4 years ago

Querstion in comment on line 1394: Should maxDataPacketSize be set to maxPacketSize - 2 because checksum length is 2 and it is also calculated in packet size?

chrisb2 commented 4 years ago

Should maxDataPacketSize be set to maxPacketSize - 2 because checksum length is 2 and it is also calculated in packet size?

The "Package Length" in the package is described as: "Refers to the length of package content (command packets and data packets) plus the length of Checksum( 2 bytes)." If maxDataPacketSize configured for sensor is 32, then the checksum length will be 34 for full size packages. Have confirmed this by dumping package to log file.