# RAK Gateway RAK7246 not connecting to TTN

**URL:** <https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320>\
**Category:** RAK Gateways\
**Created:** [August 18, 2020, 5:05pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320 "2020-08-18T17:05:28Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 5:05pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/1 "2020-08-18T17:05:28Z")

</div>

Hello. I Finally got my gateway in and attempted to get it connected to the TTN, but it doesn’t seem to be seen by the cloud. I setup the Gateway, rebooted it, and let it sit for about 45 mins, but nothing. The Gateway is on my network and is running.  
This is the info from the Gateway  
$ gateway-version  
Raspberry Pi Zero W Rev 1.1, OS “10 (buster)”, 4.19.75+.  
RAKWireless gateway RAK7246 version 4.2.0R install from firmware.  
Gateway ID: B827EBFFFEC9E57A.  
Looking at my account, it shows  
Gateway ID eui-b827ebfffec9e57a

Is there any way for me to look into the where the issue might be? I’ve tried searching around, but haven’t found anything that works yet.

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 5:09pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/2 "2020-08-18T17:09:02Z")

</div>

I did just fine this, so I am going to try it next (fingers crossed).

> **[RAK7258 TTN registeration not connected](https://forum.rakwireless.com/t/rak7258-ttn-registeration-not-connected/461)**
>
> Hi, I am new to lorawan. I have received a RAK7258 Gateway. Wired to my home router ethernet. Registered the gateway with the default settings to TTN. (registeration: EU868, checked box using UDP packet, ttn-router-eui) The status is “not...

---

<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:** [August 18, 2020, 5:38pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/3 "2020-08-18T17:38:54Z")

</div>

Do you have a LoRaWAN node running in range of the gateway?

What do you see in the packet forwarder logs of the gateway?

There’s relatively little in common between the RAK pi based gateways and the RAK7258

---

<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:** [August 18, 2020, 5:49pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/4 "2020-08-18T17:49:18Z")

</div>

> [@garengllc](#):
>
> but it doesn’t seem to be seen by the cloud.

Did you notice [this post?](https://www.thethingsnetwork.org/forum/t/console-showing-all-gateways-as-not-connected/39311) There seems to an issue with the console with regards to showing gateway status and statistics.

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 6:18pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/5 "2020-08-18T18:18:23Z")

</div>

I had misread the model on the link I posted, you are right, not much is similar in them.

I hadn’t seen your post, but that does sound like the same issues I am having, I’ll make sure to follow that thread.

---

<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:** [August 18, 2020, 6:45pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/6 "2020-08-18T18:45:55Z")

</div>

@garengllc, the 7246 is as simple as it seems following the instructions on the RAK website so it’s reasonable to assume you’ve done all the right things.

If you have a gateway, do you also have a device setup for TTN??

The best test is to watch the logs on the 7246 for incoming uplinks from your device that then appear on the application or device page on the TTN console.

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 6:58pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/7 "2020-08-18T18:58:45Z")

</div>

I am starting from scratch (hardware and knowledge wise), so I am sure I could be doing a few things better.

The 7246 is on my network and I can ssh onto it.

I have a board with the Microchop RN2903 module on it. It fires up and makes transmissions (uncnf) and I can see it on my scpecAn, so I know it is transmitting. I attempted to register the device, but I am not 100% confident that I did that right. The C code the micro is using only had three variables that seemed to pertain to this (he said to copy it from the TTN console):  
const char \*devAddr = “”;  
const char \*nwkSKey = “”;  
const char \*appSKey = “”;

I setup the first  
\*devAddr = “05060709”;

I am not really sure where I can grab the nwkSKey.

The appSKey confuses me also. I see where I can grab the appkey, but I think that is different from the app session key

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 7:00pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/8 "2020-08-18T19:00:57Z")

</div>

OK, TTN seems to be seeing my gateway now, so that is one problem solved. I didn’t do anything, so I am guessing that they fixed something on their end. My end nodes still aren’t being seen, so that is the next problem. I still feel like they aren’t setup properly somehow.

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 18, 2020, 7:05pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/9 "2020-08-18T19:05:42Z")

</div>

And just like that, I think data is flowing through. I am probably getting lucky as you can see this is with the wrong device ID (another one I previously setup), so I am not sure if I re-compile and load if I made other changes that will screw this up, but it at least shows that some level of things are working.

Thanks folks!  
 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/7/671705fa6c7ef4109bf90a03f3ee392ca8126923.png)

---

