TheThingsIndustries / lorawan-stack-docs

Documentation for The Things Stack
Apache License 2.0
32 stars 65 forks source link

Include the possible reason for missing uplinks in the Device Troubleshooting guide #677

Closed ymgupta closed 2 years ago

ymgupta commented 2 years ago

Summary

Add the possible reason for missing uplinks in device live data but reaching gateway live data.

Why do we need this?

Adding common reasons for missing uplink in device live data to the Devices troubleshooting documentation will be useful for the Users.

What is already there? What do you see now?

Troubleshooting points for missing uplinks in device live data. https://www.thethingsindustries.com/docs/devices/troubleshooting/#i-can-see-some-received-uplinks-in-gateway-live-data-events-but-i-do-not-see-them-in-device-events

What is already there? What do you see now?

Add the below troubleshooting points in the I can see some received uplinks in gateway Live data events, but I do not see them in device events. section. Insights: We have observed missing uplinks in device live data when an ABP devices transmit uplinks at a frequency that is not part of the standard frequency plan used in TTS V3 (lorawan frequency plan).

nejraselimovic commented 2 years ago

Can you please elaborate on how is this different from what we already have:

Using inappropriate frequencies

This case applies only to ABP devices and EU/IN/AS frequency bands. Since the Network Server is initially accepting >uplinks from devices only in default channels, uplinks from the device that is using non-default channels are dropped. In this >case, Factory Preset Frequencies have to be set either in device’s overview in The Things Stack Console, or by setting MAC >commands using the CLI. If these settings are applied to an existing device, you might need to reset the device as well.

The example you mentioned is using a non-standard EU frequency, i.e. an inappropriate frequency. Could the issue in your case be solved by setting MAC commands or Factory Preset Frequencies instead of re-configuring the device?

ymgupta commented 2 years ago

@nejraselimovic, The existing scenario refers to the device using the frequencies that are part of the EU frequency plan used in TTS V3. (868100000, 868300000, 868500000, 867100000, 867300000, 867500000, 867700000, 867900000)

The current scenario refers to the device using a few frequencies (Eg: 866900000 instead of 867900000) out of 8 that are not part of the EU frequency plan used in TTS. (868100000, 868300000, 868500000, 867100000, 867300000, 867500000, 867700000, 866900000)

True, setting the MAC commands or Factory Preset Frequencies should serve the purpose here. But, we are not sure if it is a suggested practice in the current scenario or not.

@adriansmares, Let us know your thoughts.

adriansmares commented 2 years ago

The original issue that @ymgupta was thinking about when he wrote this issue is strongly related to migration.

When an end device is migrated from v2, we don't add any factory preset frequencies, as these were not stored in v2, since v2 did not actually check the frequency in which the end device has sent a message. The problem becomes then that these end devices, whose session we have migrated, will still use them, but the uplinks are lost in v3.

There are two solutions, depending on what the customer can do:

I think that the workaround should be added to the migration guide, and maybe add a small callback in the device troubleshotting guide that says 'If you migrated and have this issue, you may experience this', and link to this explanation.