apple-home-key-reader
apple-home-key-reader copied to clipboard
Raspberry Pi Zero 2 W problems need help !
I am using a Raspberry Pi Zero 2 W and currently don’t have an FTDI adapter. Is it necessary or mandatory for UART communication?
I am using GPIO 15 and GPIO 14 (TXD and RXD) for UART communication. A few days ago, everything was working fine, but now I keep getting errors like:
Traceback (most recent call last):
File "/opt/apple-home-key-reader/util/threads.py", line 18, in function_
target(*args, **kwargs)
File "/opt/apple-home-key-reader/service.py", line 178, in run
self.clf.open(self.clf.path)
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/__init__.py", line 149, in open
self.device = device.connect(path)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/device.py", line 112, in connect
device = driver.init(tty)
^^^^^^^^^^^^^^^^
File "", line 78, in init
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/pn532.py", line 190, in __init__
super(Device, self).__init__(chipset, logger)
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/pn53x.py", line 478, in __init__
chipset_communication = self.chipset.diagnose('line')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/pn53x.py", line 269, in diagnose
return self.command(0x00, data, timeout=1.0) == data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/nfc/clf/pn53x.py", line 211, in command
raise IOError(errno.EIO, os.strerror(errno.EIO))
OSError: [Errno 5] Input/output error
I have already tried both ttyAMA0 and ttyS0, but neither works. I have also configured the serial settings on the Raspberry Pi correctly.
And I also get this erros.
[2024-09-21 22:27:37,300] [ ERROR] service :175 Connecting to the NFC reader...
NoneType: None
[2024-09-21 22:27:37,301] [ INFO] __init__ :148 searching for reader on path tty:ttyAMA0:pn532
[2024-09-21 22:27:38,379] [ ERROR] pn53x :210 frame lenght value mismatch
[2024-09-21 22:27:38,380] [ ERROR] threads :20 Unhandled exception in runner homekey. Continuing in 5 seconds
Traceback (most recent call last):