> For the complete documentation index, see [llms.txt](https://docs.kiloiot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kiloiot.io/kilo-docs-de/kilo-center/kilo-mioty-service-center/onboarding/connect-a-base-station.md).

# Eine Basisstation verbinden

Verbinden Sie eine MIOTY-Basisstation mit KiloCenter — BSSCI auf Port 5000, Server-CA-Zertifikat und Schritte zur Erstellung in KC-Web.

### Ziel

Verbinden Sie eine MIOTY-Basisstation mit Ihrer lokalen KiloCenter-Instanz und bestätigen Sie, dass sie online ist.

### Voraussetzungen

* KC-Core, KC-Gateway und KC-Web laufen (siehe Installation)
* TLS-Zertifikate generiert (siehe den Zertifikats-Bootstrap-Schritt in Ihrer Installationsanleitung)
* BSSCI erreichbar auf Port `5000`
* Server-CA-Zertifikat verfügbar unter `kilocenter-modules/KC-Core/certificates/ca.crt`

### Schritt 1: Basisstation in KC-Web erstellen

Bevor sich die Hardware verbinden kann, muss die Basisstation in KiloCenter existieren.

1. Öffnen Sie KC-Web unter `http://localhost/` (Container) oder `http://localhost:5173` (Quellcode-Entwicklung).
2. Navigieren Sie zu **Basisstationen** in der Seitenleiste.
3. Klicken Sie auf **Basisstation hinzufügen**.
4. Geben Sie die Basisstation ein **EUI** (16-stellige Hex-Zeichenfolge, die der Hardware-Identität entspricht) und ein **Name**.
5. Speichern Sie die Basisstation.

### Schritt 2: Basisstationshardware konfigurieren

Richten Sie die Firmware der Basisstation auf Ihren KiloCenter-Host aus:

* **Service-Center-Adresse**: die IP-Adresse oder der Hostname Ihres KC-Core-Hosts
* **Service-Center-Port**: `5000` (BSSCI)
* **Protokoll**: TLS (erforderlich)

Bei AVA-Basisstationen lautet die Werksanmeldung `ubuntu` / `123456`. Ändern Sie diese Zugangsdaten nach dem ersten Zugriff.

### Schritt 3: CA-Zertifikat importieren

Die Basisstation muss dem CA-Zertifikat von KiloCenter vertrauen, damit TLS erfolgreich ist.

1. Kopieren Sie `kilocenter-modules/KC-Core/certificates/ca.crt` auf die Basisstation.
2. Importieren Sie es über die Konfigurationsoberfläche in den TLS-Vertrauensspeicher der Basisstation.

### Schritt 4: Verbindung überprüfen

#### In KC-Web

Navigieren Sie zu **Basisstationen**. Die verbundene Basisstation sollte einen **Online** Status anzeigen.

#### In den Logs

```bash
tail -f kilocenter-modules/logs/runtime/kc-core.log
```

Eine erfolgreiche Verbindung erzeugt Logeinträge, die Folgendes zeigen:

* **Versionsaushandlung** -- KC-Core und die Basisstation stimmen sich auf die BSSCI-Protokollversion ab
* **Attach-Operationen** -- die Basisstation registriert ihre Endpunkte bei KC-Core

Suchen Sie nach Einträgen mit `versionNeg` und `attach` ohne Fehlermeldungen.

#### Häufige Verbindungsfehler

| Symptom                             | Wahrscheinliche Ursache                                                         |
| ----------------------------------- | ------------------------------------------------------------------------------- |
| Kein Verbindungsversuch in den Logs | Basisstation zeigt nicht auf den richtigen Host/Port                            |
| TLS-Handshake-Fehler                | CA-Zertifikat nicht importiert oder Zertifikat stimmt nicht überein             |
| Verbindung wird sofort getrennt     | Basisstations-EUI nicht in KC-Web registriert                                   |
| Versionsaushandlung schlägt fehl    | Firmware-Version ist mit der BSSCI-Implementierung von KC-Core nicht kompatibel |


---

# 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.kiloiot.io/kilo-docs-de/kilo-center/kilo-mioty-service-center/onboarding/connect-a-base-station.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.
