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

# Integrate your device with the Elata SDK

> Integrate a headset or biosignal device into the Elata EEG BLE stack with a simple, reliable path.

This guide is for device companies that want their hardware to work with the
Elata SDK.

The target is simple: your device should plug into the shared Elata transport
boundary and emit stable frames that apps can trust.

> [card] [Start with the contract](https://docs.elata.bio/sdk/eeg-web/headband-transport.md)
>
> Review the shared frame and transport types before writing adapter code.

> [card] [Check browser support](https://docs.elata.bio/sdk/operations/compatibility.md)
>
> Confirm Web Bluetooth, browser, and platform constraints first.

## What You Are Building

A production-ready integration should do three things well:

1. connect reliably
2. stream frames in a stable, predictable format
3. recover cleanly when the device, browser, or radio link misbehaves

In Elata terms, that means converging on `HeadbandTransport` and
`HeadbandFrameV1` instead of exposing vendor-specific packet layouts directly.

> [!NOTE]
>
> Apps should depend on the shared Elata transport contract, not on raw vendor
> packets. That keeps downstream integrations simple and makes device support
> easier to maintain.

## The Fast Path

**1. Choose an integration path**

Decide whether your device belongs upstream in `eeg-web-ble`, in a separate
package, or in an app-local adapter. Use
[Integration Paths](https://docs.elata.bio/integration-paths.md) to make that decision early.

**2. Capture the protocol inventory**

Gather your GATT services, characteristics, packet format, sample rate,
channel names, timestamp behavior, and known firmware quirks. See
[Protocol Requirements](https://docs.elata.bio/protocol-requirements.md).

**3. Implement the adapter**

Build the device layer that handles discovery, session setup, packet
decoding, and frame emission. Start from
[Adapter Implementation](https://docs.elata.bio/adapter-implementation.md).

**4. Validate for reliability**

Test connect, start, stop, disconnect, malformed packets, reconnects, and
frame correctness before tuning anything downstream. Use
[Testing and Validation](https://docs.elata.bio/testing-and-validation.md).

**5. Prepare the handoff**

Package the integration with platform notes, tested firmware versions, and
support expectations. See [Submission and Support](https://docs.elata.bio/submission-and-support.md).

## What You Need Before You Start

| Requirement | Why it matters |
| - | - |
| Device protocol details | You need a complete byte-level picture before implementation starts. |
| A supported browser path | Web Bluetooth requires Chrome or Edge in a secure context. |
| Stable channel metadata | Apps need consistent channel order, names, and sample rates. |
| A clear ownership model | Decide early whether this will live upstream, in a vendor package, or privately. |

If you have not reviewed the current BLE flow yet, read
[EEG BLE Getting Started](https://docs.elata.bio/sdk/eeg-web-ble/getting-started.md) first.

## Guide Map

> [card] [Integration Paths](https://docs.elata.bio/integration-paths.md)
>
> Choose where the integration should live and how it should be owned.

> [card] [Transport Contract](https://docs.elata.bio/transport-contract.md)
>
> The shared interfaces your device must satisfy.

> [card] [Protocol Requirements](https://docs.elata.bio/protocol-requirements.md)
>
> The protocol and metadata inventory to collect before coding.

> [card] [Adapter Implementation](https://docs.elata.bio/adapter-implementation.md)
>
> Build the device adapter and connect it to `BleTransport`.

> [card] [Testing and Validation](https://docs.elata.bio/testing-and-validation.md)
>
> Make the integration reliable under normal and failure conditions.

> [card] [Submission and Support](https://docs.elata.bio/submission-and-support.md)
>
> Hand off the integration with the docs and caveats partners need.

## Reliability First

A device integration is not done when it streams once on a happy path.

It is done when:

| Done means | Notes |
| - | - |
| `connect()` is predictable | discovery and session setup succeed or fail clearly |
| `start()` produces stable frames | row width, channel order, and sample rate stay correct |
| `stop()` is clean | the session stops without leaving the device in a bad state |
| `disconnect()` is clean | the browser session releases resources correctly |
| failures are surfaced clearly | apps can react to disconnects, retries, and unsupported states |

## Related Docs

* [Headband Transport](https://docs.elata.bio/sdk/eeg-web/headband-transport.md)
* [EEG BLE Getting Started](https://docs.elata.bio/sdk/eeg-web-ble/getting-started.md)
* [Muse Device](https://docs.elata.bio/sdk/eeg-web-ble/muse-device.md)
* [Compatibility](https://docs.elata.bio/sdk/operations/compatibility.md)
* [Troubleshooting](https://docs.elata.bio/sdk/operations/troubleshooting.md)

## Next

> [card] [Choose an integration path](https://docs.elata.bio/integration-paths.md)
>
> Pick the right ownership and packaging model before coding.

> [card] [Review the transport contract](https://docs.elata.bio/transport-contract.md)
>
> Confirm the frame and lifecycle expectations your adapter must satisfy.


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