snip
Feb 16 10:33:29 rak-gateway ttn-gateway[1419]: ERROR: Failed to set SX1250_0 in STANDBY_RC mode
Feb 16 10:33:29 rak-gateway ttn-gateway[1419]: ERROR: failed to setup radio 0
Feb 16 10:33:29 rak-gateway ttn-gateway[1419]: ERROR: [main] failed to start the concentrator snip
In the manual installation I have chosen the following gateway model:
RAK7248 no LTE (RAK2287 SPI + raspberry pi)
Thanks for any information and best regards
Nicolaj
git clone https://github.com/Lora-net/sx1302_hal.git
cd ~/sx1302_hal
make clean all
make install
make install_conf
cd tools
../util_chip_id/chip_id
CoreCell reset through GPIO17...
SX1261 reset through GPIO17...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
Opening SPI communication interface
Note: chip version is 0x0C (v0.12)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
ERROR: failed to start the gateway
I purchased the PI 4 kit that comes with a RAK2287 radio and the RAK2004 Pi Hat.
The kit came with a MicroSD with an operating system installed and I have manged to get that working after sorting out a couple of internet connection issues.
However I have tried installing Raspberry Pi OS (32 Bit) and then installing the software from GitHub - RAKWireless/rak_common_for_gateway and selecting option 8 for the gateway model when installing the software. However I get the following errors and can not connect to the TTN network.
Failed to set SX1250_0 in STANDBY_RC mode;
I have tried comparing all settings between the working OS and the Non-working version but have yet to narrow it down.
The RAK2287 is a version B 915MHZ/868Mhz version
The RAK2004 Pi Hat is a version B
The Pi is a 4 Model B Rev 1.5 OS is lastest as of March 2023.
This is an old thread, but since the issue appears to be ongoing, Iām posting my own experience here for the record.
System: RAK2287 (taken from a Helium miner) on Raspberry Pi 4 Model B Rev 1.2, OS ā10 (buster)ā, 5.4.79-v7l+
Firmware: RAKWireless gateway RAK7248 no LTE version 4.2.7R.
My gateway appears to be working (at least, TTN sees 30-second updates). However, the āFailed to set SX1250_0 in STANDBY_RC modeā error can be fairly reliably replicated not only by power-cycling, but also by restarting the packet forwarder via the gateway-config command. Additionally, I also often receive āERROR: wrong coding rate (0) - timestamp_counter_correctionā.
My current solution is to power off the hardware for ~5 minutes and restart. Removing and replacing the Pi hat also seems to work. Thus Iām pretty convinced that this is a hardware error caused by something not resetting properly when the packet forwarder is restarted.
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]
Nikola - this solved my problem: I can now reboot the device and/or reset the packet forwarder without error. In addition, this seems to have solved the other problem that I was struggling with: namely, that TTN recognised my gateway as āconnectedā and received 30-second updates, but it was not detecting any traffic. The gateway finally now appears to be functioning properly. Thank you!