# KM Box B+ Setup

### KM Box Mouse Emulation Setup

#### 1. 🔌 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"><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>

***

#### 2. 🔍 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.

***

#### 3. 💻 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"><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"><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>

***

#### 4. ✏️ 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.

***

#### 5. 💾 Save & Upload the Script

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

***

#### 6. 🔄 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**.

***
