-
Notifications
You must be signed in to change notification settings - Fork 55
Getting incorrect packet data when uploading image #29
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
Comments
Sorry, my (your) _get_data function is:
Please, look at the line between ** XXXXX ** |
Hello @xavirp, Cheers, |
Hi Ar, |
@xavirp I'm unable to replicate this on my end. One option is to download Eltima's serial port monitor and view the raw packets between your PC and the sensor. It might provide some clue as to why you are not getting complete packets. |
Is this issue resolved? |
@ajiekurniawansaputra did #47 resolve this for you? I'm wondering if this can be closed now. |
yess |
Hi,
I've tested the PR and I'm receiving this error when downloading template. The last debug lines are:
Downloading template...
*** DEBUG ==> _send_packet length: 13
*** DEBUG ==> _send_packet data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '01', '00', '04', '08', '01', '00', '0e']
*** DEBUG ==> _get_packet received data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '07', '00', '03', '00', '00', '0a']
*** DEBUG ==> _get_packet reply: ['00']
*** DEBUG ==> _get_data received data: ['ef', '01', 'ff', 'ff', 'ff', 'ff', '02', '00', '82']
*** DEBUG ==> _get_data received start pos: 0xef01
*** DEBUG ==> _get_data received address: [255, 255, 255, 255]
*** DEBUG ==> _get_data received packet_type: 0x2
*** DEBUG ==> _get_data received length: 0x82
*** DEBUG ==> _get_data received checksum: (20956,)
*** DEBUG ==> _get_data received data: ['36', 'ab', '14', '65', '0f', 'a7', '05', '1f', '2e']
*** DEBUG ==> _get_data received start pos: 0x36ab
Traceback (most recent call last):
File "adafruit_template_file_compare.py", line 196, in
enroll_save_to_file()
File "adafruit_template_file_compare.py", line 147, in enroll_save_to_file
data = finger.get_fpdata("char", 1)
File "/home/pi/huellas/adafruit.py", line 222, in get_fpdata
res = self._get_data(9)
File "/home/pi/huellas/adafruit.py", line 405, in _get_data
reply += self._get_data(9)
File "/home/pi/huellas/adafruit.py", line 382, in _get_data
raise RuntimeError("Incorrect packet data")
RuntimeError: Incorrect packet data
The data received length is 130 (I showed it in hex). For some reason there's no next complete parcel, don't know why. Any clue?
Thx
The text was updated successfully, but these errors were encountered: