How to disconnect H8

Hi Hailo

I usually got error messages as follows:

[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.

Thanks

Hey @roiyim,

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:

  1. Use htop to find the PID of the application and kill it manually.
  2. 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.

Best Regards

1 Like

Hi omria

Thanks for fast reply

then is there have any hailoRT api for disconnect ?
I couldn’t find in hailoRT document

Thanks

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.

Best regards

1 Like

@roiyim you might find this topic helpful

1 Like