# 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: 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://docs.ducks-services.com/dma/km-box/km-box-b+-setup.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.
