# Miromico miro Edge LoRaWAN Gateway

## Introduction

In this tutorial, I will be guiding you through the process of integrating the Miromico miro Edge LoRaWAN Gateway into the Datacake LoRaWAN Network Server (LNS). \
This step-by-step guide is designed to ensure a smooth setup process, allowing you to leverage the full capabilities of your LoRaWAN devices within the Datacake platform. Whether you're setting up a new workspace or looking to expand your current IoT network, this documentation will provide you with all the necessary instructions to successfully integrate your gateway with Datacake LNS.\
In this tutorial we are using [Miromico's miro Edge LoRaWAN Gateway](https://docs.miromico.ch/gateways-cards/miro-edge/).

## Getting started

### Requirements

1. Make sure to have an account and a workspace for the Datacake application.
2. Wire up all of your hardware according to manufacturer specifications.
3. Have the Miromico Gateway user manual and datasheet prepared next to you.

### Add a new gateway

To commence the addition of your miro Edge Gateway, click on the "Gateway" section located on the sidebar of your workspace.

This action will lead you to the gateways view, which, initially, will not list any gateways. Datacake provides comprehensive documentation for adding gateways, accessible via a designated button.

<figure><img src="/files/yqIar5N3njp0fUemBQ2g" alt=""><figcaption></figcaption></figure>

Additionally, you'll find a blue "Add Gateway" button positioned in the top right corner—click this to proceed.

### Configuring Gateway Information

Upon clicking "Add Gateway," a model will appear, prompting you to enter specific details about your gateway.

<figure><img src="/files/oc9XK1Bh0CvciCciJ1ye" alt=""><figcaption></figcaption></figure>

These details include the Gateway Name, Gateway UI (Unique Identifier), and the operating Frequency. Here's how to approach each requirement:

* **Gateway Name:** Assign a name to your gateway, such as "My MiroGateway," to easily identify it within your workspace.
* **Gateway EUI:** This unique identifier is essential for integrating your gateway with the network. In the following section, we will cover how to retrieve the Gateway EUI from your device.
* **Frequency:** The frequency selection must match your gateway's operational frequency. This is typically determined by your geographic location (e.g., Europe operates on the 868 MHz frequency band).

### Retrieving the Gateway EUI

The Gateway EUI is a critical component for the integration process. This unique identifier can be found on your gateway's management platform. To access this, you'll need to switch to the management platform of your Miromico miro Edge Gateway.

#### Configuration of your Miromico miro Edge LoRaWAN Gateway

Your LoRaWAN gateway needs to be connected to the internet. You can plug the gateway into your home or company's network or using WiFi instead. You can find the tutorials from Miromico here: <https://docs.miromico.ch/gateways-cards/miro-edge/interfaces/>

*Note: If you are using this gateway at your company's network you might want to talk to your IT department.*

When connected to a network you can access the management platform / Web GUI of the gateway. You can find the tutorial from Miromico here: <https://docs.miromico.ch/gateways-cards/miro-edge-performance/webinterface/>

#### Copying the Gateway UI

The EUI, typically starting with "24," resembles a MAC address and includes an additional character for identification. To proceed, click on the copy button next to the EUI and return to your Datacake gateway configuration page to paste the identifier.

For the miro Edge gateway, the gateway EUI is the gateway's MAC address + FFFE in the middle. For example, **112233FFFE445566** would be the gateway EUI for MAC address 112233445566. You can find the MAC address on the back of the gateway's housing.

#### Enter Gateway EUI on Datacake

Copy and paste the Gateway EUI into Datacake's modal.

<figure><img src="/files/mlFl8KNOcHs1CJ3J7Bpw" alt=""><figcaption></figcaption></figure>

#### Setting the Frequency

After inputting the Gateway UI, the final step in the model is to select the appropriate frequency for your gateway. This frequency must align with the operational frequency of your Miromico Gateway, which is indicated on the device's management platform. For instance, if your gateway is located in Germany, you would select the European frequency band (868 MHz).

<figure><img src="/files/VdJH8BEV2CGq5qtusac4" alt=""><figcaption></figcaption></figure>

#### Finalizing Gateway Addition

With the gateway name, UI, and frequency correctly entered, you can finalize the addition of your miro Edge Gateway to Datacake by clicking on the "Create Gateway" button. This action not only adds your gateway to the platform but also presents you with additional configuration information, such as the protocol, gateway server address, port number, and frequency summary.

<figure><img src="/files/BLdv2dMJjkO5Uls3VvOT" alt=""><figcaption></figcaption></figure>

Please don't close this modal yet, we do need to copy a few of those settings and information on the next steps.

## Configuring miro Edge LoRaWAN Gateway

Integrating your **Miromico (miro Edge)** gateway with **Datacake LNS** requires setting specific parameters within the gateway's web configuration panel.

#### Step 1: Log Into the Miromico Gateway

1. Power on the **miro Edge** gateway.
2. Connect your PC to the gateway via Ethernet, using the default link-local IP address `169.254.100.100`.
3. Open a browser and go to `http://169.254.100.100`.
4. Log in using your admin credentials.

<figure><img src="/files/AgpDlFVDBp9tLGyJGxQX" alt=""><figcaption></figcaption></figure>

#### Step 2: Navigate to the LoRaWAN® Configuration

Once logged in:

1. Go to the **LoRaWAN** section from the main configuration page.
2. Select the appropriate band:
   * Choose **SubG (868/915 MHz)** for standard LoRaWAN networks.

<figure><img src="/files/rKPSNylzrczR4DKLYcwl" alt=""><figcaption></figcaption></figure>

#### Step 3: Configure the Packet Forwarder

1. Under **Forwarder Type**, select `Semtech`.
2. Set the **Semtech packet forwarder server address** to the **Datacake LNS address** provided in your Datacake workspace gateway details.
3. Set the **Semtech packet forwarder port** to match what’s shown in your Datacake gateway configuration panel (usually `1700` unless specified otherwise).
4. Click **Save** to apply the settings.

#### Optional: Disable Default or Other Forwarders

If another forwarder type is already active (e.g., Loriot), disable it by:

1. Setting the **Forwarder Type** explicitly to `Semtech`.
2. Ensuring no other packet forwarders are running concurrently.

**Step 4: Verify Connectivity**

Once configuration is complete and the gateway is connected to the internet:

1. Go to your **Datacake workspace**.
2. Navigate to the **Gateways** section.
3. Confirm the gateway appears **online** and is actively **sending data**.


---

# Agent Instructions: 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:

```
GET https://docs.datacake.de/datacake-lns/gateways/miromico-miro-edge-lorawan-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
