Nick @descartes has flagged your issue/experience to the TTI core team to investigate, so if you see more examples please post as the more ‘evidence’ & instances we have the better to try and trap if issue is real/repeatable and why…
One more from today morning, for the node which is in reach by the two v2 gateways and in reach by one v3 gateway I’ve captured a missing uplink.
Again it is shown in the ‘live data’ tab of the v3 gateway, but not in the devices view ‘live data’.
Metadata of the correctly processed uplink:
{
"name": "gs.up.receive",
"time": "2021-09-01T08:07:46.726035599Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "v3-testgw"
}
},
{
"gateway_ids": {
"gateway_id": "v3-testgw",
"eui": "C0EE40FFFF2940E9"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QFNPCyYAMQMBFej8rkkOHT9DxKyoUCfnqyg=",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "J+erKA==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260B4F53",
"f_ctrl": {},
"f_cnt": 817
},
"f_port": 1,
"frm_payload": "Fej8rkkOHT9DxKyoUA=="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "868100000",
"timestamp": 1973979307
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "v3-testgw",
"eui": "C0EE40FFFF2940E9"
},
"timestamp": 1973979307,
"rssi": -88,
"channel_rssi": -88,
"snr": 9.2,
"uplink_token": "ChcKFQoJdjMtdGVzdGd3EgjA7kD//ylA6RCrkaKtBxoMCNLpvIkGEJncycQCIPi319K5pAc="
}
],
"received_at": "2021-09-01T08:07:46.680685081Z",
"correlation_ids": [
"gs:conn:01FEF7V0BJQHC31NP9WF5RWG18",
"gs:uplink:01FEG6CNS6X84CKTJHS8P59XA1"
]
},
"correlation_ids": [
"gs:conn:01FEF7V0BJQHC31NP9WF5RWG18",
"gs:uplink:01FEG6CNS6X84CKTJHS8P59XA1"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEG6CNS6A7WYG6EZ13WRWRN9"
}
Metadata of the missing uplink:
{
"name": "gs.up.receive",
"time": "2021-09-01T08:12:45.971283817Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "v3-testgw"
}
},
{
"gateway_ids": {
"gateway_id": "v3-testgw",
"eui": "C0EE40FFFF2940E9"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QFNPCyYAMgMBbgnj4bWAmssoJDR2gTmkcmc=",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "OaRyZw==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260B4F53",
"f_ctrl": {},
"f_cnt": 818
},
"f_port": 1,
"frm_payload": "bgnj4bWAmssoJDR2gQ=="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "867300000",
"timestamp": 2273462987
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "v3-testgw",
"eui": "C0EE40FFFF2940E9"
},
"timestamp": 2273462987,
"rssi": -94,
"channel_rssi": -94,
"snr": 9,
"uplink_token": "ChcKFQoJdjMtdGVzdGd3EgjA7kD//ylA6RDLlYm8CBoMCP3rvIkGELSth88DIPjR0KeVrQc=",
"channel_index": 4
}
],
"received_at": "2021-09-01T08:12:45.971101876Z",
"correlation_ids": [
"gs:conn:01FEF7V0BJQHC31NP9WF5RWG18",
"gs:uplink:01FEG6NT0K2SRE99FAAA9FZ69G"
]
},
"correlation_ids": [
"gs:conn:01FEF7V0BJQHC31NP9WF5RWG18",
"gs:uplink:01FEG6NT0K2SRE99FAAA9FZ69G"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEG6NT0KTX5CZ6928XH0GPQH"
}
Does it appear in Data Storage?
And one more missing from today morning for the node which is only connected through a v3 gateway.
Metadata of the correctly processed uplink:
{
"name": "gs.up.receive",
"time": "2021-09-01T09:17:24.611990238Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3"
}
},
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QEIKCyYAeygBublRh2GZrgjfAsQDPVf8Wrc=",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "V/xatw==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260B0A42",
"f_ctrl": {},
"f_cnt": 10363
},
"f_port": 1,
"frm_payload": "ublRh2GZrgjfAsQDPQ=="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "868100000",
"timestamp": 2764948561,
"time": "2021-09-01T09:17:25.929362Z"
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
},
"time": "2021-09-01T09:17:25.929362Z",
"timestamp": 2764948561,
"rssi": -77,
"channel_rssi": -77,
"snr": 9,
"uplink_token": "ChkKFwoLaGlyLXR0bjAxdjMSCEg2NyBHAB0AENGIt6YKGgwIpIq9iQYQ/KyEoAIg6LibnrzVKA=="
}
],
"received_at": "2021-09-01T09:17:24.604051068Z",
"correlation_ids": [
"gs:conn:01FEB3H9WXPK7GD0AZ7K6AZVRK",
"gs:uplink:01FEGAC5R3EH3Q1W2Y698CSNBY"
]
},
"correlation_ids": [
"gs:conn:01FEB3H9WXPK7GD0AZ7K6AZVRK",
"gs:uplink:01FEGAC5R3EH3Q1W2Y698CSNBY"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEGAC5R3R327JN6V6AW4SQXM"
}
Metadata of the missing uplink:
{
"name": "gs.up.receive",
"time": "2021-09-01T09:22:24.106628075Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3"
}
},
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QEIKCyYAfCgBDVwadgF8GAsEz3XIAW/04W8=",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "b/Thbw==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260B0A42",
"f_ctrl": {},
"f_cnt": 10364
},
"f_port": 1,
"frm_payload": "DVwadgF8GAsEz3XIAQ=="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "868500000",
"timestamp": 3064348225,
"time": "2021-09-01T09:22:25.329676Z"
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
},
"time": "2021-09-01T09:22:25.329676Z",
"timestamp": 3064348225,
"rssi": -73,
"channel_rssi": -73,
"snr": 8,
"uplink_token": "ChkKFwoLaGlyLXR0bjAxdjMSCEg2NyBHAB0AEMH8mLULGgwIz4y9iQYQwtHw1AMg6NuMy5feKA==",
"channel_index": 2
}
],
"received_at": "2021-09-01T09:22:23.983312578Z",
"correlation_ids": [
"gs:conn:01FEB3H9WXPK7GD0AZ7K6AZVRK",
"gs:uplink:01FEGANA7A7C1CHHN81XTW19AQ"
]
},
"correlation_ids": [
"gs:conn:01FEB3H9WXPK7GD0AZ7K6AZVRK",
"gs:uplink:01FEGANA7A7C1CHHN81XTW19AQ"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEGANA7AN90YFHGG36CC64EW"
}
I will check that later and update here once more
Hello, the script downloads some rows yes, but then exits with an error:
Traceback (most recent call last):
File “TTS.DataStorage.Tab.ch-weather.py”, line 76, in
f_port = uplink_message[“f_port”];
KeyError: ‘f_port’
So I was at least able to download the interesting rows, and there I can clearly see, that the missing uplinks are also missing in the storage integration.
Yes it will, it’s an homage to my favourite grumpy programmer:
If you want to fix it, I use this in production code:
f_port = theJSON.get(“f_port”, 0)
You’ll need to do the same for any other fields that may return as zero, null, blank or are uninitialised.
In my not very humble opinion it’s a mistake in the design of Google Protocol Buffers translation utilities to JSON that has been perpetuated by programmers half my age because they all think Google has been around forever so much be right whereas I was coding for hire before the web even existed.
@johan and @htdvisser, per my PM, we have two examples and some correlation from Data Storage, so something appears to be amiss here.
I page them on Slack as well.
@mat89, can you confirm which connection / join method you are using.
I know you originally posted this in the “How to Migrate OTAA Devices from V2 to V3” topic but support have noted that if it there is some channel / frequency configuration issue - both dropped packets are on 868.5 - then the network server may not be able to process the uplink correctly.
I’m using OTAA, I attached the ‘Network Layer’ settings I’m using on EU1v3 for the devices as screenshot.
My nodes are based on Arduinos with an RFM95 module, the library I use is ‘MCCI LoRaWAN LMIC library’, the version of the library I’m using is v4.0.0, so it is the latest version.
The libary is of course configured for 868MHz in ‘lmic_project_config.h’ :
// project-specific definitions
#define CFG_eu868 1
//#define CFG_us915 1
//#define CFG_au915 1
//#define CFG_as923 1
// #define LMIC_COUNTRY_CODE LMIC_COUNTRY_CODE_JP /* for as923-JP */
//#define CFG_kr920 1
//#define CFG_in866 1
#define CFG_sx1276_radio 1
//#define LMIC_USE_INTERRUPTS
I checked in my backend, at least I see also processed uplinks with 868.5mhz, so not all 868.5mhz uplinks are lost.
Good info, thanks.
And this too!
@descartes here an example of a lost uplink which is not at 868.5MHz.
EU1 v3 Application/Device with one UDP gateway in reach which is also registered in EU1 v3.
Metadata of the correctly processed uplink:
{
"name": "gs.up.receive",
"time": "2021-09-03T18:33:46.886265454Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3"
}
},
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QPOzCyYATgABO/LC8hhbcH2f",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "W3B9nw==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260BB3F3",
"f_ctrl": {},
"f_cnt": 78
},
"f_port": 1,
"frm_payload": "O/LC8hg="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "868100000",
"timestamp": 2553430643,
"time": "2021-09-03T18:33:47.139654Z"
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
},
"time": "2021-09-03T18:33:47.139654Z",
"timestamp": 2553430643,
"rssi": -73,
"channel_rssi": -73,
"snr": 9,
"uplink_token": "ChkKFwoLaGlyLXR0bjAxdjMSCEg2NyBHAB0AEPOEycEJGgwIitXJiQYQsvrGpgMguKLOoqiIFg=="
}
],
"received_at": "2021-09-03T18:33:46.886160690Z",
"correlation_ids": [
"gs:conn:01FEKJJD5D0GTQX6M9SSC6H9X1",
"gs:uplink:01FEPF0BM6FQRHCZESF9PBJ4BW"
]
},
"correlation_ids": [
"gs:conn:01FEKJJD5D0GTQX6M9SSC6H9X1",
"gs:uplink:01FEPF0BM6FQRHCZESF9PBJ4BW"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEPF0BM6AG2MTX9RFAGXAVV8"
}
Metadata of missing uplink:
{
"name": "gs.up.receive",
"time": "2021-09-03T18:28:49.987885825Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3"
}
},
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QPOzCyYATQABUk9iGW7UtTck",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "1LU3JA==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260BB3F3",
"f_ctrl": {},
"f_cnt": 77
},
"f_port": 1,
"frm_payload": "Uk9iGW4="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "867700000",
"timestamp": 2256425572,
"time": "2021-09-03T18:28:50.133441Z"
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "hir-ttn01v3",
"eui": "4836372047001D00"
},
"time": "2021-09-03T18:28:50.133441Z",
"timestamp": 2256425572,
"rssi": -72,
"channel_rssi": -72,
"snr": 9.25,
"uplink_token": "ChkKFwoLaGlyLXR0bjAxdjMSCEg2NyBHAB0AEOSk+bMIGgwI4dLJiQYQ/6PEqgMgoK3H69X/FQ==",
"channel_index": 6
}
],
"received_at": "2021-09-03T18:28:49.894505471Z",
"correlation_ids": [
"gs:conn:01FEKJJD5D0GTQX6M9SSC6H9X1",
"gs:uplink:01FEPEQ9P3P1XKTDTNZFGGNANE"
]
},
"correlation_ids": [
"gs:conn:01FEKJJD5D0GTQX6M9SSC6H9X1",
"gs:uplink:01FEPEQ9P3P1XKTDTNZFGGNANE"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEPEQ9P348AGN1H2WXKE46FZ"
}
Hi,
I will follow this problem with more than normal interest : it looks identical to what I posted a few weeks ago.
I counted a loss of 6 % - also messages that were send by my GW, arrived at TTN, but did not appear in the webhook. (but finally adapted my application as 10 % was considered as acceptable)
If possible, please share metadata of messages that are shown in TTN GW live data but not in the TTN node live data (see some of the posts above).
Following message showed up in the TTN GW live data, but not in the TTN node live data
Click to see the full logs
{
"name": "gs.up.receive",
"time": "2021-09-07T09:20:31.974378739Z",
"identifiers": [
{
"gateway_ids": {
"gateway_id": "dragino-lps8-gateway-pdbr"
}
},
{
"gateway_ids": {
"gateway_id": "dragino-lps8-gateway-pdbr",
"eui": "A840411EAA044150"
}
}
],
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.UplinkMessage",
"raw_payload": "QMPECyaAkUYCYPqZvp4gQloE",
"payload": {
"m_hdr": {
"m_type": "UNCONFIRMED_UP"
},
"mic": "IEJaBA==",
"mac_payload": {
"f_hdr": {
"dev_addr": "260BC4C3",
"f_ctrl": {
"adr": true
},
"f_cnt": 18065
},
"f_port": 2,
"frm_payload": "YPqZvp4="
}
},
"settings": {
"data_rate": {
"lora": {
"bandwidth": 125000,
"spreading_factor": 7
}
},
"coding_rate": "4/5",
"frequency": "867500000",
"timestamp": 300747044,
"time": "2021-09-07T09:20:31.955378Z"
},
"rx_metadata": [
{
"gateway_ids": {
"gateway_id": "dragino-lps8-gateway-pdbr",
"eui": "A840411EAA044150"
},
"time": "2021-09-07T09:20:31.955378Z",
"timestamp": 300747044,
"rssi": -66,
"channel_rssi": -66,
"snr": 6.5,
"location": {
"latitude": 51.21161367789357,
"longitude": 4.452853202819825,
"source": "SOURCE_REGISTRY"
},
"uplink_token": "CicKJQoZZHJhZ2luby1scHM4LWdhdGV3YXktcGRichIIqEBBHqoEQVAQpJK0jwEaDAjf3dyJBhCdgcbQAyCg6a6v4IUB",
"channel_index": 5
}
],
"received_at": "2021-09-07T09:20:31.974225565Z",
"correlation_ids": [
"gs:conn:01FEZNF0EHCZPH7NFV86TGXJXQ",
"gs:uplink:01FEZRY6Q691F0WFNMR5JT8A66"
]
},
"correlation_ids": [
"gs:conn:01FEZNF0EHCZPH7NFV86TGXJXQ",
"gs:uplink:01FEZRY6Q691F0WFNMR5JT8A66"
],
"origin": "ip-10-100-5-46.eu-west-1.compute.internal",
"context": {
"tenant-id": "CgN0dG4="
},
"visibility": {
"rights": [
"RIGHT_GATEWAY_TRAFFIC_READ",
"RIGHT_GATEWAY_TRAFFIC_READ"
]
},
"unique_id": "01FEZRY6Q6EAYR06Y33Y8DKCJ3"
}
As no-one here has access to that level of information on the stack there is not much that can be done with that, perhaps you could read the thread above so you can see what sort of information we need.
What is the current percentage drop out rate? I’d calculate it myself but my webhook server isn’t getting any traffic from you anymore.
I indeed stopped the webhook, as you earlier convinced me that 10 % dropping rate is acceptable. I already adapted my application to take that into account. I just wanted to help mat89 and as said, I am very interested in his problem looking identically as mine.
And for other readers, I quoted the documentation. I never ever said 10% packet loss was acceptable. I may have said that it was to be expected in a busy RF environment.
As @mat89 appears to have done further research, it may well be there is something more to your packet loss. Do you want to investigate it?
Thanks for the offer and your willingness to further investigate. For the moment I cannot attribute enough time myself and I can live with my adapted solution.
Since the evening of 2021-10-03 I have experienced less packet loss.
In this graph green is V3 and yellow is V2, same physical device delivering data to both, while the session is still active on V2.
Frame counters for this device as CSV is here. station-001
=V3, station_01
=V2.
undefined
means packet was lost.
Explore-data-as-seriestocolumns-2021-10-19 20_51_55.csv.txt (215.7 KB)