# Solving USB Connection Issues on Linux

If you're experiencing issues accessing Binho host adapters on Linux, whether using our SDKs or desktop apps, follow these steps to resolve the problem.

### Issue Description

You may encounter an error when trying to access a Binho device, which could look something like:

```
Open connection failed. Exception type: <class 'OSError'>. Exception message: open failed.
```

### Solution

Follow these steps to set up proper permissions and resolve the issue:

#### 1. Create a user group for Binho devices

```sh
sudo groupadd binho
sudo usermod -a -G binho $USER
```

#### 2. Refresh your session

```sh
su - $USER
```

#### 3. Verify your user belongs to the `binho` group

```sh
groups
```

#### 4. Set proper permissions for Binho devices

Create a new rules file for `udev` to handle the USB permissions:

```sh
sudo nano /etc/udev/rules.d/99-binho.rules
```

Add the following rules:

```
SUBSYSTEM=="usb", MODE="0666", GROUP="binho"
SUBSYSTEM=="hidraw", MODE="0664", GROUP="binho"
```

#### 5. Reload `udev` rules

```sh
sudo udevadm control --reload
sudo udevadm trigger
```

#### 6. Reboot if necessary

If the issue persists, try rebooting your system.

### Verifying Device Connection

To check if your device is properly connected and recognized by your system, run your preferred application or tool, verify the device is listed, and connect to the device. The output should indicate the device is succesfully connected.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.binho.io/troubleshooting/solving-usb-connection-issues-on-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
