[solved] Migration from v2 to v3 give "device not found" depending on frequency

Hello Everyone,
I have some custom made moteino end user nodes with RFM95W that were sending data every 10 min since 1years and half on ttn v2. Today i decided to finally migrate everything to version 3.

So thanks to many post on this forum I updated to rak2245 pi to ttn v3, success connected, receiving data…

My end user devices, i imported them manually in console (im in ABP) thanks to this post :

All i did on my end device was reseting via the RST pin, and it started working for 3 messages, i reached counter around 15/16 and it suddenly stopped working, then started working again for 3 messages, then again device not found for the next 5 messages, as example this node:

it reach fc_cnt 15 failed, device not found

Screenshot 2021-05-11 at 16.19.10

10 min later, at next call from the same node, fc_cnt 16: worked :thinking:
Screenshot 2021-05-11 at 16.18.54

30 min later, another device not found from same node ( it worked for 17 and 18)
Screenshot 2021-05-11 at 16.46.25

When it fail i get this error:

 "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": "4f88c2b31b9642029564c0548340048e",
    "cause": {
      "namespace": "pkg/networkserver/redis",
      "name": "no_uplink_match",
      "message_format": "no device matches uplink",
      "code": 5
    "code": 5
  "code": 5

I noticed i was missing always 5 messages in a row, then was receiving fine for 3 message in a row etc…
so by looking at frequencies, i noticed that it always work when received on those freqs:


and always fails from those freqs


I’m running out of idea and will probably migrate everything back to ttn v2 if not, but im asking if maybe anyone of you have any clue where to start searching ?

Thanks a lot :slight_smile:


  • on my location, im the only gateway and thus my end user node report only to my gateway
  • i also deleted all my enduser node from ttn v2 console

Adding logs from my webhook integrations

2021-05-11 15:57:47,549 - INFO - main - NodeName: node-01 - count: 24 - freq: 868100000
2021-05-11 16:07:55,107 - INFO - main - NodeName: node-01 - count: 25 - freq: 868300000
2021-05-11 16:18:01,088 - INFO - main - NodeName: node-01 - count: 26 - freq: 868500000
2021-05-11 17:18:39,857 - INFO - main - NodeName: node-01 - count: 32 - freq: 868100000
2021-05-11 17:28:47,717 - INFO - main - NodeName: node-01 - count: 33 - freq: 868300000
2021-05-11 17:38:52,938 - INFO - main - NodeName: node-01 - count: 34 - freq: 868500000
2021-05-11 18:39:32,522 - INFO - main - NodeName: node-01 - count: 40 - freq: 868100000

We can clearly see that from count 26 to 32 , it miss 5 messages, corresponding to the 5 frequency that always fails, again it happen from 34 to 40.

The very same happen to all my other nodes:

i receive ok first message at 868100000
i receive ok 2nd message at 868200000
i receive ok 3rd message at 868300000
i get device not found for the 4th message at 867100000
i get device not found for the 5th message at 867300000
i get device not found for the 6th message at 867500000
i get device not found for the 7th message at 867700000
i get device not found for the 8th message at 867900000
and again…
i receive ok the 9th message at 868100000
i receive ok the 10th message at 868200000

For ABP devices you need to tell the V3 stack which frequencies have been preprogrammed into the node apart from the 3 mandatory frequencies.
The dialog for this can be found in the advances network properties. You will need to reset the frame counter for the new settings to become active. Search the forum for instructions on how to do this with V3,


Thanks a lot for your response :wink:
Nevertheless, i already did that as it was part of the tutorial mentioned above.
Here is my console :
Screenshot 2021-05-11 at 22.13.10

i also did reset the frame counter ( i mean i just checked the checbox reset frame counter), it started counting at 0 again then i unchecked it , or maybe you mean running this command instead ? :
ttn-lw-cli end-devices set [application-id] [device-id] --session.last-a-f-cnt-down 0

I added those frequencies after having set up the node config though, should i recreate the whole node config and add them during first time configuration ? Does the order also matter ? meaning from lower to higher ?

Thanks a lot :slight_smile:

The order is not important, however the V3 stack needs to be forced in starting a new session. The easiest solution would be to add the device again with the addition frequencies. There should be other ways which may find on the forum, O recall having seen messages on the subject.

Thanks a lot , as its getting late in europe, i will try your suggestion tomorrow :wink:
Thanks again a lot for your help :wink:

1 Like

Alright, so reset the frame counter and making a hard reset on the node worked, now all my node report every 10 min just like old good v2 times. Migration to v3 100% complete. AwEsOmE !!!

Thanks a ton for your help :wink:


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.