# Dragino LA66 shield cannot connect to TTN

**URL:** <https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354>\
**Category:** End Devices (Nodes)\
**Tags:** gateways, dragino, end-devices\
**Created:** [January 15, 2024, 3:51pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354 "2024-01-15T15:51:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasalamol](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@sasalamol](https://www.thethingsnetwork.org/forum/u/sasalamol)\
**Post date:** [January 15, 2024, 3:51pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/1 "2024-01-15T15:51:41Z")

</div>

I am trying to connect my end device (LA66 LoRaWAN Shield) to The Things Network. The gateway that I ordered hasn’t arrived yet but I want to connect my end device via a public gateway, there is one in my university but I don’t know what to do next.  
I registered the LA66 manually and used the user guide and the arduino scripts from the dragino website. But I don’t see a join connect message it always gives the timeout message as the output. What are the steps to connect a LA66 to TTN?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [January 15, 2024, 7:32pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/2 "2024-01-15T19:32:48Z")

</div>

> [@sasalamol](#):
>
> What are the steps to connect a LA66 to TTN?

Sounds like you’ve followed the instructions, if there is a Join Accept in the device console then the gateway heard the Join Request but your device didn’t hear the Join Accept , if not, then either you are out of range or there is an issue with the credentials.

Per forum search, mostly you need access to a gateway console which is normally via owning a gateway to be able to debug a setup. The university may provide read-only access to gateway console if they are enlightened enough.

---

<div class="post-metadata">

**Author:** ![sasalamol](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@sasalamol](https://www.thethingsnetwork.org/forum/u/sasalamol)\
**Post date:** [January 15, 2024, 11:46pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/3 "2024-01-15T23:46:39Z")

</div>

Thanks for the quick response,  
The distance between me and the gateway is only 550m. How can I be sure if I am in the range? On the TTN console when I go to the gateways tab I get the “No items found” string. Do I have to do anything about my uni’s gateway? (Gateway ID: ucc-g26-gw) or the end device should automatically connect to the nearest gateway?

As for the end device registration  
I am using

- the Europe 863-870 MHz (SF12 for RX2) frequency plan,
- the LoRaWAN Specification 1.0.3 version
- OTA activation mode
- the response values that I got from the AT+CFG command for my credentials  
JoinEUI = AT+APPEUI  
DevEUI = AT+DEUI  
AppKey = AT+APPSKEY

Finally I upload the Join-TTN-network.ino file into the arduino than wait for the connection and get the following logs.  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/4/34dda16f6ab07537369bdb01edb7778600617195.png)  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/b/6/b66bbe2b21796a52cd6c49fdd6e474d9ec1530fc.png)  
Please let me know If there is something I am missing or doing wrong.

---

<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 16, 2024, 12:21am UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/4 "2024-01-16T00:21:30Z")

</div>

