DevIDs max length before migration

Hi,

We have devices with IDs of 39 characters. The ttn-lw-migrate tool (v0.5.0 up to v0.7.0) prevents the migration of devices because of the IDs of more than 36 characters. We want to migrate our devices with sessions keys.

How can we migrate our devices ?Is it possible to increase this limit of 36 characters ?

Regards,

You could truncate or remap the ID’s - they are administrative but this may impact on your backend.

Very probably if you alter the source code - or lodge an issue on GitHub - but you may want to look at using shorted IDs as migration D-Day is ~54 days away

How to truncate or remap the ID’s on v2 ? On web interface it seems we can’t do that. Maybe with CLI ? Please could you share a doc for that ?

Regards

I’m afraid increasing the limit of 36 is not possible. Doing this would be a breaking API change, and it could result in problems with (external) applications, integrations and storage databases that were built to enforce the current limit of 36.

It shouldn’t have been possible to register IDs of longer than 36 in V2 either, but an unfortunate validation bug allowed this to happen for a number of devices.


We could indeed solve this by making a change to the ttn-lw-migrate tool that lets you remap the IDs. Would it work for if the tool would allow you to register these devices in V3 using their DevEUI instead of their V2 ID?

Hi htdvisser,

If we can keep sessions info from our devices before migration, your solution could help us.

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