pi@raspberry:~/sx1302_hal/bin $ sudo raspi-config nonint get_spi
1
pi@raspberry:~/sx1302_hal/bin $ ./chip_id
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: failed to start the gateway
pi@raspberry:~/sx1302_hal/bin $ ^C
pi@raspberry:~/sx1302_hal/bin $ sudo ./chip_id
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: failed to start the gateway
pi@raspberry:~/sx1302_hal/bin $ sudo ./test_loragw_com
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Beginning of test for loragw_com.c
Opening SPI communication interface
ERROR: failed to open COM device /dev/spidev0.0
pi@raspberry:~/sx1302_hal/bin $ ./boot -d /dev/ttyACM0
ERROR: failed to open COM port /dev/ttyACM0 - No such file or directory
ERROR: failed to open USB on /dev/ttyACM0
pi@raspberry:~/sx1302_hal/bin $ sudo ./boot -d /dev/ttyACM0
ERROR: failed to open COM port /dev/ttyACM0 - No such file or directory
ERROR: failed to open USB on /dev/ttyACM0
pi@raspberry:~/sx1302_hal/bin $ ./chip_id -d /dev/spidev0.0
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: failed to start the gateway
pi@raspberry:~/sx1302_hal/bin $ ./test_loragw_com_sx1261
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: Failed to connect to the concentrator using COM /dev/spidev0.0
pi@raspberry:~/sx1302_hal/bin $ ./test_loragw_com_sx1250
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: Failed to connect to the concentrator using COM /dev/spidev0.0
pi@raspberry:~/sx1302_hal/bin $ ./test_loragw_com_sx1261 -u -d /dev/ttyACM0
Opening USB communication interface
ERROR: failed to open COM port /dev/ttyACM0 - No such file or directory
ERROR: Failed to connect to the concentrator using COM /dev/ttyACM0
pi@raspberry:~/sx1302_hal/bin $ reset_lgw.sh stop
-bash: reset_lgw.sh: command not found
pi@raspberry:~/sx1302_hal/bin $ ./reset_lgw.sh stop
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
pi@raspberry:~/sx1302_hal/bin $ ./reset_lgw.sh start
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
pi@raspberry:~/sx1302_hal/bin $ spidev_test -D /dev/spidev0.0
-bash: spidev_test: command not found
pi@raspberry:~/sx1302_hal/bin $ spidev_test
-bash: spidev_test: command not found
pi@raspberry:~/sx1302_hal/bin $ ./reset_lgw.sh start
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
pi@raspberry:~/sx1302_hal/bin $ sudo ./chip_id
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: failed to start the gateway
pi@raspberry:~/sx1302_hal/bin $ sudo ./test_loragw_com
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Beginning of test for loragw_com.c
Opening SPI communication interface
ERROR: failed to open COM device /dev/spidev0.0
Hello,
Assuming that you have all the wiring and connection to GPIO done correctly:
First check would be if there is /dev/spidev0.0 device on your RPI. Simply navigate to /dev and list. SPI might be disabled from raspi-config, or maybe it is available as different device
Second concern: sometimes resetting SPI over shell script does not work (./reset_lgw.sh) try doing same with python script (it worked for me)