Kerlink new ID

Hi,

I used a ifemtocell-evolution with keros6.4

I create a gateway, and I deleted the gateway

I read several post about reuse the name

Declaring Gateway klk-7076ff006405148X on eu1.cloud.thethings.networknetwork using users/mdp-2026 identifier.

{“code”:6,“message”:“error:pkg/util/store:id_taken (ID already taken, choose a different one and try again)”,“details”:[{“@type”:“type.googleapis.com/ttn.lorawan.v3.ErrorDetails",“namespace”:“pkg/util/store”,“name”:“id_taken”,“message_format”:"ID already taken, choose a different one and try again”,“correlation_id”:“c64c419d8ed143e89eb487f47436ba5b”,“cause”:{“namespace”:“pkg/util/store”,“name”:“already_exists”,“message_format”:“already exists”,“correlation_id”:“6c83c46a9a9f4bd59e97fa1f7971b275”,“code”:6},“code”:6}]}

and I put in the terminal –naming an nothing…

klk_ttn_config -t -u -f <FREQ_PLAN> [ --naming <NAMING_STRATEGY> ]

-h, --help show help
-s, --simu simulate API URL computation

mandatory parameters:

-t, --token TTN Api token
-u, --url TTN Api URL
-f, --freq Frequency plan

optional parameters:

–naming Set gateway naming strategy
prefix[/scheme]
schemes:
“knet” : prefix-EUI[:-6] (default)
“eui” : prefix-EUI
“serial” : prefix-board serial
“model” : model-EUI[:-6]

How I can change the ID¿

As well as many posts about the Id, there are also many posts about not deleting a gateway. There are few to no posts on changing the name.

Use a different ID when you enter the details and you will not see the message “ID already taken, choose a different one and try again”. The entry field where you enter the ID is marked Gateway ID

This field is NOT the name or the EUI

How I can change the ID

By using one of the other naming strategies. The options are listed at the end of your message. For instance add ‘-naming eui’ to the register command. And make sure not to delete that one as well as you’ll run out of options…

The Kerlink supplied script takes care of generating the ID. The user can only choose the naming strategy used to generate the ID.

How does the Kerlink know the ID used by TTS? I wasn’t aware that the information is transmitted to a gateway - is it not entirely internal to TTS - otherwise @Jeff-UK’s naming scheme wouldn’t work ever!

I know, I change this field and nothing…

I have put this in the terminal and the ID no changes…

sudo klk_ttn_config -u https://eu1.cloud.thethings.network -t NNSXS.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -f EU_863_870_TTN --naming mdp/serial
TTN Community Edition URL type
Declaring Gateway klk-7076ff0064X5148X on eu1.cloud.thethings.network using users/mdp-2026 identifier.

{“code”:6,“message”:"error:pkg/util/store:id_taken (ID already taken, choose a different one and try again)

Solved.

Change in nano /run/boardinfo.env the info