I had the same issue. I believe it it something to do with echoing out pins. After so searching around and chatGPT help I found that changing the way the resent pins get set is what fixed it for me (avoid echoing).
This is my reset_lgw.sh code:
(I am using WM1302/SX1302 so no need for the SX1261 reset lines)
GNU nano 7.2
# Usage examples:
# ./reset_lgw.sh stop
# ./reset_lgw.sh start
# GPIO mapping has to be adapted with HW
#
SX1302_RESET_PIN=17
SX1302_POWER_EN_PIN=18
reset() {
echo "CoreCell reset through GPIO$SX1302_RESET_PIN..."
gpioset gpiochip0 $SX1302_RESET_PIN=1
sleep 0.1
gpioset gpiochip0 $SX1302_RESET_PIN=0
sleep 0.1
}
term() {
# "unexport" (set back to "input" by reading its value)
gpioget gpiochip0 $SX1302_RESET_PIN
}
case "$1" in
start)
term # just in case
reset
;;
stop)
reset
term
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
exit 0