# Denied when using OTAA

**URL:** <https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235>\
**Category:** How to get started\
**Created:** [March 24, 2018, 9:37pm UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235 "2018-03-24T21:37:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Foorack](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/foorack/32/12094_2.png) [@Foorack](https://www.thethingsnetwork.org/forum/u/Foorack)\
**Post date:** [March 24, 2018, 9:37pm UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/1 "2018-03-24T21:37:37Z")

</div>

Hello,

We are using RN2483 with ATmega644PA. Located in EU, running on 868 band, antenna is DELTA6A/X/SMAM/S/S/11.

```
sys reset
RN2483 1.0.3 Mar 22 2017 06:00:42
mac get deveui
ok
<deveui, enters this into device registration>
mac set appeui <appeui>
ok
mac set appkey <appkey>
ok
mac set adr on
ok
mac save
ok
mac join otaa
ok
denied

```

There are two gateways nearby. It always says denied, however, at what seems to be completely random - about 1 out of 20 times - it **will create a new entry** in the application data tab under “activation” in the TTN console, but the **module still returns “denied”**. 🤔  
 ![Screenshot%20from%202018-03-24%2020-00-41%20(kopio)](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/5/5a6dfc20e1e239eb6a78feabd52a3a52dd05cf0b.png)

What is an acceptable/normal RSSI? What could be causing this behaviour? Lack of signal?

---

<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:** [March 24, 2018, 10:02pm UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/2 "2018-03-24T22:02:20Z")

</div>

Set your data rate to something other than SF12. Some RN2483 modules have issues joining on SF12.

---

<div class="post-metadata">

**Author:** ![Foorack](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/foorack/32/12094_2.png) [@Foorack](https://www.thethingsnetwork.org/forum/u/Foorack)\
**Post date:** [March 24, 2018, 10:43pm UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/3 "2018-03-24T22:43:48Z")

</div>

Thanks, will go test that. 🙂 Any setting specifically recommended? Should SF11 work fine?

---

<div class="post-metadata">

**Author:** ![Foorack](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/foorack/32/12094_2.png) [@Foorack](https://www.thethingsnetwork.org/forum/u/Foorack)\
**Post date:** [March 25, 2018, 12:46am UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/4 "2018-03-25T00:46:13Z")

</div>

Went out and tested it. Tested SF10, SF9 and SF8. Nothing worked. Very rarely an “activation” data entry was created but we still constantly get “denied”.  
 ![Ekrankopio%20de%202018-03-25%2000-45-12](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/6/6d04f29da67d34c9e3fb1592986f9a3e76434ae6.png)  
 ![Ekrankopio%20de%202018-03-25%2000-49-41](https://www.thethingsnetwork.org/forum/uploads/default/original/2X/4/46dfe1de8cbafbe4c23222beaf5ebcffc3edacc0.png)

---

<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:** [March 25, 2018, 9:41am UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/5 "2018-03-25T09:41:32Z")

</div>

> [@Foorack](#):
>
> Very rarely an “activation” data entry was created

If TTN receives the OTAA Join packet and the EUIs and keys are okay, then such should be visible in TTN Console for each join attempt, if you have TTN Console open at the time of the join. (Or it should show an error when re-using security nonces.)

So seeing it only _“very rarely”_ implies that your EUIs and keys are okay, but that your node is often out of reach of gateways. Also, for the few cases where you saw the activation in TTN Console, apparently the subsequent Join Accept was not received by your node, so again the node was out of reach (or not listening at exactly the right time).

I’d first focus on ensuring TTN gets the OTAA Join Request for each and every attempt. Or, test with ABP first to ensure you’re in reach.

(As an aside: “denied” only tells you that the node did not receive a reply. It’s not telling you that it was truly rejected, as LoRaWAN does not send such rejections at all.)

---

<div class="post-metadata">

**Author:** ![BoRRoZ](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/borroz/32/44234_2.png) [@BoRRoZ](https://www.thethingsnetwork.org/forum/u/BoRRoZ)\
**Post date:** [March 25, 2018, 10:26am UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/6 "2018-03-25T10:26:54Z")

</div>

there was a problem last night … I was in the middle of testing things and couldn’t join otaa.

at the moment it’s working ok as far as I can see

---

<div class="post-metadata">

**Author:** ![glederer1](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/glederer1/32/35697_2.png) [@glederer1](https://www.thethingsnetwork.org/forum/u/glederer1)\
**Post date:** [March 25, 2018, 1:38pm UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/7 "2018-03-25T13:38:07Z")

</div>

Hello @Foorack, It may be a very stupid question, but are you sure that the two gateways in the nearby are true multi-channel gateways? Because if they are single channel ones, then they are simply not able to receive on all the LoRaWAN specified channels that your node is transmitting on…

---

<div class="post-metadata">

**Author:** ![jagannath](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jagannath/32/14663_2.png) [@jagannath](https://www.thethingsnetwork.org/forum/u/jagannath)\
**Post date:** [June 18, 2018, 10:43am UTC](https://www.thethingsnetwork.org/forum/t/denied-when-using-otaa/13235/8 "2018-06-18T10:43:40Z")

</div>

The same is happening to me…  
I tried with ABP, it’s working but OTAA giving problem…Previously It was working with SF7BW125 but when I changed it to SF12BW125 after that even I get back to original setting still the same reply is coming i.e. **denied**
