> For the complete documentation index, see [llms.txt](https://docs.ducks-services.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ducks-services.com/dma/km-box/km-box-b+-setup.md).

# KM Box B+ Setup

{% stepper %}
{% step %}

### Connect the KM Box

* **Port #1** → Connect to your **second PC** using the included USB cable.
* **Port #2** → Connect to your **main PC** using the included USB cable.
* **Port #3 or #4** → Connect your **keyboard or mouse** (either port works).<br>

  <div align="left" data-with-frame="true"><figure><img src="https://3431908052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYId8chK5X4hf9NjSeQv%2Fuploads%2F2EU4LYmdgVm91bisIOQE%2Fimage.png?alt=media&#x26;token=aad3fcdf-4841-4d31-ac52-fdbe702fc51c" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Find a Mouse to Emulate

1. Go to [**http://www.linux-usb.org/usb.ids**](http://www.linux-usb.org/usb.ids).
2. Browse the list to find the mouse you want your KM Box to mimic.
3. Note down its **Product ID (PID)** and **Vendor ID (VID)** for later use.
   {% endstep %}

{% step %}

### Prepare the KM Box Script

1. Connect your **KM Box** to your **second PC**.
2. Download and run [**`upycraft.exe`**](https://randomnerdtutorials.com/install-upycraft-ide-windows-pc-instructions/).
   * If a **"Font"** message appears, ignore it and proceed by clicking **Board** or **Serial** under the **Tools** menu.
3. In the script:
   * Locate the **dynamic PID and VID** command lines and `device.enable(1)`.
   * Remove the `#` from the start of these three lines.
   * *(See Picture #1 for before, and Picture #2 for after)*.
   * \#1

     <div align="left" data-with-frame="true"><figure><img src="https://3431908052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYId8chK5X4hf9NjSeQv%2Fuploads%2FO6W1XcbwH5at5CHojN8o%2Fimage.png?alt=media&#x26;token=5924b484-9731-4832-8f0b-6e7c6296abd6" alt="" width="563"><figcaption></figcaption></figure></div>
   * \#2

     <div align="left" data-with-frame="true"><figure><img src="https://3431908052-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYId8chK5X4hf9NjSeQv%2Fuploads%2FXU8LFxAOPpnAuLJ671Hs%2Fimage.png?alt=media&#x26;token=b9c6ad13-83c5-4972-8bf3-c89002398fab" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Set Static PID & VID

1. Locate the static PID and VID values `(046d, c07d)` in the script.
2. Replace them with the **PID** and **VID** you noted in Step 2.
3. Remove the `#` comment symbol if present.
   {% endstep %}

{% step %}

### Save & Upload the Script

1. Press **Ctrl + S** to save changes.
2. In the **Tools** menu, click **Download and Run**.
   {% endstep %}

{% step %}

### Reboot the KM Box

1. Unplug both **blue USB cables** to power down the KM Box until the screen turns off.
2. Plug them back in.
3. Your main PC should now detect a **new mouse** and begin installing it, along with the updated **VID/PID**.
   {% endstep %}
   {% endstepper %}

***

### ✅ You're Done

{% hint style="success" %}
Your KM Box B+ is now setup and ready to use!
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ducks-services.com/dma/km-box/km-box-b+-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
