Added RAK833 RPi HAT GW to V3 - remains in disconnected status

Agree. For whole application in Balena I have the same settings (except for iC880A, which has overriden GW_RESET_GPIO with 25):
image

One open question is, should this be checked and/or fulfilled:

image

Hi, followed by the “Basicstation” repository guide with a board “IC880A” and a RAPSBERRY PI3 and in the TTN V3 console comes out as disconnected. Apart from what appears in the guide would have to do something else?

flash_off
08:11:32
Disconnect gateway
network_check
08:11:32
Receive gateway status

Versions
firmware"1.0.0"package"1.0.0"platform"rpi - Firmware 1.0.0 - Protocol 2"station"2.0.5(rpi/std)"

flash_on
08:11:32
Connect gateway

This is what live data responds to and the following one is the balena logs.

2021-07-26 06:26:45.533 [RAL:VERB] SX130x LBT not enabled
main 2021-07-26 06:26:45.533 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
main 2021-07-26 06:26:45.534 [RAL:ERRO] Concentrator start failed: lgw_start
main 2021-07-26 06:26:45.534 [RAL:ERRO] ral_config failed with status 0x08
main 2021-07-26 06:26:45.534 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
main 2021-07-26 06:26:45.534 [AIO:DEBU] [3] ws_close reason=1000
main 2021-07-26 06:26:45.534 [AIO:DEBU] Echoing close - reason=1000
main 2021-07-26 06:26:45.570 [AIO:DEBU] [3|WS] Server sent close: reason=1000
main 2021-07-26 06:26:45.570 [AIO:DEBU] [3] WS connection shutdown...
main 2021-07-26 06:26:45.570 [TCE:VERB] Connection to MUXS closed in state -1
main 2021-07-26 06:26:45.570 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
main 2021-07-26 06:26:55.572 [any:INFO] ./tc.trust:

Hi, for Pi there is a some software created by @kersing that should do the job - he created gateway software way back in time - the forum search should track it down, it was in the last week or so if I recall.

OK, thank you very much, the question is that i dont know where to start looking. For the moment i will search @kersing to see if there’s luck. If I manage to fix it or find the software, I’ll leave the link attached to this mensage.

Scroll up?? When I get on a desktop computer I’ll be better placed to find & copy & paste a link.

This link?

Ta Dah!

Thank you very much. Amazing flawless assistance. :grin:

Hi, I follow Kersing’s tutorial as you told me but now it gives me another mistake, apparently I have the gw_key and gw_id badly but I put them according to the documentation. What could the problem be?

Anyway, on the gw_key I put “API KEY secret key” and on the gw_id “gateway ID.”

BalenaCloud log error
HTTP Error 404: Not Found
main Unable to fetch configuration from TTN. Is the TTN API reachable from gateway? Are your GW_ID and GW_KEY correct? Retry in 30s

i did try to ping the gateway server address but it does not comunicate with any on of the devices in my network.

Do you mean ping the Gateway (on your network) or ping the Network Server the Gateway is pointed to (in the TTN Backend?

If latter then do not expect a ping response. The TTI/TTN infrastructure is behind load balancers and will not respond to pings…

This means it reached a server and was told the file wasn’t to be found, so it’s not even got to trying to use the keys yet.

Maybe review the URL that you are using?

ok so it will not respond. Thank you for the information

I don’t understand which url you are speaking about. Because the bug gives me in the BalenaCloud log.

Hi guys, just a hint - I had the same problem a couple of days ago, with the log message “*Unable to fetch configuration from TTN. Is the TTN API reachable from gateway? Are your GW_ID and GW_KEY correct? Retry in 30s”.

I turned out that there is an error in the tutorial; in the first step under
“TRANSFERRING TTN GATEWAY SOFTWARE TO BALENACLOUD SO THAT IT MAY BE DOWNLOADED ON YOUR DEVICES” the link “https://github.com/jpmeijers/ttn-resin-gateway-rpi.git " is incorrect. In stead it should be " https://github.com/kersing/ttn-resin-gateway-rpi-1.git”. When I used that, it all went well.
regards,

2 Likes

oh, thank you very much. I add a new gateway

Hi everyone,
I have a very beginner question. I have installed a RAK833 HAT on a RPi3, I am now trying to configure and connect the gateway. There are two elements that I don’t find:

  1. the TTN Gateway Key (This is the Gateway Key from the TTN Console)
    → I don-t see any key in the console. Is this about the API key? Reading the posts above, it seems that this field is no more necessary, is that correct?

  2. the Gateway EUI
    → I don’t understand where I can get that EUI number.

Any help or advice would be very much appreciated.

Thanks,

lls

Take the RPi’s Network* MAC ID and buffer the middle order bytes with FFFE = MAC ab:cd:gh:ij:kl:mn then looks like ab:cd:gh:FF:FE:ij:kl:mn

  • For RPi’s supporting wired ENet such as yours use the Wired Enet MAC, for RPi0W use the WIFi MAC :slight_smile:

Fantastic! Thank you so much.

Finally, I got it right. It took me some time but it is now connected.

hello, i’m a student learning about gateway
can someone show me how to find out all available gateway in a city

Firstly, in future please use Forum search (top right) to find a more appropriate Forum Thread/Topic for your question vs dropping into one apparently at random!

Look at the Things Network Map and also try TTNMapper as they show ‘publicly displosed’ GW locations. If your town/city/region has a TTN community then you can also look at that Communities page to see approximate locations. Note not all GW’s are ‘public’ on these maps and may be hidden for various reasons, but if on TTN they will still be available to carry traffic if in range. So best option is get a Node (End Device), register it on TTN under an Application…and see what traffic comes through :slight_smile: If you look at the metadata, for any messages received for your device/application, it will list all the GW’s that were in range and received the message…

Recommend you read the available documentation if in doubt.