Host `{host}` failed to handle message. No devices matches uplink

I installed ttn stack v3 on my private server and got everything working, but when I receive something on the gateway, I get the following error:

Host cluster failed to handle message: No device matches uplink

I already created the application and the end device with matching eui, device addr, network key, app key… I don’t know what is wrong.
Here’s the json with error… Maybe it helps.

],
“data”: {
@type”: “type.googleapis.com/ttn.lorawan.v3.ErrorDetails”,
“namespace”: “pkg/gatewayserver”,
“name”: “host_handle”,
“message_format”: “host {host} failed to handle message”,
“attributes”: {
“host”: “cluster”
},
“cause”: {
“namespace”: “pkg/networkserver”,
“name”: “device_not_found”,
“message_format”: “device not found”,
“correlation_id”: “7bfcc498ceea4575b3cde530051ed318”,
“cause”: {
“namespace”: “pkg/networkserver/redis”,
“name”: “no_uplink_match”,
“message_format”: “no device matches uplink”,
“code”: 5
},
“code”: 5
},
“code”: 5
},
“correlation_ids”: [
“gs:conn:01EVH85VV7Y81Z2TEWC1RFKQ4F”,
“gs:up:host:01EVH85WJYFYJXQNR6K21DNY0P”,
“gs:uplink:01EVJFTJRAAWD6B0H2BWZWG0K5”
],
“origin”: “cc7df4ef1d13”,
“visibility”: {
“rights”: [
“RIGHT_GATEWAY_TRAFFIC_READ”
]
},
“unique_id”: “01EVJFTJRGNNXQ9SCW2JA9PA3R”
}

1 Like

If you’re willing to burn a set of secrets, try using the online decoder on the raw packet received by the gateway and see if it really matches the details you configured, or if something got mis-trasncribed or byte reversed.

Are you sure that’s even your traffic?

Yeah, i’m sure…
On the gateway log, I see the device address, wich is correct, but even with the application and end-device created, I’m getting these errors…
If I simulate the uplink, it goes ok…

I’m in doubt with this “link” thing… This is in my application screen, and i’m leaving this network server address empty because the server is the same for everything… does have something to do with it?
It says the application is linked, btw…

image

Anyone knows what problem might be?

Anyone?

Paging @htdvisser for input - @vulcanum_engenharia, mostly it’s TTI staff who are the subject matter experts on the V3 stack but right now they will be busy getting ready for the conference.

I understand… I’ll be waiting, and meanwhile trying to make it work…

@htdvisser

I’m afraid I can’t be of much help here. With LoRaWAN, matching an uplink to an device can fail at several points, and it’s often impossible to say what exactly went wrong.

At a high level, the matching process is as follows:

  • Find all device registrations with the DevAddr that’s in the uplink. This can result in multiple device “candidates”, as DevAddrs are not unique.
  • For each device registration, try to determine the most likely frame counter. The uplink message only contains half of the actual frame counter. Simply said: an uplink contains xx00 instead of 1200, and the network needs to “guess” what that xx is. Since the LoRaWAN specification dictates that frame counters can only increase, this may result in a wrong “guess” for ABP devices that reset frame counters.
  • Using that (guessed) frame counter, the NwkSKey (and in case of LoRaWAN 1.1+ some more fields) the network computes the MIC (“signature”) it would expect for this uplink, given those fields. It compares this MIC to the MIC that’s actually in the message. If it matches, great! If it doesn’t match, it’s impossibly to say why.

In most cases, device matching failures occur with ABP devices, which is why we always recommend using OTAA. If you’re already using OTAA, try to make the device perform a new join procedure. If the join procedure succeeds, but subsequent uplinks fail, we’d need to take a closer look.

I understand…
I’m going to try that. Thanks!

I’m doing the same configuration as I did on the public the things network… everything worked fine there… :confused:

Have you selected the right MAC version for the node?

Yes, I even tried different ones, but didn’t work…

I’m using the exactly same configuration as on public ttn… Same device addr, same netkey, appkey…

This topic was automatically closed after 30 days. New replies are no longer allowed.