Coral USB not being detected intermitently

Hi,

I’m using a Raspberry Pi 4 with Home Assistant OS and a Conbee II as the only external USB device plugged in. I’ve recently bought a Coral USB to have it working with Frigate, and found that the device is intermittently not detected. I’ve tried to plug the Conbee II in one of the USB2.0 ports and the Coral USB in one of the USB3.0 ports, and eventually got it working, but after rebooting Home Assisntant it no longer works.

I’ve then bought a USB3.0 powered hub, as I’ve read the Raspberry Pi 4 could struggle to provide enough power through the USB ports, so got the Coral USB plugged into the hub, and the hub itself to one of the USB3.0 ports. It worked fine after the first reboot, but after the following reboot it is no longer detected.

2024-12-28 23:23:56.878323541  [2024-12-29 00:23:56] frigate.detectors.plugins.edgetpu_tfl INFO    : Attempting to load TPU as usb
2024-12-28 23:23:56.941920461  [2024-12-29 00:23:56] frigate.app                    INFO    : Output process started: 386
2024-12-28 23:23:56.942860235  [2024-12-29 00:23:56] frigate.detectors.plugins.edgetpu_tfl ERROR   : No EdgeTPU was detected. If you do not have a Coral device yet, you must configure CPU detectors.
2024-12-28 23:23:56.943422314  Process detector:coral:
2024-12-28 23:23:56.947741081  Traceback (most recent call last):
2024-12-28 23:23:56.947757785    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 160, in load_delegate
2024-12-28 23:23:56.947760266      delegate = Delegate(library, options)
2024-12-28 23:23:56.947777766    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 119, in __init__
2024-12-28 23:23:56.947781043      raise ValueError(capture.message)
2024-12-28 23:23:56.948666374  ValueError
2024-12-28 23:23:56.948677837  
2024-12-28 23:23:56.948680874  During handling of the above exception, another exception occurred:
2024-12-28 23:23:56.948682299  
2024-12-28 23:23:56.948684225  Traceback (most recent call last):
2024-12-28 23:23:56.948686966    File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
2024-12-28 23:23:56.948688466      self.run()
2024-12-28 23:23:56.948691040    File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
2024-12-28 23:23:56.948695781      self._target(*self._args, **self._kwargs)
2024-12-28 23:23:56.948706725    File "/opt/frigate/frigate/object_detection.py", line 102, in run_detector
2024-12-28 23:23:56.948709891      object_detector = LocalObjectDetector(detector_config=detector_config)
2024-12-28 23:23:56.948712447    File "/opt/frigate/frigate/object_detection.py", line 53, in __init__
2024-12-28 23:23:56.948714688      self.detect_api = create_detector(detector_config)
2024-12-28 23:23:56.948833000    File "/opt/frigate/frigate/detectors/__init__.py", line 18, in create_detector
2024-12-28 23:23:56.948837722      return api(detector_config)
2024-12-28 23:23:56.948874832    File "/opt/frigate/frigate/detectors/plugins/edgetpu_tfl.py", line 41, in __init__
2024-12-28 23:23:56.948878276      edge_tpu_delegate = load_delegate("libedgetpu.so.1.0", device_config)
2024-12-28 23:23:56.948881980    File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 162, in load_delegate
2024-12-28 23:23:56.948884424      raise ValueError('Failed to load delegate from {}\n{}'.format(
2024-12-28 23:23:56.948886776  ValueError: Failed to load delegate from libedgetpu.so.1.0
2024-12-28 23:23:56.948888072  
2024-12-28 23:23:56.990576703  [2024-12-29 00:23:56] frigate.app                    INFO    : Camera processor started for front_patio: 403
2024-12-28 23:23:57.013546876  [2024-12-29 00:23:57] frigate.app                    INFO    : Capture process started for front_patio: 405
2024-12-28 23:24:00.200917946  [INFO] Starting go2rtc healthcheck service...
2024-12-28 23:24:17.586718683  [2024-12-29 00:24:17] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting Frigate...
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service go2rtc-healthcheck: stopping
s6-rc: info: service certsync: stopping
2024-12-28 23:24:17.622845304  [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
2024-12-28 23:24:17.626762122  [INFO] Service CERTSYNC exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
s6-rc: info: service certsync successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service certsync-log: stopping
s6-rc: info: service certsync-log successfully stopped
2024-12-28 23:24:17.717725475  [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping

Has anyone got a similar problem? Thanks.

Power issue

Maybe try larger PDI or powered usb

swap usb c data cables, we used to run int this issue when creating ML add on for zoneminder.

1 Like