TTN Plugin Error

Hi all,

I have a problem with receiving data from the TTN into TagoCore.

The sensors used are Dragino LHT65, so I have installed the belonging encoder.

In the Tags section i have added the key “serial” and the dev. eui as a value.

I have attached screenshots for reference.

Can someone assist with this error code?

Thanks for your help!

Daniel

Hi SES-Ingenieure,

The Zod error is stating that you haven’t send the data in the expected format. It is complaining that you’re “variable” key in your object is of type Undefined when it needs to be of type String.

You need to send data like this for example:

[{variable: “example_payload”, value: “A3AHBYWGOQZ9”}]

Hi Freddy,

I have seen that the error is related to the payload. The problem is, that the payload actually arrives as a string in the format you mentioned in your post.

Looking forward to your reply!

Kind regards

Daniel

Hi SES-Ingenieure,

Could you show us your Payload?

Hi Freddy,

for your reference: CBDE0BF40227017FFF7FFF

Hi SES-Ingenieure GmbH,

By payload I mean the entire message you send over and not just the Hexadecimal payload.

Sorry, I wasn’t clear.

Hi Freddy,

sorry for the late reply.

Below you should acn find the event details and a according payload, I hope this helps.

{

“name”: “as.up.data.forward”,

“time”: “2023-07-17T08:58:47.686755899Z”,

“identifiers”: [

{

  "device\_ids": {

    "device\_id": "device-ses-0043",

    "application\_ids": {

      "application\_id": "test-tagocore"

    },

    "dev\_eui": "XXXXXXXXXXXXXX",

    "join\_eui": "A000000000000100",

    "dev\_addr": "01CDA107"

  }

}

],

“data”: {

"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationUp",

"end\_device\_ids": {

  "device\_id": "device-ses-0043",

  "application\_ids": {

    "application\_id": "test-tagocore"

  },

  "dev\_eui": "XXXXXXXXXXXXXXX",

  "join\_eui": "A000000000000100",

  "dev\_addr": "01CDA107"

},

"correlation\_ids": \[

  "as:up:01H5HH5Q00ZTBXK3TY46NF4GC0",

  "gs:conn:01H57C45TYQKX0HHG0C1XTRRTY",

  "gs:up:host:01H57C45V597BPVSHD1GTMEZV9",

  "gs:uplink:01H5HH5PSC3KWHDKD5QVTJZYXE",

  "ns:uplink:01H5HH5PSD7NCFGMHJ023XGWTE",

  "rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01H5HH5PSDAFKEKHMHXDVDR4Z2",

  "rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01H5HH5PZZQZ55EHMMXP24SY7B"

\],

"received\_at": "2023-07-17T08:58:47.680241824Z",

"uplink\_message": {

  "session\_key\_id": "AYjjMJC8Dd10s9q1SEF59Q==",

  "f\_port": 2,

  "f\_cnt": 1788,

  "frm\_payload": "zAoLMAHwAX//f/8=",

  "rx\_metadata": \[

    {

      "gateway\_ids": {

        "gateway\_id": "gateway-ses-0011",

        "eui": "XXXXXXXXXXXXX"

      },

      "time": "2023-07-17T08:58:47.458782Z",

      "timestamp": 807319654,

      "rssi": -68,

      "channel\_rssi": -68,

      "snr": 13.2,

      "frequency\_offset": "-10903",

      "uplink\_token": "Ch4KHAoQZ2F0ZXdheS1zZXMtMDAxMRIIqEBB//8jo9gQ5vD6gAMaDAjHhdSlBhDh35jfASDwnIHAv6pN",

      "channel\_index": 7,

      "received\_at": "2023-07-17T08:58:47.468070369Z"

    }

  \],

  "settings": {

    "data\_rate": {

      "lora": {

        "bandwidth": 125000,

        "spreading\_factor": 7,

        "coding\_rate": "4/5"

      }

    },

    "frequency": "867900000",

    "timestamp": 807319654,

    "time": "2023-07-17T08:58:47.458782Z"

  },

  "received\_at": "2023-07-17T08:58:47.469463045Z",

  "consumed\_airtime": "0.061696s",

  "network\_ids": {

    "net\_id": "000000"

  }

}

},

“correlation_ids”: [

"as:up:01H5HH5Q00ZTBXK3TY46NF4GC0",

"gs:conn:01H57C45TYQKX0HHG0C1XTRRTY",

"gs:up:host:01H57C45V597BPVSHD1GTMEZV9",

"gs:uplink:01H5HH5PSC3KWHDKD5QVTJZYXE",

"ns:uplink:01H5HH5PSD7NCFGMHJ023XGWTE",

"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01H5HH5PSDAFKEKHMHXDVDR4Z2",

"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01H5HH5PZZQZ55EHMMXP24SY7B"

],

“origin”: “fa9073ee779e”,

“visibility”: {

"rights": \[

  "RIGHT\_APPLICATION\_TRAFFIC\_READ"

\]

},

“unique_id”: “01H5HH5Q06VZYR70R8QB3A6FBM”

}

Payload: CC0A0B3001F0017FFF7FFF

I changed the DEV-EUIS to XXXX in the message above.

If this is not what you are looking for, we could also have a short Teams meeting to discuss this.

Kind regards,

Daniel Binkele