# Viloc

![Viloc Tag](https://portal.kpnthings.com/assets/images/device-types/supported-viloc.png)

* Supported network type(s): `KPNLORA`
* Device Specification ID: `supported-viloc`
* Device Specification UUID: `5cc004e1-3950-4d62-a9ea-34fcc6a1de0c`

| Decoders                | decoderSpecificationUUID               | Description                                                                                                                                            |
| ----------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| + LoRa Geolocation data | `d2f7c6ec-7b47-45e6-adaf-a0ffc2cfd28a` | Add [LoRa Geolocation](/kpn-things/getting-started/tutorials/technical-overview/location-data.md) data to messages where location could be calculated. |
| = Raw LoRa payload      | `881d92e7-d3f1-4f3b-983d-daf451efad3c` | Forward the raw LoRa payload and port number without decoding.                                                                                         |
| = Raw LoRa payload (v2) | `f88a69e3-fa7f-513a-a3a3-cf1f1e3617b2` | Forward the raw LoRa payload and port number without decoding.                                                                                         |

| Encoders           | encoderSpecificationUUID               | Description                           |
| ------------------ | -------------------------------------- | ------------------------------------- |
| = Raw LoRa payload | `da915967-082c-4a1c-9c95-0361ddb20ec9` | Send raw LoRa payload to your device. |

### + LoRa Geolocation data

Add [LoRa Geolocation](/kpn-things/getting-started/tutorials/technical-overview/location-data.md) data to messages where location could be calculated.

### = Raw LoRa payload

Forward the raw LoRa payload and port number without decoding.

**Expected SenML records**

| name    | type   | unit |
| ------- | ------ | ---- |
| payload | string |      |
| port    | number |      |

### = Raw LoRa payload (v2)

Forward the raw LoRa payload and port number without decoding.

{% hint style="info" %}
This decoder also decodes [Geolocation and Local Gateway](/kpn-things/getting-started/tutorials/technical-overview/location-data.md) data.
{% endhint %}

The following SenML records can be present, amongst others:

| name    | type   | unit | example                    | description                            |
| ------- | ------ | ---- | -------------------------- | -------------------------------------- |
| payload | string |      | `"4D985C495AC4D8C9682CFD"` | The LoRa hex payload                   |
| port    | number |      | `200`                      | The LoRa port used to send this uplink |

#### Example SenML

{% hint style="info" %}
SenML can be structured in different ways, and we do not guarantee the examples below will look the same as what you will receive on your Destination. To make sure you can handle the SenML optimally, take a look at our documentation about [Understanding and Interpreting SenML Data](/kpn-things/building-blocks/data-processing/thingsml-and-senml/senml/understanding-and-interpreting-senml-data.md).
{% endhint %}

```json
[
    {
        "bn": "urn:dev:DEVEUI:0123456789012345:",
        "bt": 1693136532.83,
        "n": "payload",
        "vs": "4D985C495AC4D8C9682CFD"
    },
    {
        "n": "port",
        "v": 1
    },
    {
        "n": "timeOrigin",
        "vs": "NETWORK"
    }
]
```

### = Raw LoRa payload

* UUID: `881d92e7-d3f1-4f3b-983d-daf451efad3c`
* Description: Forward the raw LoRa payload and port number without decoding.
* Exchange: `decoder.lora.passthrough.exchange`

#### Expected SenML outputs

Unknown


---

# 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.kpnthings.com/kpn-things/building-blocks/devices/trackers/viloc.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.
