Dear TTN-fellows,
my RAK831 module has been working fine for a couple of months since yesterday when I plugged out the internet (I have done that a couple of times). The RPI 3B+ is fine, I can connect to it via putty, it has internet access. I have tried readding the gateway and followed the most recent installation guide:
I have received following error msg, can I check whether the module is broken?:
pi@ttn-gateway:~/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS $ sudo ./install.sh
/home/pi/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS/lora /home/pi/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS
The Things Network Gateway installer
Version master
Gateway configuration:
Detected EUI ASDF from eth0
Host name [rak-gateway]:
Latitude [0]:
Longitude [0]:
Altitude [0]:
Installing dependencies…
Reading package lists… 0%
Reading package lists… Done
Building dependency tree
Reading state information… Done
dialog is already the newest version (1.3-20190211-1).
git is already the newest version (1:2.20.1-2).
minicom is already the newest version (2.7.1-1).
The following package was automatically installed and is no longer required:
rpi.gpio-common
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
/opt/ttn-gateway /home/pi/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS/lora
/opt/ttn-gateway/lora_gateway /opt/ttn-gateway /home/pi/RAK2245-RAK831-LoRaGateway-RPi-Raspbian-OS/lora
make all -e -C libloragw
make[1]: Entering directory ‘/opt/ttn-gateway/lora_gateway/libloragw’
*** Checking libloragw library configuration ***
Release version : 3.1.0
SPI interface : Linux native SPI driver
*** Configuration seems ok ***
gcc -c -O2 -Wall -Wextra -std=c99 -Iinc -I. src/loragw_hal.c -o obj/loragw_hal.o
gcc -c -O2 -Wall -Wextra -std=c99 -Iinc -I. src/loragw_gps.c -o obj/loragw_gps.o
gcc -c -O2 -Wall -Wextra -std=c99 -Iinc -I. src/loragw_reg.c -o obj/loragw_reg.o
gcc -c -O2 -Wall -Wextra -std=c99 -Iinc -I. src/loragw_spi.native.c -o obj/loragw_spi.o
src/loragw_spi.native.c:56: warning: “SPI_SPEED” redefined
#define SPI_SPEED 2000000
In file included from inc/config.h:11,
from inc/loragw_spi.h:29,
from src/loragw_spi.native.c:34:
inc/imst_rpi.h:15: note: this is the location of the previous definition
#define SPI_SPEED 8000000
src/loragw_spi.native.c:164:5: error: conflicting types for ‘lgw_spi_w’
int lgw_spi_w(void *spi_target, uint8_t spi_mux_mode, uint8_t spi_mux_target, uint8_t address, uint8_t data) {
^~~~~~~~~
In file included from src/loragw_spi.native.c:34:
inc/loragw_spi.h:64:5: note: previous declaration of ‘lgw_spi_w’ was here
int lgw_spi_w(void *spi_target, uint8_t address, uint8_t data);
^~~~~~~~~
src/loragw_spi.native.c: In function ‘lgw_spi_w’:
src/loragw_spi.native.c:180:25: error: ‘LGW_SPI_MUX_MODE1’ undeclared (first use in this function); did you mean ‘LGW_SPI_ERROR’?
if (spi_mux_mode == LGW_SPI_MUX_MODE1) {
^~~~~~~~~~~~~~~~~
LGW_SPI_ERROR
src/loragw_spi.native.c:180:25: note: each undeclared identifier is reported only once for each function it appears in
src/loragw_spi.native.c: At top level:
src/loragw_spi.native.c:213:5: error: conflicting types for ‘lgw_spi_r’
int lgw_spi_r(void *spi_target, uint8_t spi_mux_mode, uint8_t spi_mux_target, uint8_t address, uint8_t *data) {
^~~~~~~~~
In file included from src/loragw_spi.native.c:34:
inc/loragw_spi.h:73:5: note: previous declaration of ‘lgw_spi_r’ was here
int lgw_spi_r(void *spi_target, uint8_t address, uint8_t *data);
^~~~~~~~~
src/loragw_spi.native.c: In function ‘lgw_spi_r’:
src/loragw_spi.native.c:231:25: error: ‘LGW_SPI_MUX_MODE1’ undeclared (first use in this function); did you mean ‘LGW_SPI_ERROR’?
if (spi_mux_mode == LGW_SPI_MUX_MODE1) {
^~~~~~~~~~~~~~~~~
LGW_SPI_ERROR
src/loragw_spi.native.c: At top level:
src/loragw_spi.native.c:264:5: error: conflicting types for ‘lgw_spi_wb’
int lgw_spi_wb(void *spi_target, uint8_t spi_mux_mode, uint8_t spi_mux_target, uint8_t address, uint8_t *data, uint16_t size) {
^~~~~~~~~~
In file included from src/loragw_spi.native.c:34:
inc/loragw_spi.h:83:5: note: previous declaration of ‘lgw_spi_wb’ was here
int lgw_spi_wb(void *spi_target, uint8_t address, uint8_t *data, uint16_t size);
^~~~~~~~~~
src/loragw_spi.native.c: In function ‘lgw_spi_wb’:
src/loragw_spi.native.c:287:25: error: ‘LGW_SPI_MUX_MODE1’ undeclared (first use in this function); did you mean ‘LGW_SPI_ERROR’?
if (spi_mux_mode == LGW_SPI_MUX_MODE1) {
^~~~~~~~~~~~~~~~~
LGW_SPI_ERROR
src/loragw_spi.native.c: At top level:
src/loragw_spi.native.c:326:5: error: conflicting types for ‘lgw_spi_rb’
int lgw_spi_rb(void *spi_target, uint8_t spi_mux_mode, uint8_t spi_mux_target, uint8_t address, uint8_t *data, uint16_t size) {
^~~~~~~~~~
In file included from src/loragw_spi.native.c:34:
inc/loragw_spi.h:93:5: note: previous declaration of ‘lgw_spi_rb’ was here
int lgw_spi_rb(void *spi_target, uint8_t address, uint8_t *data, uint16_t size);
^~~~~~~~~~
src/loragw_spi.native.c: In function ‘lgw_spi_rb’:
src/loragw_spi.native.c:349:25: error: ‘LGW_SPI_MUX_MODE1’ undeclared (first use in this function); did you mean ‘LGW_SPI_ERROR’?
if (spi_mux_mode == LGW_SPI_MUX_MODE1) {
^~~~~~~~~~~~~~~~~
LGW_SPI_ERROR
make[1]: *** [Makefile:90: obj/loragw_spi.o] Error 1
make[1]: Leaving directory ‘/opt/ttn-gateway/lora_gateway/libloragw’
make: *** [Makefile:10: all] Error 2