Hi,
Please my gateway connects to TTI (LNS mode) but fails to start the radio. as shown below.
I also tried the following to fix it but still running into the same errors:
SPI is enabled on the Pi; /dev/spidev0.0 and /dev/spidev0.1 exist.
GPIO17 is used for RESET, GPIO18 is held HIGH as POWER_EN using gpioset
RESET_GPIO=0 is disabled inside the container (I perform resets manually).
The BasicStation container runs with privileged: true and has /dev/spidev0.1 mounted.
Frequency plan set to EU433 on TTI. beacuse am using RAK5146 433-435MHz
I’ve tried both SPI_DEVICE=/dev/spidev0.0 and /dev/spidev0.1; both yield chip version 0x00.
the docker-compose.yml file is shown below as well:
services:
basicstation:
dns:
- 8.8.8.8
- 1.1.1.1
extra_hosts: - “lns.asp.eu1.cloud.thethings.industries:52.212.223.226”
- “eu1.cloud.thethings.industries:52.212.223.226”
image: xoseperez/basicstation:latest
container_name: basicstation
restart: unless-stopped
privileged: true
network_mode: host # allows SPI and real EUI detection
environment:
MODEL: "SX1303" # RAK5146L uses SX1303 baseband
GATEWAY_EUI: "D83ADDFFFE690B42"
SPI_SPEED: 8000000
GW_RESET_GPIO: 17 # Reset pin used by RAK5146 Pi HAT (GPIO17)
TC_URI: "wss://lns.asp.eu1.cloud.thethings.industries:8887"
TC_KEY: "NSXS.NQ4ZJ63DVJBUNS7OLH62GIHEBMTGJGO3MVD3FUQ.JLA3PCNIA5RU6O64FQ7BFXI7GD27NYY6XQPEKEI53VFHLZFVE75A"
#CUPS_KEY: "NSXS.NQ4ZJ63DVJBUNS7OLH62GIHEBMTGJGO3MVD3FUQ.JLA3PCNIA5RU6O64FQ7BFXI7GD27NYY6XQPEKEI53VFHLZFVE75A"
GW_GPS: "false"
USE_CUPS: "0"
USE_LIBGPIOD: 1
REGION: "EU433"
TTS_USERNAME: "agrosense-project" # Often the application or gateway ID
#CUPS_URI: "https://cups.eu1.cloud.thethings.network:443"
# Optional CUPS (for remote management)
# CUPS_URI: "https://cups.eu1.cloud.thethings.network:443"
# CUPS_KEY: "NNSXS.YOUR_CUPS_API_KEY_HERE"
volumes:
- ./config:/app/config
devices:
- /dev/spidev0.0:/dev/spidev0.0
- /dev/spidev0.1:/dev/spidev0.1
- /dev/gpiomem:/dev/gpiomem

