pyfingerprint icon indicating copy to clipboard operation
pyfingerprint copied to clipboard

Exception message: The received packet do not begin with a valid header!

Open snappercayt opened this issue 4 years ago • 3 comments

Hi, made some changes to the code to work on Raspberrypi 3b+ on its serial port changed ttyUSB0 to ttyS0 so now GPIO should be working as the port for the sensor but this is not working

def __init__(self, port = '/dev/ttyS0', baudRate = 57600, address = 0xFFFFFFFF, password = 0x00000000):

I did not change anything else so what should be giving this error?

snappercayt avatar May 11 '20 08:05 snappercayt

Hi, please see https://sicherheitskritisch.de/2015/03/fingerprint-sensor-fuer-den-raspberry-pi-und-debian-linux-en/, #1 or #71.

philippmeisberger avatar May 11 '20 19:05 philippmeisberger

Thanks! I did check that and what not lol tried to edit the read header function in the PyFingerprint then went back to the same file, I know its the old one because I removed all the files and installed it again and now I see this

>>> %Run enroll.py
The fingerprint sensor could not be initialized!
Exception message: 'module' object is not callable

snappercayt avatar May 12 '20 07:05 snappercayt

I solve this using this command sudo stty -F /dev/ttyS0 57600

matigarowel avatar Jan 01 '22 03:01 matigarowel