# OTAA and bad contacts in your node's antenna

**URL:** <https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984>\
**Category:** Uncategorized\
**Created:** [December 28, 2019, 10:12pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984 "2019-12-28T22:12:54Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![noebl1](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/noebl1/32/35697_2.png) [@noebl1](https://www.thethingsnetwork.org/forum/u/noebl1)\
**Post date:** [January 1, 2020, 1:54am UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/21 "2020-01-01T01:54:34Z")

</div>

@MOS-FET Same problem here too. I got a couple of the Heltec Cubecell’s, I fired it up with the sample code, set it to 915mhz, and it just worked and thought it was amazingly simple. Then 19hours later it just stopped… I saw a couple partial joins, then it’s never joined again. I pulled out the 2nd one, known good 900mhz antenna, same issue. It’s really discouraging. My other nodes are working fine, so I suspect my gateway is running fine.

EDIT: Yes I tried different pigtails and moving between 3 - 20m from the gateway.

---

<div class="post-metadata">

**Author:** ![MOS-FET](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/mos-fet/32/35697_2.png) [@MOS-FET](https://www.thethingsnetwork.org/forum/u/MOS-FET)\
**Post date:** [January 1, 2020, 8:44am UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/22 "2020-01-01T08:44:54Z")

</div>

@noebl1 ok. Which of cubecell you are using I used the capsulate one. I think they have problem in receiving. Because the join in my case was always accepted from my Gateway.  
I have written an issue on GitHub to this matter.  
Thanks for your answer. I have an TTIG indoor Gateway. I will do more test next day’s if I have time. Because the electrical node specs and low power are quite super.  
@cslorabox can u suggest an logic anylizer.

---

<div class="post-metadata">

**Author:** ![Verkehrsrot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/verkehrsrot/32/46588_2.png) [@Verkehrsrot](https://www.thethingsnetwork.org/forum/u/Verkehrsrot)\
**Post date:** [January 1, 2020, 10:51am UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/23 "2020-01-01T10:51:19Z")

</div>

Is there a way with TTNv2 to

- surely see if a Join Accept was generated by the network server?
- to which gateway it was sent?
- to clear the DevNonce history of a device (to ensure double DevNonces are not an issue)?

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [January 1, 2020, 12:56pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/24 "2020-01-01T12:56:25Z")

</div>

Posted by @arjanvanb back in Feb 17 🙂

> [@OTAA shows "Activation DevNonce not valid: already used"](https://www.thethingsnetwork.org/forum/t/otaa-shows-activation-devnonce-not-valid-already-used/5079/13):
>
> A workaround from @htdvisser on Slack, if you really need to clear the nonces that TTN has stored:
> 
> > The backend clears the DevNonces when you change the AppKey, so if this is a problem, you can just change the AppKey to something else and then change it back

---

<div class="post-metadata">

**Author:** ![noebl1](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/noebl1/32/35697_2.png) [@noebl1](https://www.thethingsnetwork.org/forum/u/noebl1)\
**Post date:** [January 1, 2020, 4:07pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/25 "2020-01-01T16:07:37Z")

</div>

@MOS-FET They are both the CubecCell dev boards.

I had wondered if for some reason there was an issue on the TTN side (I figured a remote chance, even though unlikely), so created a new application with a new app key and same issue. I’ll post to the Heltec forum as well for some ideas.

---

<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:** [January 1, 2020, 9:06pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/26 "2020-01-01T21:06:10Z")

</div>

> [@Verkehrsrot](#):
>
> - surely see if a Join Accept was generated by the network server?
> - to which gateway it was sent?

Apparently somehow depending on the type of gateway, or on the type of forwarder software (like Semtech UDP or TTN MQTT), the gateway **Traffic page** (s) _might_ show an orange Join Request. The application’s and device’s **Data page** will always show an orange Activation if TTN accepted the Join Request (including the new DevAddr). And the Traffic page of the gateway that was selected for the downlink will show the green Join Accept:

> [@No downlink (observed at OTAA) when gtw\_id is missing in uplink](https://www.thethingsnetwork.org/forum/t/no-downlink-observed-at-otaa-when-gtw-id-is-missing-in-uplink/31008/10):
>
> ![application data](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/5/8/58101c5c19a03c9caf6e08ac1089207b01f92eb1.png)
> 
> ![gateway traffic](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/2/a/2a1aae8b239c304d4fc912832eb5c8b9964b3993.png)
> 
> In case it helps: for a The Things Gateway [I often, or always, only get the green icon](https://www.thethingsnetwork.org/forum/t/lora-mac-node-otaa/19676/3) in the gateway’s Traffic page. But for other gateways I’ve also seen the orange Join Request in their Traffic pages. In all occasions, OTAA does work fine, for me.

For errors see [OTAA shows "Activation DevNonce not valid: already used"](https://www.thethingsnetwork.org/forum/t/otaa-shows-activation-devnonce-not-valid-already-used/5079) or [Activation not valid - no gateways available](https://www.thethingsnetwork.org/forum/t/activation-not-valid-no-gateways-available/5649).

---

<div class="post-metadata">

**Author:** ![obaeyens](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/obaeyens/32/25844_2.png) [@obaeyens](https://www.thethingsnetwork.org/forum/u/obaeyens)\
**Post date:** [January 1, 2020, 9:17pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/27 "2020-01-01T21:17:28Z")

</div>

I just retried my first Heltec Lora esp32 V2 node now that I have 2 other Heltec nodes working and everything points to a defective board. It transmits but it has a hard time to receive. Sometimes it does but most of the times only when it goes to SF9

---

<div class="post-metadata">

**Author:** ![tlu](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/tlu/32/35697_2.png) [@tlu](https://www.thethingsnetwork.org/forum/u/tlu)\
**Post date:** [January 1, 2020, 10:55pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/28 "2020-01-01T22:55:25Z")

</div>

Which library are you using? LMIC?

---

<div class="post-metadata">

**Author:** ![Verkehrsrot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/verkehrsrot/32/46588_2.png) [@Verkehrsrot](https://www.thethingsnetwork.org/forum/u/Verkehrsrot)\
**Post date:** [January 2, 2020, 2:02pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/29 "2020-01-02T14:02:42Z")

</div>

I had this kind of problem with older Heltec (v1) boards, too. I assume root cause is a timing issue due to the onboard oscillator.

---

<div class="post-metadata">

**Author:** ![rharte](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rharte/32/37824_2.png) [@rharte](https://www.thethingsnetwork.org/forum/u/rharte)\
**Post date:** [January 2, 2020, 4:47pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/30 "2020-01-02T16:47:38Z")

</div>

@obaeyens Whenever I have joining problems, 9 out of 10 times it is my local network for some reason messing up the incoming traffic, so my gateway never transmits the join accept message that is in fact send from the TTN backend.  
For around 10 dollars on Ali you can buy a USB stick spectrum analyzer that makes an incredibly helpful tool, because it makes visible the transmissions of your node AND the replies of your gateway, so you can troubleshoot much faster.

---

<div class="post-metadata">

**Author:** ![obaeyens](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/obaeyens/32/25844_2.png) [@obaeyens](https://www.thethingsnetwork.org/forum/u/obaeyens)\
**Post date:** [January 2, 2020, 6:10pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/31 "2020-01-02T18:10:44Z")

</div>

This one:  
“IBM\_LMIC\_framework” (arduino-lmic-master)

---

<div class="post-metadata">

**Author:** ![obaeyens](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/obaeyens/32/25844_2.png) [@obaeyens](https://www.thethingsnetwork.org/forum/u/obaeyens)\
**Post date:** [January 2, 2020, 6:15pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/32 "2020-01-02T18:15:29Z")

</div>

I tried this SDR dongle and SDR# yesterday, I seem to be the only one that actually use that frequency. I am in a small city far away from bigger cities and the first one to install a LoRaWan gateway here.

But now that I have 2 working nodes that have no issue with joining and transmitting data. I retried that node again, but still no it does not recognize the join acceptance. So must be the board itself.

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [January 2, 2020, 8:12pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/33 "2020-01-02T20:12:39Z")

</div>

> [@rharte](#):
>
> Whenever I have joining problems, 9 out of 10 times it is my local network for some reason messing up the incoming traffic,

Pretty clearly not the issue here since some of the nodes work better than others

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [January 2, 2020, 8:13pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/34 "2020-01-02T20:13:37Z")

</div>

> [@obaeyens](#):
>
> “IBM\_LMIC\_framework” (arduino-lmic-master)

LMiC in general has had may timing bugs, especially when run on ESP32’s via an Arduino layer.

Also you’re not stating which repository and state of it you are using - there are various forks each having and missing various bugfixes.

---

<div class="post-metadata">

**Author:** ![obaeyens](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/obaeyens/32/25844_2.png) [@obaeyens](https://www.thethingsnetwork.org/forum/u/obaeyens)\
**Post date:** [January 2, 2020, 8:47pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/35 "2020-01-02T20:47:26Z")

</div>

I followed what I found online:

IBM LMIC framework by IBM version 1.5.0+arduino-0

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [January 2, 2020, 9:35pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/36 "2020-01-02T21:35:58Z")

</div>

You need to link to a specific state of a specific repository.

An actual link, not words.

An again, pay attention to the comment that most are _known to be broken_ for your usage.

---

<div class="post-metadata">

**Author:** ![Verkehrsrot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/verkehrsrot/32/46588_2.png) [@Verkehrsrot](https://www.thethingsnetwork.org/forum/u/Verkehrsrot)\
**Post date:** [January 2, 2020, 11:28pm UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/37 "2020-01-02T23:28:24Z")

</div>

Better use MCCI LMIC instead. It has a lot of bug fixes and enhancements.

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [January 3, 2020, 12:42am UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/38 "2020-01-03T00:42:37Z")

</div>

This thread is getting way off-topic and is therefore closed.  
The issues described in the initial post are related to defective hardware and are not representative for OTAA in general.

* * *

For more information about ESP32 and LoRaWAN see: [Big ESP32 + SX127x topic part 3](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-3/18436)  
For more information about LoRaWAN libraries see: [Overview of LoRaWAN Libraries [HowTo]](https://www.thethingsnetwork.org/forum/t/overview-of-lorawan-libraries-howto/24692)

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/48549_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [January 3, 2020, 12:42am UTC](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984/39 "2020-01-03T00:42:42Z")

</div>



[Previous page](https://www.thethingsnetwork.org/forum/t/otaa-and-bad-contacts-in-your-nodes-antenna/32984.md?page=1)
