IntelRealSense / RealSenseID

Intel® RealSense™ ID SDK
https://intelrealsense.com/facial-authentication/
Apache License 2.0
98 stars 57 forks source link

RuntimeError: CrcError #105

Closed zeynepkoyun closed 3 years ago

zeynepkoyun commented 3 years ago

I have compiled the RealsenseID to work with python3.6 and run "viewer.py" but when I want to run "authenticate.py" I get the following error. @gabime I would be glad if you help.

[2021-07-28 15:46:42.814] [debug] [LinuxSerial] Opening serial port /dev/ttyACM0 baudrate 115200 [2021-07-28 15:46:42.931] [debug] [NonSecureSession] Start session [2021-07-28 15:46:42.931] [debug] [PacketSender] Sending packet 'o' [2021-07-28 15:46:42.933] [debug] [PacketSender] Waiting packet.. [2021-07-28 15:46:42.941] [error] [PacketSender] Got invalid crc. Expected: 561. Actual: 20100 [2021-07-28 15:46:42.941] [error] [NonSecureSession] Failed to recv device start session response [2021-07-28 15:46:42.941] [error] [FaceAuthenticatorImpl] Session start failed with status 108 on_result AuthenticateStatus.CrcError Traceback (most recent call last): File "authenticate.py", line 22, in f.authenticate(on_faces=on_faces, on_result=on_result) RuntimeError: CrcError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "authenticate.py", line 22, in f.authenticate(on_faces=on_faces, on_result=on_result) TypeError: exit(): incompatible function arguments. The following argument types are supported:

  1. (self: rsid_py.FaceAuthenticator, arg0: capsule, arg1: capsule, arg2: capsule) -> None

Invoked with: <rsid_py.FaceAuthenticator object at 0x7f3df1b56ae8>, <class 'RuntimeError'>, RuntimeError('CrcError',), <traceback object at 0x7f3df1b6d788> [2021-07-28 15:46:42.946] [debug] [NonSecureSession] Close session

gabime commented 3 years ago

Just to clarify, the viewer.py worked, but the authenticate.py didn’t? both in linux?

jeyyoon-ru commented 3 years ago

I had the problem and solved it by upgrading rsid firmware with the latest version.

zeynepkoyun commented 3 years ago

@gabime yes, both on linux

zeynepkoyun commented 3 years ago

I had the problem and solved it by upgrading rsid firmware with the latest version.

@jeyyoon I tried "F450_4.2.0.8200_SKU2_SIGNED.bin" and "F450_4.2.0.8200_SKU1_SIGNED.bin" but got the same error.

gabime commented 3 years ago

Please try to upgrade to latest firmware.

zeynepkoyun commented 3 years ago

@gabime I'm getting the latest version from the site "https://github.com/IntelRealSense/RealSenseID/releases/tag/v0.23.0".

gabime commented 3 years ago

I can't reproduce. Could be that ModemManager is running. Please try

sudo systemctl stop ModemManager
zeynepkoyun commented 3 years ago

I can't reproduce. Could be that ModemManager is running. Please try

sudo systemctl stop ModemManager

@gabime, @jeyyoon I checked, the service was already not running. I started retesting everything and when I want to update with file "F450_4.2.0.8200_SKU2_SIGNED.bin" it says "Device does not support the encryption applied on the firmware. Replace firmware binary." i got the error.

benlev commented 3 years ago

Sounds like you have a SKU1 device, please try flashing this firmware.

zeynepkoyun commented 3 years ago

Bir SKU1 cihazınız var gibi görünüyor, lütfen bu bellenimi güncellemeyi deneyin .

@benlev, I was able to update with this file before but I get CrcError error in "auhenticate" operation so I tried different .bin files but it didn't work. Now I checked the serial number of the device and verified that it is a SKU1 device, but I cannot do what it wants to do with the .bin file for sku1.

zeynepkoyun commented 3 years ago

I had the problem and solved it by upgrading rsid firmware with the latest version.

@jeyyoon I tried "F450_4.2.0.8200_SKU2_SIGNED.bin" and "F450_4.2.0.8200_SKU1_SIGNED.bin" but got the same error. @jeyyoon, @gabime, I do the firmware update command as "./rsid-fw-update --file F450_4.2.0.8200_SKU1_SIGNED.bin --port /dev/ttyACM0". Are you doing something different in the update part?