PG1302 on Raspberry PI4 as Basic Station

noxious
Sat, 28 Jan 2023 15:22:56 +0000

Okay understood, but to set up this as a Basic Station.
I tried to follow the approach that has been provided by: LoRa Basics™ Station | DEVELOPER PORTAL

But when I try to execute the three steps as example:

Step 1 - clone repo:

git clone https://github.com/lorabasics/basicstation.git

Step 2 - compile the station binary:

cd basicstation
make platform=rpi variant=std

Step 3 - run example configuration

cd examples/live-s2.sm.tc
RADIODEV=/dev/spidev0.0 ../../build-rpi-std/bin/station

I’m getting the following error:

2023-01-28 15:11:51.971 [TCE:VERB] Connecting to MUXS...
2023-01-28 15:11:52.302 [TCE:VERB] Connected to MUXS.
2023-01-28 15:11:52.302 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2023-01-28 15:11:52.302 [S2E:WARN] Unknown field in router_config - ignored: config (0xF7A3E35F)
2023-01-28 15:11:52.302 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2023-01-28 15:11:52.342 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2023-01-28 15:11:52.348 [RAL:INFO] [LGW lgw1] clksrc=1 lorawan_public=1
2023-01-28 15:11:52.348 [RAL:INFO]  RX/TX RF0:    868.3MHz rssi_offset=-166.0 type=2 tx_notch_freq=0
2023-01-28 15:11:52.348 [RAL:INFO]        RF1: disabled
2023-01-28 15:11:52.348 [RAL:INFO]  [mSF]   0:    868.1MHz rf=0 freq=-200.0 datarate=126
2023-01-28 15:11:52.348 [RAL:INFO]  [mSF]   1:    868.3MHz rf=0 freq=  +0.0 datarate=126
2023-01-28 15:11:52.348 [RAL:INFO]  [mSF]   2:    868.5MHz rf=0 freq=+200.0 datarate=126
2023-01-28 15:11:52.348 [RAL:INFO]  channel 3 disabled
2023-01-28 15:11:52.348 [RAL:INFO]  channel 4 disabled
2023-01-28 15:11:52.348 [RAL:INFO]  channel 5 disabled
2023-01-28 15:11:52.349 [RAL:INFO]  channel 6 disabled
2023-01-28 15:11:52.349 [RAL:INFO]  channel 7 disabled
2023-01-28 15:11:52.349 [RAL:INFO]  channel 8 disabled
2023-01-28 15:11:52.349 [RAL:INFO]  channel 9 disabled
2023-01-28 15:11:52.349 [RAL:INFO] SX130x LBT not enabled
2023-01-28 15:11:52.349 [RAL:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
2023-01-28 15:11:52.349 [HAL:INFO] [lgw_spi_open:101] Setting SPI speed to 8000000
2023-01-28 15:11:52.349 [HAL:INFO] [lgw_spi_open:135] Note: SPI port opened and configured ok
2023-01-28 15:11:52.349 [HAL:ERRO] [lgw_start:742] FAIL TO CONNECT BOARD
2023-01-28 15:11:52.349 [RAL:ERRO] Concentrator start failed: lgw_start
2023-01-28 15:11:52.349 [RAL:ERRO] ral_config failed with status 0x08
2023-01-28 15:11:52.349 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2023-01-28 15:11:52.349 [AIO:DEBU] [3] ws_close reason=1000
2023-01-28 15:11:52.349 [AIO:DEBU] Echoing close - reason=1000
2023-01-28 15:11:52.373 [AIO:DEBU] [3|WS] Server sent close: reason=1000
2023-01-28 15:11:52.373 [AIO:DEBU] [3] WS connection shutdown...
2023-01-28 15:11:52.373 [TCE:VERB] Connection to MUXS closed in state -1
2023-01-28 15:11:52.373 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2023-01-28 15:12:02.374 [HAL:INFO] [lgw_spi_close:159] Note: SPI port closed

Am I heading towards the right setup? As the dragino board has a SX1302 chip I’m not quite sure if this example leads me to the right setup. Can you guide me here to an example / tutorial where I’m able to really connect proper towards to TTN? I tried as well before the example of this: LoRa Gateway Setup for RHF0M301 Raspberry Pi with Basic Station – Tutorials of Cytron Technologies
But I’m getting the same issue and the connection is always getting disconnected in the ttn.