IMST Lite Gateway setup

No I’am changing it to 5 in the script, look on the first link.

You could actually try to reset the sx1301 with:

#! /bin/bash

# Reset iC880a PIN
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/export 
echo "out" > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/direction 
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "1"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value 
sleep 0.1  
echo "0"   > /sys/class/gpio/gpio$SX1301_RESET_BCM_PIN/value
sleep 0.1
echo "$SX1301_RESET_BCM_PIN"  > /sys/class/gpio/unexport 

I see there are some minor differences compared to /etc/init.d/sx1301-reset (which is based on

after some research i find out that my spi sends only zeros, tommorrow I will try with different rpi.

to check spi working properly:


compile it:
gcc -o spidev_test spidev_test.c
and run it:
./spidev_test -D /dev/spidev0.0 -v