Progress Update - not solved yet.
I tried different GPIO options taking into considerations the pinouts by editing in rak_common_for_gateway/lora/start.sh
the SX1301_RESET_BCM_PIN
. Due to @Jeff-UK answer the default pin GPIO17 should be alright, but I have also tried setting it to 22 since for another user it worked. Still no progress.
Tried to slow SPI speed as recommended in this post + Jeff-UK’s recommendation - Using raspi-config
I can only enable/disable the SPI interface. raspi-config
edits the /boot/config.txt
, but even if I edit it directly, the config.txt
file on a Raspberry Pi does not include options for configuring the SPI speed.
By searching some more, I found out that SPI clock speed is usually configured at runtime within the application or the driver that is communicating with the SPI device.
On the other hand the post that I found didn’t specify where I can update this value so I found another post that mentioned a run.py file, which does not exist in the rak_common_for_gateway
repo, and looking into it a bit more it was about a different RAK board, not 2245. So I gave up on that approach too.
As a last attempt I tried doing this with
sudo echo 2000000 > `/sys/class/spidev/spidev0.0/device/of_node/spi-max-frequency`
but it didn’t work: Permission denied - must be a kernel restriction.
However, printing the value that is already in the spi max frequency yields a sY@
, which is not a number value, making me think that there could still be a problem with the SPI .
As an alternative to the all those steps above, I followed this guide, trying to install the latest firmware from the RAK wireless website (instead of installing Raspian OS Lite + rak_common_for_gateway). I still I wasn’t able to even login to the board because no RAK_WIRELESS_XXXX access point would show up in the Wi-Fi.
Any idea how could I proceed? Feels like a dead end.