> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kiloiot.io/kilo-docs-de/kilo-center/kilo-mioty-service-center/onboarding/connect-a-base-station.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
