I am a newbie of buiilding Lorawan gateway. I tried to use RAK2245 with Raspberry pi 3 to build a gateway.
I have followed the guides below, and did a search on the forums and I saw some others who had the same problem as me. I tried their solution. For example, I’ve tried to create the API key for several times, and make sure when I copied them it’s correct. But it still didn’t work.
If I understand the part where the flow breaks is at The Things Stack Console where the device should show up - right? You are adding the key as TC_KEY to env variables.
Hi @nitish, thank for your reply. Yes, the model is SX1301. I also double checked the API Key, and it’s the correct format as you mendtioned. But still couldn’t connect to the TTN.
Hi @mpous, thanks for sharing this repo. I have tired the instructions in this repo.
Yes, the EUI on the balenaCloud tags is different than the one on the logs. I’ve registered EUI on the things stack and added the API Key. But unfortuantly I couldn’t connect the gateway to the TTN, and I don’t know the reason, I’ve followed evey steps…
Hi @mpous , yes, I have tried. But unfortunately I couldn’t make it work. I also deleted the whole fleet on Balena cloud and redo it again, however I still got the random EUI you mentioned above. I was wondering is there any update of solving this issues?
Hi Marc, @mpous,
I encounter the same problem and also tried the repo of xoseperez. I am not sure wether or not this is helpful, but just wanted to let you know. I carefully took all the steps required but to no avail.
@ronb1963 In TTN v3 try granting all API rights when you create your API key.
Then, take the API back to balena with TC_KEY variable, but ALSO copy that API key like in the image in the LoRa Basics Station LNS Authentication Key field. I have no idea why TTN can’t just do this automatically, but if using Basicstation it is required.
I have created a new API key and changed the TC_KEY and the GW_KEY variables and also the LoRa BasicStation LNS Authentication Key in the TTN v3 settings. The MODEL variable in BalenaCloud is set to RAK2245 because Marc indicated that, but I am not sure if that is correct. Unfortunately still no connection in TTN.
It would be helpful to see the logs from the moment basicstation starts up. Perhaps you can enable persistent logging on your device to capture them to disk and then share those here. Would only need the first minute or so after the container starts running.
From what you’ve posted it’s hard to see what is causing the problem. For example, I’ve seen basicstation connection failures because:
The gateway EUI is not matching what is set in your LNS (ttn in this case)
The TC_KEY is incorrect on the gateway
The TC_KEY is correct on the gateway, but not configured properly in TTN
Basicstation cannot open the hardware connection to the concentrator
The TC_URI (or cups uri) is incorrect on the gateway