Features & Limitations

A look into what the 1NCE Translation Service can and cannot do.

Features

The 1NCE Data Broker offers Binary Conversion support based on the AllThings Talk Binary Conversion Language (ABCL). More details on the general conversion language available at https://docs.allthingstalk.com/dl/AllThingsTalk_Binary_Conversion_Language_1_0_0.pdf

The Binary Conversion allows customers to simply format Binary payloads and build also more complex logic into the conversion templates. Templates are provided via the 1NCE Rules Engine and applied to the desired Devices.
Let's take the following example for a simple IoT Device with 2 Sensors one Input. A UDP Payload would look like this: 01 07 02 2b 00

As this is not readable let's apply the following Conversion Template to the message:

{
    "sense": [
        {
            "asset": "Temperature",
            "value": {
                "byte": 0,
                "bytelength": 2,
                "type": "integer",
                "signed": true,
                "calculation": "val/10"
            }
        },
        {
            "asset": "Humidity",
            "value": {
                "byte": 2,
                "bytelength": 2,
                "type": "integer",
                "calculation": "val/10"
            }
        },
        {
            "asset": "Switch",
            "value": {
                "byte": 4,
                "type": "boolean"
            }
        }
    ]
}

This will result in a nicely formatted JSON-message that is also human-readable:

{
    "Temperature": 26.3,
    "Humidity": 55.5,
    "Switch": false
}

Limits


Did this page help you?