> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omi.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Omi DevKit 2

> The second Omi dev kit: a Xiao nRF52840 necklace with a removable microSD card, speaker, and battery-powered standalone recording.

> [!WARNING]
>
> **Legacy device.** DevKit 2 is no longer the current development hardware. The consumer Omi (CV1) is. This page is kept for builders who already own a DevKit 2. It is not manufactured or supported as a product; hardware questions go to [Discord](https://discord.omi.me).

## Overview

DevKit 2 is a necklace-form-factor dev kit built on the Seeed Xiao nRF52840 (Sense). It streams audio to the Omi app over BLE and, unlike DevKit 1, can record standalone to a **removable microSD card** (FAT/exFAT; bring your own card) and sync through the app afterwards. It has a small speaker and a 250 mAh 1S LiPo battery charged over USB-C.

| Component | Specification |
| - | - |
| Processor | Seeed Xiao nRF52840 Sense (`xiao_ble_sense`) |
| Storage | Removable microSD card over SPI (FAT/exFAT) |
| Speaker | Yes (enabled in DevKit 2 firmware) |
| Battery | 250 mAh 1S LiPo, charged over USB-C |
| Button | Single multi-function button (see below) |

> [!NOTE]
>
> Standalone recordings still need the Omi app for transcription. The device records audio; processing happens on the phone or backend.

## Button, LEDs, and power

The firmware source is the authority for device behavior in this table (`omi/firmware/devkit/src/button.c`, `main.c`):

| Interaction | What happens |
| - | - |
| **Single tap** | Sends a BLE button event to the app. The app maps it to voice-question mode: tap to start asking, tap again to send. |
| **Double tap** | Sends a BLE button event. The app's action is configurable in **Settings → Device Settings** (end & save conversation is the default). |
| **Hold 3 seconds** | Device powers off (short haptic pulse, LEDs off). |
| **Any press while off** | Powers the device on. Don't hold it. A 3-second hold after waking turns the device straight back off. |

There is no power switch and no push-to-talk mode: a long hold always means power off.

| LED | Meaning |
| - | - |
| Solid blue | On and connected to the phone |
| Solid red | On, not connected |
| Blinking green (with red or blue) | USB cable plugged in |
| All off | Powered off |

Boot briefly blinks red, green, blue, then white.

## Install firmware

> [card] OTA via the Omi app
>
> The default path: pair the DevKit in the app and accept the update prompt (Nordic DFU over BLE)

> [card] [UF2 drag-and-drop](https://docs.omi.me/doc/get_started/Flash_device.md)
>
> Double-click RST, drop the `.uf2` on the XIAO-SENSE drive

> [card] [Pre-built firmware](https://github.com/BasedHardware/omi/releases?q=release_firmware+DK2)
>
> GitHub Releases tagged `DK2`

> [card] [Compile from source](https://docs.omi.me/doc/developer/firmware/Compile_firmware.md)
>
> nRF Connect SDK v2.7.0, preset `build_xiao_ble_sense_devkitv2-adafruit`

## Testing device storage over BLE

Standalone recordings land on the microSD card as `audio/a01.txt`, `audio/a02.txt`, and so on. The app imports them automatically when it reconnects. To read or clear them yourself, use the storage service:

| Characteristic | UUID | Use |
| - | - | - |
| Command | `30295781-4301-EABD-2904-2849ADFEAE43` | Subscribe to notifications, then write commands |
| File sizes | `30295782-4301-EABD-2904-2849ADFEAE43` | Read two little-endian 32-bit file sizes (8 bytes) |

Commands are 6 bytes, `[command, file, offset_1, offset_2, offset_3, offset_4]`, with a big-endian byte offset. A 2-byte `[command, file]` form leaves the offset at zero. File numbers start at 1.

| Command | Code | Meaning |
| - | - | - |
| Read | `0` | Stream file `n` from the offset, rounded down to a multiple of 440 bytes |
| Clear | `1` | Clear file 1. The firmware ignores the file number. |
| Clear all | `2` | Clear the audio directory |
| Stop | `3` | Stop the current transfer |
| Heartbeat | `50` | Keep the session alive while reading |

Replies arrive as notifications on the command characteristic. A one-byte notification is a status. Anything longer is audio, up to 440 bytes per notification:

| Status | Meaning |
| - | - |
| `0` | Command accepted |
| `100` | Transfer finished |
| `200` | File cleared |
| `3` | File number out of range |
| `4` | File is empty |
| `5` | Offset is past the end of the file |
| `6` | Invalid command |

Helper scripts for discovery, listing, downloading, decoding, and deleting live in [`omi/firmware/scripts/devkit/`](https://github.com/BasedHardware/omi/tree/main/omi/firmware/scripts/devkit). Button events over the button characteristic are `1` single tap, `2` double tap, and `5` release. A long press powers the device off and is not reported.

## Getting a DevKit 2

DevKit 2 is no longer sold. For new hardware see [Omi (CV1)](https://docs.omi.me/doc/hardware/OmiConsumer.md) or build a [DevKit 1](https://docs.omi.me/doc/assembly/Build_the_device.md) from parts.

## Related documentation

> [card] [Omi (CV1)](https://docs.omi.me/doc/hardware/OmiConsumer.md)
>
> Current consumer hardware

> [card] [DevKit 1](https://docs.omi.me/doc/hardware/DevKit1.md)
>
> The first dev kit (also legacy)

> [card] [Flash firmware](https://docs.omi.me/doc/get_started/Flash_device.md)
>
> Update and recovery flows

> [card] [BLE Protocol](https://docs.omi.me/doc/developer/Protocol.md)
>
> The device ↔ app protocol


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.