Hello,
I’ve two devices already joined to a ttnv3 network server I installed, a smart room home sensor from tektelic (https://tektelic.com/uploads/Brochures/Smart%20Room%20Sensor.pdf) and a water meter from bmeters (RFM-LR1 - www.bmeters.com).
Now I installed a new thethingsnetwork stack v3 in another server and I need to “migrate” these devices.
So I’ve to understand how to de-join these device to let them re-join to the new server.
In the past I used the command
“ttn-lw-cli end-devices create --application-id “mcg-ttn” <bmeters.json” to migrate from v2 to v3 the bmeters device, but now the same command on the new server give me this error:
ttn-lw-cli end-devices create --application-id “iot-mcg” <bmeters.json
unmarshal error at path “mac_settings.rx1_delay”: invalid value type for enum: Object
This is the contenent of the bmeters.json
{“ids”:{“device_id”:“bmeters”,“application_ids”:{“application_id”:“bmeters”},“dev_eui”:“70B3D5D720000121”,“join_eui”:“70B3D5D72FF81300”},“name”:“contatoreacqua”,“dev_addr”:“26012653”,“lorawan_version”:“MAC_V1_0_2”,“lorawan_phy_version”:“PHY_V1_0_2_REV_B”,“frequency_plan_id”:“EU_863_870”,“supports_join”:true,“root_keys”:{“app_key”:{“key”:“FD42C7AF9BDA9D3374C0150508DF76B9”}},“mac_settings”:{“rx1_delay”:{“value”:“RX_DELAY_1”},“supports_32_bit_f_cnt”:true,“resets_f_cnt”:false},“session”:{“dev_addr”:“26012653”,“keys”:{“app_s_key”:{“key”:“0E975D14F03E9EC4C5595C20EAC1EACF”},“f_nwk_s_int_key”:{“key”:“6929C4722CFE8C2F74C7476C8F6395EB”}},“last_f_cnt_up”:1351,“last_n_f_cnt_down”:20}}
Some help? Thank you!
Regards,
Alessandro