Removed app but not devices, OTAA join fails on devices

687/5000

I created a new application, registered a device. Used the device’s appEui, appKey copy function to register with OTAA. In the example sketch of the Things network, I pasted the keys, set the fequency to EU and uploaded things uno node.
I see messages in the gateway traffic with my deviceId, but it is not registered.
This used to work, but not anymore.
I have removed the old application and have not deleted the devices there, so my device registration is error state, which I cannot resolve.

Can someone repair the device registration so that I can use these devices again

All help is appreciated

I have the same issue. I had a perfectly working application and end device but decided to delete them and create new ones changing the naming convention.
Now only the gateway is communicating and the app and end device are no longer seen. I have triple checked the keys and know they are correct.
From what I’ve read it might be the end device is still on a join server or something. Can anyone point me in the right direction to resolve?

What did you use to remove the app & devices - console, CLI or other?

What order did you remove them?

Does the gateway show a Join Accept being transmitted?

If you add a device never used before to the app, does that connect OK?

Hi Nick,

I used the console to delete various apps and devices I had created over time and am not sure what order I did it in. I should explain I did this as the end device had not been reporting for some time and thought I would just start from scratch. At one point the device did start reporting again but in my stupidity I continued to wipe everything out to start again.

The gateway does show a join accept being transmitted.

I don’t currently have a never used device to hand to test with.

To get around the issue I setup my gateway on Datacake successfully but when I try and add the RS485-LN device it detects the DEV EUI is used by another device. The DEV EUI is A8 40 41 63 31 87 3A 0C

I tried setting this up a number of times in the past on eu1. and nam1 and probably have not removed correctly. I have been reading how to check this through CLI but am failing miserably. I know it’s a common question on how to remove from databases…but I can’t find the way to do it successfully.

Any help would be most appreciated.

It isn’t really on LW because it’s primarily focused on larger managed installs - ad-hoc re-arrangement of entities is OK if you follow the restrictions outlined in the docs.

We seem to have pivoted in to a gateway registration and Datacake - I’m unclear how registering a gateway on Datacake will change the device registration and when you say “it detects” is that Datacake or TTN?

You may be able to change the Dev &/or Join EUI for the device to get that going.

Datacake support direct connection of Gateways not having to go through TTN. I was hoping by doing that they wouldn’t check if the dev eui was already being used somewhere in TTN (my assumption).

Yes…I was hoping not to have to change the dev eui of the end device…but looks like that’s the only option.

A gateway on Datacake would be off-topic for TTN as it no longer contributes to the community.

There is no link between TTN & Datacake to validate EUI’s that are in use in the TTN database.

Understood…and thanks for the help.