I have connected two different trackers. I check the third-party platform and live data in TTN, and there are many pieces of information, but information about latitude and longitude is not there. What did I do wrong with connecting? What should I do for sending necessary information from TTN to third-party platforms?
Details details details - we canât guess what you are using or what you are seeing!
Most common problem, if you are seeing traffic in the TTN console, or even being passed to the 3rd party, is often lack of a decoder/or incorrect decoder set up - either in the TTN Console to decode and then pass on relevant values to the 3rd party platform, or device not being set correctly in the 3rd party platform where you are drawing on their own device repositoryâŚ
From what I have seen in your post so far I suspect the yellow and red stripped candy cane isnt interfacing with the traffic light lollipop with the effect that the red liquorish doesnt get enough licking! Give us details and sure we can help
Here is Payload from Abeeway compact tracker.
{
"name": "as.up.data.forward",
"time": "2022-05-24T16:04:25.875030075Z",
"identifiers": [
{
"device_ids": {
"device_id": "eui--------------------------",
"application_ids": {
"application_id": "shaxr2107device"
}
}
},
{
"device_ids": {
"device_id": "eui-----------------------",
"application_ids": {
"application_id": "shaxr2107device"
},
"dev_eui": "----------------------",
"join_eui": "---------------------",
"dev_addr": "--------------------"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationUp",
"end_device_ids": {
"device_id": "eui---------------------------",
"application_ids": {
"application_id": "shaxr2107device"
},
"dev_eui": "------------------------",
"join_eui": "---------------------------",
"dev_addr": "----------"
},
"correlation_ids": [
"as:up:01G3VCZXMDY3HMHBCWTVMN13BV",
"gs:conn:01G3VC3EJEKYSWQC50NR404Z41",
"gs:up:host:01G3VC3EJJFCHJFJ5B017GVXSS",
"gs:uplink:01G3VCZXDRZTA47CTRKPSFN9D9",
"ns:uplink:01G3VCZXDS2X6Y2C97KD2BG2MP",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G3VCZXDRGWTTANCQD4DRC9CB",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01G3VCZXMCFVKBTX07J8E11PT8"
],
"received_at": "2022-05-24T16:04:25.869283577Z",
"uplink_message": {
"session_key_id": "AYDi3BDx8GbPU7BB5ZYF4w==",
"f_port": 18,
"f_cnt": 554,
"frm_payload": "BQBkjQABAgIBAwMA",
"decoded_payload": {
"bytes": [
5,
0,
100,
141,
0,
1,
2,
2,
1,
3,
3,
0
]
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "shaxr2107",
"eui": "---------"
},
"time": "2022-05-24T16:04:25.550881Z",
"timestamp": 935602644,
"rssi": -65,
"channel_rssi": -65,
"snr": 10.2,
"uplink_token": "ChcKFQoJc2hheHIyMTA3EgioQEEhmJhBUBDU05C+AxoMCImEtJQGEID577gCIKDIjbKdGyoMCImEtJQGEOiN14YC",
"channel_index": 7
}
],
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "867900000",
"timestamp": 935602644,
"time": "2022-05-24T16:04:25.550881Z"
},
"received_at": "2022-05-24T16:04:25.657019180Z",
"consumed_airtime": "0.071936s",
"version_ids": {
"brand_id": "abeeway",
"model_id": "abeeway-compact-tracker",
"hardware_version": "1.0",
"firmware_version": "2.1",
"band_id": "EU_863_870"
},
"network_ids": {
"net_id": "000013",
"tenant_id": "ttn",
"cluster_id": "eu1",
"cluster_address": "eu1.cloud.thethings.network"
}
}
},
"correlation_ids": [
"as:up:01G3VCZXMDY3HMHBCWTVMN13BV",
"gs:conn:01G3VC3EJEKYSWQC50NR404Z41",
"gs:up:host:01G3VC3EJJFCHJFJ5B017GVXSS",
"gs:uplink:01G3VCZXDRZTA47CTRKPSFN9D9",
"ns:uplink:01G3VCZXDS2X6Y2C97KD2BG2MP",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G3VCZXDRGWTTANCQD4DRC9CB",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01G3VCZXMCFVKBTX07J8E11PT8"
],
"origin": "ip-10-100-15-82.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ",
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"unique_id": "01G3VCZXMKK27A3CPJXRBR2C27"
}
Here is payload from Lora edge tracker
{
"name": "as.up.data.forward",
"time": "2022-05-24T16:08:45.946167075Z",
"identifiers": [
{
"device_ids": {
"device_id": "-------------",
"application_ids": {
"application_id": "shaxr2107device"
}
}
},
{
"device_ids": {
"device_id": "---------------",
"application_ids": {
"application_id": "shaxr2107device"
},
"dev_eui": "--------------------",
"join_eui": "---------------------",
"dev_addr": "----------------"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ApplicationUp",
"end_device_ids": {
"device_id": "---------------",
"application_ids": {
"application_id": "shaxr2107device"
},
"dev_eui": "---------------",
"join_eui": "---------------------",
"dev_addr": "260B0F55"
},
"correlation_ids": [
"as:up:01G3VD7VKMSHWD7ZJYBAHH26CN",
"gs:conn:01G3VC3EJEKYSWQC50NR404Z41",
"gs:up:host:01G3VC3EJJFCHJFJ5B017GVXSS",
"gs:uplink:01G3VD7VD68J8W5ZMRHYBE42XH",
"ns:uplink:01G3VD7VD7P9BXF9PZSRN07MH8",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G3VD7VD7JJ0EXNTABFWYZNVW",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01G3VD7VKME4G8KECGPYXX28ED"
],
"received_at": "2022-05-24T16:08:45.940624928Z",
"uplink_message": {
"session_key_id": "AYD2zVkiuw4F4uOcUOiOlw==",
"f_port": 199,
"f_cnt": 16,
"frm_payload": "FAtTAKoNBxAKKACTDDCgVKEsZSrzPaf2iHvlLA==",
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "shaxr2107",
"eui": "---------------------------"
},
"time": "2022-05-24T16:08:45.642996Z",
"timestamp": 1195675140,
"rssi": -65,
"channel_rssi": -65,
"snr": 12,
"uplink_token": "ChcKFQoJc2hheHIyMTA3EgioQEEhmJhBUBCEnJK6BBoMCI2GtJQGEOGfmN4CIKD/qp7mIioMCI2GtJQGEKCuzbIC"
}
],
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 11
}
},
"coding_rate": "4/5",
"frequency": "868100000",
"timestamp": 1195675140,
"time": "2022-05-24T16:08:45.642996Z"
},
"received_at": "2022-05-24T16:08:45.735826059Z",
"consumed_airtime": "1.150976s",
"network_ids": {
"net_id": "000013",
"tenant_id": "ttn",
"cluster_id": "eu1",
"cluster_address": "eu1.cloud.thethings.network"
}
}
},
"correlation_ids": [
"as:up:01G3VD7VKMSHWD7ZJYBAHH26CN",
"gs:conn:01G3VC3EJEKYSWQC50NR404Z41",
"gs:up:host:01G3VC3EJJFCHJFJ5B017GVXSS",
"gs:uplink:01G3VD7VD68J8W5ZMRHYBE42XH",
"ns:uplink:01G3VD7VD7P9BXF9PZSRN07MH8",
"rpc:/ttn.lorawan.v3.GsNs/HandleUplink:01G3VD7VD7JJ0EXNTABFWYZNVW",
"rpc:/ttn.lorawan.v3.NsAs/HandleUplink:01G3VD7VKME4G8KECGPYXX28ED"
],
"origin": "ip-10-100-15-82.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ",
"RIGHT_APPLICATION_TRAFFIC_READ"
]
},
"unique_id": "01G3VD7VKTNRNZ27RB3YHY0GMJ"
}
There are payloads from both devices. Here is more datails
âMoreâ but only some details.
What is the payload formatter you are using for the Abeeway? Itâs got bytes but no fields so doesnât seem to be a ânormalâ decoder.
The âLora edge trackerâ (what ever that is) doesnât seem to have a payload formatter.
And we have no idea which âthird-party platformâ you are sending it to, so even when we get to the point of decoding, your âthird-party platformâ may not accept the data âŚ
Please donât waste your time redacting lots of data that is publicly available.
Would that perhaps be tago.io ? using established TTN Webhook or some other method to tango? Please show how set up/configured as well as responding to Nickâs hintsâŚ
Sorry, yes it is tago.io. I tried Custom Javascript, App payload formatter and none formatter. Unfortunately no data which I want.
By the way another abeeway and lora edge trackers send properly data at thinkpark enterprise network server and I see latitude and longitude.
Do you see regular traffic from the devices on the respective device/application console pages. If you are running a javascript decoder do you then also see valid results shown on the console page and data forwarded?
âŚbascially a âSuccessfully processed data messageâ followed by a âForward uplink dataâ message (with valid data in the related field?