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

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

Open
snappercayt opened this issue May 11, 2020 · 3 comments

Comments

@snappercayt
Copy link

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?

@philippmeisberger
Copy link
Collaborator

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

@snappercayt
Copy link
Author

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

@matigarowel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants