Start.sh is overwritten - 2287

I have to change my SX1301_RESET_BCM_PIN=17 from the original build to SX1301_RESET_BCM_PIN=25 as support described the process from an earlier post below. I do this for my start.sh in /opt/ttn-gateway/packet_forwarder/lora_pkt_fwd, but it keeps getting overwritten whenever I reboot. There must be another config file somewhere?

Hello all,

If you wish to use the RAK2287 concentrator module from a RAK Helium Miner as a regular LoRa concentrator, you will probably get some or all these errors:

rak-gateway ttn-gateway[1419]: ERROR: Failed to set SX1250_0 in STANDBY_RC mode

rak-gateway ttn-gateway[1419]: ERROR: failed to setup radio 0

rak-gateway ttn-gateway[1419]: ERROR: [main] failed to start the concentrator

To start the concentrator properly, you need to change the reset pin to PIN25. Using the rak_common_for_gateway you need to make a change in the file: /opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/start.sh The line SX1301_RESET_BCM_PIN=17 should be changed to SX1301_RESET_BCM_PIN=25 and the file saved. After the change is made, start the device again. It should run as intended. If there are still problems, contact the support at [email protected]

Hello,

You should change it here as well:

Nikola Semov

I’m getting there Nikola! Same behavior before, the values are overwritten. In the table below I changed all ‘17’ to ‘25’ and 4 of the scripts were overwritten when I rebooted.

/home/pi/rak_common_for_gateway/lora/lora_gateway/reset_lgw.sh - no mention of pin 17
/home/pi/rak_common_for_gateway/lora/rak2287/reset_lgw.sh - changed back to 17 when i rebooted
/home/pi/rak_common_for_gateway/lora/rak2287/packet_forwarder/lora_pkt_fwd/reset_lgw.sh - changed back to 17
/home/pi/rak_common_for_gateway/lora/rak2287/sx1302_hal/tools/reset_lgw.sh - no mention of pin 17
/home/pi/rak_common_for_gateway/lora/rak5146/reset_lgw.sh NA

/home/pi/rak_common_for_gateway/lora/start.sh - changed back to 17
/opt/ttn-gateway/packet_forwarder/lora_pkt_fwd/start.sh - changed back to 17

Hello,

The paths that you have mentioned are the installation scripts. You need to change the pin in the already installed scripts that are under /opt/ttn-gateway/packet_forwarder/…

Nikola Semov