# Recreate deleted device

**URL:** <https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737>\
**Category:** Product Support\
**Created:** [December 17, 2019, 12:56pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737 "2019-12-17T12:56:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 17, 2019, 12:56pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/1 "2019-12-17T12:56:46Z")

</div>

Hi,  
I have an application in which I deleted a device. Now I need to add that same device back. However, communication never starts. I see from several forum posts that this is a common problem. I tried to re-register it using the CLI with a new Appkey, but still nothing.  
Can somebody help me?

Thanks.

br  
Jesper

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [December 17, 2019, 1:26pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/2 "2019-12-17T13:26:49Z")

</div>

Re-adding a node should work without any issue if you handle it like a new node. So don’t try to recycle the previous AppKey, just add a new node with the same DevEUI and have TTN generate the new AppKey. Then make sure to program the node with the new AppKey (setting the AppEUI to make sure it matches won’t hurt either).  
If you perform these steps, what happens? Does your node provide debug output you can check? Do you own a gateway close (but not too close, at least 3 meters away) to the node so you can check if the node transmits the OTAA request?

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 17, 2019, 1:36pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/3 "2019-12-17T13:36:17Z")

</div>

Is it required that TTN generate the AppKey? When I re-added the device I just changed the last digit in the old key.  
Well, nothing happens. The sensor (Elsys ERSCO2) blinks orange which tells me it tries to join the network.  
I have to indoor gateways in our offices and when i go to the TTN console and look at traffic and search for the last four digits in the DevEUI, I get nothing.

I also tried resetting the configuration of the sensor and create a new configuration for it. Same result.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [December 17, 2019, 1:40pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/4 "2019-12-17T13:40:00Z")

</div>

Did you have TTN Console already open while the node tried to join? (The gateway Traffic page won’t show anything it received before you opened that page.)

I’m quite sure you should see all valid LoRaWAN packets in the gateways’ Traffic pages in TTN Console, even if TTN does not somehow know the devices. (It also shows packets from other network providers. I don’t expect traffic to be silently hidden from the gateway Traffic page if TTN runs into some error when handling a previously known device.)

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 17, 2019, 1:42pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/5 "2019-12-17T13:42:07Z")

</div>

I had the console open yes. How long interval is the join request? Also, do I need to check both gateways’ Traffic tab or is one enough?

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [December 17, 2019, 1:43pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/6 "2019-12-17T13:43:48Z")

</div>

> [@ateainsights](#):
>
> How long interval is the join request?

Between requests? That depends on your device, I guess.

> [@ateainsights](#):
>
> do I need to check both gateways’ Traffic tab or is one enough?

One should suffice, as all gateways in the neighbourhood should receive and forward all valid LoRa radio transmissions they receive. Checking the other as well won’t hurt, of course.

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 17, 2019, 1:52pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/7 "2019-12-17T13:52:34Z")

</div>

Right. I just wrote a new configuration and rebooted the device. Still nothing. triplechecked the keys too.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [December 17, 2019, 2:05pm UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/8 "2019-12-17T14:05:13Z")

</div>

Even if the keys don’t match you should see join requests from the device in the gateways traffic page. Do you see any join requests at all? (Lightning arrows)

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 18, 2019, 8:08am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/9 "2019-12-18T08:08:27Z")

</div>

No. Nothing in the traffic log of (one of the two) gateway(s). I typed the 2 last hex numbers as search criteria, left the screen open, rebooted the device and waited. Nothing.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [December 18, 2019, 8:13am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/10 "2019-12-18T08:13:43Z")

</div>

> [@ateainsights](#):
>
> I deleted a device

Just to ask the obvious: was it working before you deleted it? Sounds to me that the device is not transmitting any OTAA Join Request, despite the LED apparently tells you it is. This is then unrelated to any registration with TTN.

Elsys [says](https://www.elsys.se/shop/product/ers-co2/?v=796834e7a283):

> All Elsys sensors are equipped with NFC ([Near Field Communication](https://en.wikipedia.org/wiki/Near_field_communication)) for easy configuration with an Android phone. With our application “[Sensor Settings](https://play.google.com/store/apps/details?id=se.elsys.nfc.elsysnfc&hl=en)“, you can change sample rate, data rate, encryption keys, triggers, activation and much more.

That might help.

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [December 18, 2019, 8:19am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/11 "2019-12-18T08:19:59Z")

</div>

Last two hex numbers of what? The device address will change on every OTAA attempt so filtering on that will not work.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [December 18, 2019, 8:22am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/12 "2019-12-18T08:22:48Z")

</div>

Also, one can filter on Join (disable uplink and downlink by clicking those):

![traffic filter](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/0/30c00411351f379965c2ebaedcaf631e1bb8d540.png)

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 18, 2019, 8:24am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/13 "2019-12-18T08:24:53Z")

</div>

on the EUI that is written on the device.

---

<div class="post-metadata">

**Author:** ![ateainsights](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/ateainsights/32/35697_2.png) [@ateainsights](https://www.thethingsnetwork.org/forum/u/ateainsights)\
**Post date:** [December 18, 2019, 8:25am UTC](https://www.thethingsnetwork.org/forum/t/recreate-deleted-device/32737/14 "2019-12-18T08:25:33Z")

</div>

I will have another go tomorrow when I’m back in the office. I’ll update you on my findings. Thank you very much so far 🙂
