[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_OUT_OF_PHYSICAL_DEVICES(74)
I think VDevice() function is connect to HW device.
For me … need to scan the status of connection with HW devices
and also wanna know how to disconnect the devices.
That error typically indicates that a previous instance of an application is still using the H8 hardware. To resolve this, you have a couple of options:
Use htop to find the PID of the application and kill it manually.
Alternatively, you can try the following commands:
cd /dev/
find | grep hailo
sudo lsof hailoNUM # Replace NUM with 0, 1, 2, etc., depending on the number of devices on your machine
sudo kill DEVICE_PID
This sequence will help you identify which process is keeping the device in use and allow you to terminate it.
If you’re referring to releasing the device from within the application, you can use this Python method:
def release_device(self):
"""
Release the Hailo device.
"""
self.target.release()
However, for the command-line interface (CLI), there’s no direct HailoRT API to disconnect the device. In this case, we typically use one of the methods I mentioned earlier (using htop or the series of commands to find and kill the process).
Let me know if you need any further clarification on either the in-application method or the CLI approach.