Hello!
I have a Pi Supply LoRa Gateway HAT 915MHz (model is a RAK2247 HAT), and followed this guide: https://www.balena.io/blog/deploy-a-basics-station-lora-gateway-with-ttn-and-balena/
I have changed the specifications to comply with the correct reset pins based off specifications:
However, I get the following error:
12.07.22 17:19:19 (-0700) <basicstation> Gateway EUI: e45f01fffe677a92
12.07.22 17:19:20 (-0700) <basicstation> Using MODEL: SX1301
12.07.22 17:19:20 (-0700) <basicstation> Server: wss://nam1.cloud.thethings.network:8887
12.07.22 17:19:20 (-0700) <basicstation> Resetting gateway concentrator on GPIO 22
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.296 [SYS:INFO] findDefaultEui -> protoEuiSrc /sys/class/net/wlan0/address - protoEUI 251096696584851
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Logging : stderr (maxsize=10000000, rotate=3)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Station Ver : 2.0.5(rpi/std) 2022-07-06 19:21:43
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Package Ver : 1.0.0
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] proto EUI(x) : 0:e45f:167:7a93 (/sys/class/net/wlan0/address)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] prefix EUI : ::1 (builtin)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Station EUI : e45f:1ff:fe67:7a93
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Station home: ./ (builtin)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:INFO] Station temp: /var/tmp/ (builtin)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.298 [SYS:WARN] Station in NO-CUPS mode
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.500 [TCE:INFO] Starting TC engine
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.502 [any:INFO] ./tc.trust:
12.07.22 17:19:23 (-0700) <basicstation> cert. version : 3
12.07.22 17:19:23 (-0700) <basicstation> serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
12.07.22 17:19:23 (-0700) <basicstation> issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
12.07.22 17:19:23 (-0700) <basicstation> subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
12.07.22 17:19:23 (-0700) <basicstation> issued on : 2000-09-30 21:12:19
12.07.22 17:19:23 (-0700) <basicstation> expires on : 2021-09-30 14:01:15
12.07.22 17:19:23 (-0700) <basicstation> signed using : RSA with SHA1
12.07.22 17:19:23 (-0700) <basicstation> RSA key size : 2048 bits
12.07.22 17:19:23 (-0700) <basicstation> basic constraints : CA=true
12.07.22 17:19:23 (-0700) <basicstation> key usage : Key Cert Sign, CRL Sign
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.502 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.561 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.782 [TCE:ERRO] Infos error: ::0 Failed to fetch gateway: error:pkg/gatewayserver:gateway_eui_not_registered (gateway EUI `E45F01FFFE677A93` is not registered)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.782 [AIO:DEBU] [3] ws_close reason=1000
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.782 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.782 [AIO:DEBU] [3] WS connection shutdown...
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.783 [TCE:INFO] INFOS reconnect backoff 0s (retry 0)
12.07.22 17:19:23 (-0700) <basicstation> 2022-07-13 00:19:23.784 [any:INFO] ./tc.trust:
A balena team member posted a solution here by deploying this repo. Using the same variables and redeploying with the suggested repo took care of the incorrect EUI “not registered”, but I still came across an issue:
2.07.22 17:32:19 (-0700) <basicstation> GATEWAY_EUI: E45F01FFFE677A92
12.07.22 17:32:20 (-0700) <basicstation> parse error: Invalid numeric literal at EOF at line 1, column 12
12.07.22 17:32:20 (-0700) <basicstation>
12.07.22 17:32:20 (-0700) <basicstation> ------------------------------------------------------------------
12.07.22 17:32:20 (-0700) <basicstation> Protocol
12.07.22 17:32:20 (-0700) <basicstation> ------------------------------------------------------------------
12.07.22 17:32:20 (-0700) <basicstation> Mode: DYNAMIC
12.07.22 17:32:20 (-0700) <basicstation> Protocol: LNS
12.07.22 17:32:20 (-0700) <basicstation> LNS Server: wss://nam1.cloud.thethings.network:8887
12.07.22 17:32:20 (-0700) <basicstation> Main NIC: eth0
12.07.22 17:32:20 (-0700) <basicstation> Gateway EUI: E45F01FFFE677A92
12.07.22 17:32:20 (-0700) <basicstation> ------------------------------------------------------------------
12.07.22 17:32:20 (-0700) <basicstation> Radio
12.07.22 17:32:20 (-0700) <basicstation> ------------------------------------------------------------------
12.07.22 17:32:20 (-0700) <basicstation> Model: SX1301
12.07.22 17:32:20 (-0700) <basicstation> Concentrator: SX1301
12.07.22 17:32:20 (-0700) <basicstation> Design: V2
12.07.22 17:32:20 (-0700) <basicstation> Radio Device: /dev/spidev0.0
12.07.22 17:32:20 (-0700) <basicstation> Interface: SPI
12.07.22 17:32:20 (-0700) <basicstation> SPI Speed: 2000000
12.07.22 17:32:20 (-0700) <basicstation> Reset GPIO: 22
12.07.22 17:32:20 (-0700) <basicstation> Enable GPIO: 0
12.07.22 17:32:20 (-0700) <basicstation> ------------------------------------------------------------------
12.07.22 17:32:20 (-0700) <basicstation>
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.003 [SYS:INFO] Logging : stderr (maxsize=10000000, rotate=3)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.004 [SYS:INFO] Station Ver : 2.0.6(rpi/stdn) 2022-06-17 14:47:13
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.004 [SYS:INFO] Package Ver : (null)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.004 [SYS:INFO] mbedTLS Ver : 2.28.0
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.005 [SYS:INFO] proto EUI : e45f:1ff:fe67:7a92 (station.conf)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.005 [SYS:INFO] prefix EUI : ::1 (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.005 [SYS:INFO] Station EUI : e45f:1ff:fe67:7a92
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.005 [SYS:INFO] Station home: ./ (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.006 [SYS:INFO] Station temp: /var/tmp/ (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.006 [SYS:WARN] Station in NO-CUPS mode
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.012 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.012 [RAL:DEBU] argv[1]: <-S>
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.012 [RAL:DEBU] argv[2]: <(null)>
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.017 [S00:INFO] Logging : stderr (maxsize=10000000, rotate=3)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.017 [S00:INFO] Station Ver : 2.0.6(rpi/stdn) 2022-06-17 14:47:13
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.018 [S00:INFO] Package Ver : (null)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.018 [S00:INFO] mbedTLS Ver : 2.28.0
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.019 [S00:INFO] proto EUI : e45f:1ff:fe67:7a92 (station.conf)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.019 [S00:INFO] prefix EUI : ::1 (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.020 [S00:INFO] Station EUI : e45f:1ff:fe67:7a92
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.020 [S00:INFO] Station home: ./ (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.021 [S00:INFO] Station temp: /var/tmp/ (builtin)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.021 [S00:INFO] Station slave: 0
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.021 [S00:WARN] Station in NO-CUPS mode
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.022 [S00:INFO] Slave LGW (0) - started.
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.012 [RAL:INFO] Master has started slave: pid=46 idx=0 (attempt 1)
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.211 [TCE:INFO] Starting TC engine
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.280 [AIO:INFO] ./tc.trust:
12.07.22 17:32:21 (-0700) <basicstation> cert. version : 3
12.07.22 17:32:21 (-0700) <basicstation> serial number : 04:00:00:00:00:01:15:4B:5A:C3:94
12.07.22 17:32:21 (-0700) <basicstation> issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
12.07.22 17:32:21 (-0700) <basicstation> subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
12.07.22 17:32:21 (-0700) <basicstation> issued on : 1998-09-01 12:00:00
12.07.22 17:32:21 (-0700) <basicstation> expires on : 2028-01-28 12:00:00
12.07.22 17:32:21 (-0700) <basicstation> signed using : RSA with SHA1
12.07.22 17:32:21 (-0700) <basicstation> RSA key size : 2048 bits
12.07.22 17:32:21 (-0700) <basicstation> basic constraints : CA=true
12.07.22 17:32:21 (-0700) <basicstation> key usage : Key Cert Sign, CRL Sign
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.280 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.644 [TCE:INFO] Infos: e45f:1ff:fe67:7a92 muxs-::0 wss://nam1.cloud.thethings.network:8887/traffic/eui-E45F01FFFE677A92
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.645 [AIO:DEBU] [4] ws_close reason=1000
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.645 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.645 [AIO:DEBU] [4] WS connection shutdown...
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.711 [AIO:INFO] ./tc.trust:
12.07.22 17:32:21 (-0700) <basicstation> cert. version : 3
12.07.22 17:32:21 (-0700) <basicstation> serial number : 04:00:00:00:00:01:15:4B:5A:C3:94
12.07.22 17:32:21 (-0700) <basicstation> issuer name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
12.07.22 17:32:21 (-0700) <basicstation> subject name : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
12.07.22 17:32:21 (-0700) <basicstation> issued on : 1998-09-01 12:00:00
12.07.22 17:32:21 (-0700) <basicstation> expires on : 2028-01-28 12:00:00
12.07.22 17:32:21 (-0700) <basicstation> signed using : RSA with SHA1
12.07.22 17:32:21 (-0700) <basicstation> RSA key size : 2048 bits
12.07.22 17:32:21 (-0700) <basicstation> basic constraints : CA=true
12.07.22 17:32:21 (-0700) <basicstation> key usage : Key Cert Sign, CRL Sign
12.07.22 17:32:21 (-0700) <basicstation> 2022-07-13 00:32:21.711 [TCE:VERB] Connecting to MUXS...
12.07.22 17:32:22 (-0700) <basicstation> 2022-07-13 00:32:22.076 [AIO:ERRO] [4] WS upgrade failed with HTTP status code: 400
12.07.22 17:32:22 (-0700) <basicstation> 2022-07-13 00:32:22.076 [AIO:DEBU] [4] WS connection shutdown...
12.07.22 17:32:22 (-0700) <basicstation> 2022-07-13 00:32:22.076 [TCE:VERB] Connection to MUXS closed in state 3
12.07.22 17:32:22 (-0700) <basicstation> 2022-07-13 00:32:22.076 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
Both deployment of repos showed the device online in Balena but “disconnected” on TTN. I am new to using Balena OS along with TTN (I have mostly been using LoRa P2P) so any advice is definitely appreciated!