> [@sasalamol](#):
>
> The distance between me and the gateway is only 550m

“Only” in this case is a subjective term!

> [@sasalamol](#):
>
> How can I be sure if I am in the range?

Without a bit more detail on your location you can’t!

IIRC the Cork Western Campus is set very low in the (north) Lee valley, so how high the GW is mounted in the college building will have a big impact on range due to local topology. To the south the ground rises to around 30-40m and if you are up on top, even if just ~500m away you may not see the GW. Say if over around the Glasheen Road Denroches Cross or towards the Lough. To the north its even worse (higher) around Hollyhill, Knocknaheeny or Garanabraher!

The last time I was in Cork for LoRa tests (early days with LW admittedly) I had a test GW & beaconing Tx’rs set up along the Western road (forget exact location) and could successfully see some Tx’s latterally out west along the N22 towards MTU & Carrigrohan(?) and east in towards the Centre and close to South Mall area as it was limited by building clutter rather than topology. A drive along the South Ring road saw zip! ☹

> [@sasalamol](#):
>
> the Europe 863-870 MHz (SF12 for RX2) frequency plan,

Why not the recomended RX9 on SF9??? (Most likely used by the GW, a Laird RG186 IIRC) if on TTN!)

Are you doing the IoT Module on the CC MSc course? If so forgive the volunteers if we dont step up and do too much of your homework for you! 😉

Double and treble check you have entered correct credentials (and if necessary in corrrect LSB/MSB order etc.)

Take your set up into the Lee Valley and get with say 50-150m of host building and try again 😉

> [@sasalamol](#):
>
> On the TTN console when I go to the gateways tab

This will only show GW’s that you own or have collaboration rights to - you wont see 3rd party GW’s listed unless they have made you a collaborator and shared with you!

---

<div class="post-metadata">

**Author:** ![Johan\_Scheepers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/johan_scheepers/32/46550_2.png) [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Post date:** [January 16, 2024, 6:32am UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/5 "2024-01-16T06:32:24Z")

</div>

> [@sasalamol](#):
>
> ucc-g26-gw

This gateway are registered as a indoor gateway, if it is the coverage will be more challenging.

---

<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:** [January 16, 2024, 8:40am UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/6 "2024-01-16T08:40:27Z")

</div>

> [@sasalamol](#):
>
> AppKey = AT+APPSKEY

That is the Session key. For OTAA you need to use the APPKEY.

---

<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 16, 2024, 11:07am UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/7 "2024-01-16T11:07:32Z")

</div>

> [@Johan\_Scheepers](#):
>
> This gateway are registered as a indoor gateway, if it is the coverage will be more challenging.

Exactly :- Hence this comment to highlight:

> [@Jeff-UK](#):
>
> a Laird RG186 IIRC

Though they have external ant connections for LW and WiFi Ants and I have several where unit (as poor IP Rating) is indoors/sheltered but ant on short feeder cable is actually outdoor, and solar rigs where GW in a 2nd box to protect, in the case of CC I think truely indoor set up - to support a teaching resource IIRC.

---

<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 16, 2024, 11:11am UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/8 "2024-01-16T11:11:02Z")

</div>

Jac’s feeling generous! 😉

> [@Jeff-UK](#):
>
> Are you doing the IoT Module on the CC MSc course? If so forgive the volunteers if we dont step up and do too much of your homework for you! 😉
> 
> Double and treble check you have entered correct credentials

🎁

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [January 16, 2024, 12:49pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/9 "2024-01-16T12:49:02Z")

</div>

> [@sasalamol](#):
>
> How can I be sure if I am in the range?

You get a response in the gateway log - there are too many other factors involved with RF reception.

> [@sasalamol](#):
>
> On the TTN console when I go to the gateways tab I get the “No items found” string. Do I have to do anything about my uni’s gateway?

This:

> [@descartes](#):
>
> The university may provide read-only access to gateway console if they are enlightened enough.

> [@sasalamol](#):
>
> or the end device should automatically connect to the nearest gateway?

LoRaWAN is not WiFi, nothing connects to the gateway, devices transmit, gateways listen, if the RF arrives in the correct format it gets sent to the LNS. If the device is registered with the LNS, it sends back the Join Accept. RF just propagates, gateways doesn’t know where the others are so there is no concept of “nearest gateway” - any in range will hear.

> [@sasalamol](#):
>
> get the following logs.

Please do not post anything that you can copy & paste as text as anything other than text, formatted using the \</\> tool.

I don’t think you are doing anything particularly wrong beyond not owing a gateway or access to a nearby gateway console - the serial console looks OK, what you can’t tell is if a gateway heard the transmission which, when you do have access to a gateway console, you’ll be able to tell instantly.

Did you ask about console access?

You could try moving closer to the gateway’s location. But when you get your own gateway, ensure it’s 5m & a brick wall seperation as it is possible to overload the RF circuits.

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [January 16, 2024, 12:59pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/10 "2024-01-16T12:59:35Z")

</div>

> [@Jeff-UK](#):
>
> in the case of CC I think truely indoor set up - to support a teaching resource IIRC.

Which only goes to prove how unimaginative these places are - if you run an IoT MSc course, why not have an outdoor gateway in a favourable position with read-only access to the console for the students. And perhaps a link the Learning section that is at the top of every one of these pages (hint to the OP).

---

<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 16, 2024, 2:47pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/11 "2024-01-16T14:47:07Z")

</div>

@sasalamol

> [@descartes](#):
>
> don’t think you are doing anything particularly wrong

Possibly - apart from this:-

> [@kersing](#):
>
> > [@sasalamol](#):
> >
> > AppKey = AT+APPSKEY
> 
> That is the Session key. For OTAA you need to use the APPKEY.

Hence

> [@Jeff-UK](#):
>
> Double and treble check you have entered correct credentials

Rest may be fine but based on a limited sample of info 🤔

---

<div class="post-metadata">

**Author:** ![sasalamol](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/c4cdca/32.png) [@sasalamol](https://www.thethingsnetwork.org/forum/u/sasalamol)\
**Post date:** [January 17, 2024, 6:42pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/12 "2024-01-17T18:42:12Z")

</div>

After trying everything, I changed the shield with a different LA66 and it connected directly!

Thank you all.

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [January 18, 2024, 6:42pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-la66-shield-cannot-connect-to-ttn/66354/13 "2024-01-18T18:42:34Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