<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:** [August 18, 2020, 7:07pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/10 "2020-08-18T19:07:09Z")

</div>

> [@garengllc](#):
>
> I setup the first  
> \*devAddr = “05060709”;
> 
> I am not really sure where I can grab the nwkSKey.
> 
> The appSKey confuses me also. I see where I can grab the appkey, but I think that is different from the app session key

It absolutely won’t work without the keys - which will be on the page you setup the device. There’s a whole learn section that explains all the different setups:

[https://www.thethingsnetwork.org/docs/devices/registration.html](https://www.thethingsnetwork.org/docs/devices/registration.html)

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 19, 2020, 1:38am UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/11 "2020-08-19T01:38:05Z")

</div>

Thank you to everyone, I think I have things kind of working. What is odd to me is that I seem to lose A LOT of packets, is this normal? I have the end node and the gateway in my basement, and both have proper 910MHz antenna on them. I am obviously sending data a lot faster than I plan down the road, but even with sending stuff once every ~45s, I am missing a lot of transmissions.

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/f/b/fb13bfad66540391c6e50200e2ee502204246a68.png)

What would cause that? I tried to switch to confirmed (instead of uncomfirmed) mode, and that didn’t really seem to change much.

---

<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:** [August 19, 2020, 9:33am UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/12 "2020-08-19T09:33:28Z")

</div>

They may be too close and you are overloading the input stages of the gateway. Put one of them behind a good solid brick wall or put the gateway upstairs.

There’s really no need to spam the heck out the TTN infrastructure and the frequency of transmission is wholly unrepresentative of normal use - try doing normal and see what happens.

Confirmed mode will make things worse as there will be even more transmissions - it certainly won’t fill in the gaps, if the gateway doesn’t hear the uplink, it won’t confirm it.

Setup some debug output from your device, your gateway, the TTN console page for the gateway and another one for the device. And then trigger a send and see what happens. But please, turn off the fire hose of spam.

---

<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:** [August 19, 2020, 9:35am UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/13 "2020-08-19T09:35:20Z")

</div>

> [@garengllc](#):
>
> I have the end node and the gateway in my basement

Also

> [@garengllc](#):
>
> but even with sending stuff once every ~45s,

Make sure the node and gw isn’t too close…look to be \>3m pref \>5m apart and with some kind of absorber in between to avoid overloading front end and data spillage to adjacent channels which can confuse the baseband decoder and rf front end. Also if in a basement be aware that reflections and multi paths are something that LoRa can be quite resilient to where they will often kill legacy modulations and may make signal strength worse (too strong) close up.

Many LoRaWAN software stacks have built in duty cycle regulation implementations limiting txs if you breach duty cycle limits or dwell times… I believe the microchip modules do this though unsure of specifics for us version vs eu. Be aware of the TTN FUP even if not yet imposed (search forum).

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 19, 2020, 12:51pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/14 "2020-08-19T12:51:49Z")

</div>

I have the gateway separated a decent amount with a wall in between, but I will separate them more.

Good point on spamming the TTN, I didn’t think about it that way. I am sure the infrastructure wasn’t expecting that much information coming from a single gateway. I’ll dial that back this morning!!!

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 19, 2020, 12:53pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/15 "2020-08-19T12:53:45Z")

</div>

> [@Jeff-UK](#):
>
> Be aware of the TTN FUP even if not yet imposed (search forum).

Hmm, not sure what that is, I’ll look into that now (sounds like I don’t want to get on the bad side of it!). Thanks for the heads up.

---

<div class="post-metadata">

**Author:** ![garengllc](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/garengllc/32/25844_2.png) [@garengllc](https://www.thethingsnetwork.org/forum/u/garengllc)\
**Post date:** [August 19, 2020, 3:56pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/16 "2020-08-19T15:56:12Z")

</div>

> [@cslorabox](#):
>
> What do you see in the packet forwarder logs of the gateway?

Out of curiosity, where are those logs located? I’ve been searching for some to give me insight to what is going on, but haven’t found anything…

\<\>  
And just like that I found it. It looks like /var/log/syslog has a lot of what I need

---

<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:** [August 19, 2020, 4:51pm UTC](https://www.thethingsnetwork.org/forum/t/rak-gateway-rak7246-not-connecting-to-ttn/39320/17 "2020-08-19T16:51:44Z")

</div>

FUP = Fair Use Policy

Mostly it’s enforced by gentle encouragement not to batter a community resources / gateways with servers provided free of charge by TTI.
