Probleme beim Projekt von open3e und CryTeam beim Neustart des RaspberryPi

Hi liebe Community,

ich habe vor einigen Monaten meinen VX3 mit dem Projekt von open3e https://www.youtube.com/watch?v=u_fkwtIARug in Homeassistant eingebunden, das hat bis jetzt auch wunderbar funktioniert. Nach einem Neustart des Pi auf welchem das Programm läuft habe ich das Problem, dass nur noch Fehlermeldungen im Mqtt-Broker ankommen. Wenn ich mich über SSH auf den Pi verbinde und die Kommunikation mit dem Befehl

(.venv) pi@PiVX3:~ $ open3e -c can0 -v -r 256

teste kommt die Fehlermeldung:

Configuration file devices.json not found, continuing with generic DID list, ECU 0x680
Exception in thread Thread-2 (_relay_thread_fn):
Exception in thread Thread-1 (_main_thread_fn):
Traceback (most recent call last):
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 889, in _send_once
    sent = self.socket.send(data)
OSError: [Errno 100] Network is down

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 623, in capture_message
    cf, ancillary_data, msg_flags, addr = sock.recvmsg(
                                          ~~~~~~~~~~~~^
        constants.CANFD_MTU, RECEIVED_ANCILLARY_BUFFER_SIZE
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/threading.py", line 994, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 100] Network is down
  File "/home/pi/.venv/lib/python3.13/site-packages/isotp/protocol.py", line 1632, in _main_thread_fn
    super().process(rx_timeout)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^

The above exception was the direct cause of the following exception:

  File "/home/pi/.venv/lib/python3.13/site-packages/isotp/protocol.py", line 863, in process
    self.txfn(msg)
    ~~~~~~~~~^^^^^
  File "/home/pi/.venv/lib/python3.13/site-packages/isotp/protocol.py", line 1692, in python_can_tx_canbus_3plus
    owner.bus.send(can.Message(arbitration_id=msg.arbitration_id, data=msg.data,
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                               is_extended_id=msg.is_extended_id, is_fd=msg.is_fd, bitrate_switch=msg.bitrate_switch))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 874, in send
    sent = self._send_once(data, channel)
  File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 891, in _send_once
    raise can.CanOperationError(
        f"Failed to transmit: {error.strerror}", error.errno
    ) from error
  File "/usr/lib/python3.13/threading.py", line 994, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
can.exceptions.CanOperationError: Failed to transmit: Network is down [Error Code 100]
  File "/home/pi/.venv/lib/python3.13/site-packages/isotp/protocol.py", line 1607, in _relay_thread_fn
    data = self.user_rxfn(rx_timeout)
  File "/home/pi/.venv/lib/python3.13/site-packages/isotp/protocol.py", line 1739, in _rx_canbus
    msg = self.bus.recv(timeout)
  File "/home/pi/.venv/lib/python3.13/site-packages/can/bus.py", line 121, in recv
    msg, already_filtered = self._recv_internal(timeout=time_left)
                            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 836, in _recv_internal
    msg = capture_message(self.socket, get_channel)
  File "/home/pi/.venv/lib/python3.13/site-packages/can/interfaces/socketcan/socketcan.py", line 631, in capture_message
    raise can.CanOperationError(
        f"Error receiving: {error.strerror}", error.errno
    ) from error
can.exceptions.CanOperationError: Error receiving: Network is down [Error Code 100]
2026-02-19 18:47:52 [ERROR] UdsClient: [TimeoutException] : Did not receive response in time. Global request timeout time has expired (timeout=3.000 sec)
0x680 256 ERR/0x680.256 "Did not receive response in time. Global request timeout time has expired (timeout=3.000 sec)"
closing 0x680 - bye!

ich habe unter dem Youtube-Video einen Beitrag von einem User gefunden, bei dem der Can0 nicht auf UP gesetzt war, das habe ich dann mit folgendem Befehl getan:

(.venv) pi@PiVX3:~ $ sudo ip link set can0 up

Allerdings kommt jetzt immer noch folgende Meldung beim Verbindung testen:

(.venv) pi@PiVX3:~ $ open3e -c can0 -v -r 256
Configuration file devices.json not found, continuing with generic DID list, ECU 0x680
0x680 256 BusIdentification {"BusAddress": 1, "BusType": {"ID": 2, "Text": "CanInternal"}, "DeviceProperty": {"ID": 28, "Text": "EMCUMASTER"}, "DeviceFunction": {"ID": 0, "Text": "NOTHING"}, "SW-Version": "24.503.2239.204", "HW-Version": "24.603.101.1", "VIN": "7471081327769124"}
closing 0x680 - bye!

Es sieht so aus, als ob er die .json Datei nicht finden kann.

Kann mir da vielleicht jemand helfen? Das letzt mal habe ich den Pi noch einmal komplett “platt” gemacht und alles neu installiert. Es kann ja nicht sein, dass ich das nach jedem Stromausfall wieder machen muss.

Hoffentlich kann mir jemand helfen.

LG

Peter