RAK2287 Documentation for basicstation with AWS IoT Core

Issue: Failed to set SX1250_0 in STANDBY_RC mode

Setup:

  1. Raspberry Pi OS 64bit
  2. RAK2287 SPI
  3. AWS account

Server: AWS IoT Core for LoRaWAN

Details:

  1. Raspberry Pi 4B (4GB) 64bit bullseye OS installed and connected to WiFi.
  2. Packages updated and upgraded
  3. Cloned git repo : git clone https://github.com/Lora-net/sx1302_hal.git
  4. make clean all : as documented in the readme.md
  5. Updated reset_lgw.sh

running the chip_id command fails:

sudo apt -y update
sudo apt -y install build-essential cmake libudev-dev libusb-1.0.0-dev libffi-dev libssl-dev git minicom socat libqmi-utils m4 libcurl4-openssl-dev mtr pkg-config
git clone https://github.com/Lora-net/sx1302_hal.git
cd ~/sx1302_hal
make clean all
cd tools
sed -i 's/SX1302_RESET_PIN=23/SX1302_RESET_PIN=17/g' reset_lgw.sh
sed -i 's/SX1261_RESET_PIN=22/SX1261_RESET_PIN=5/g' reset_lgw.sh
../util_chip_id/chip_id 
../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 0x10 (v1.0)
INFO: using legacy timestamp
ARB: dual demodulation disabled for all SF
INFO: no temperature sensor found on port 0x39
INFO: no temperature sensor found on port 0x3B
INFO: no temperature sensor found on port 0x38
ERROR: no temperature sensor found.
ERROR: failed to start the gateway

../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 0x10 (v1.0)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
ERROR: failed to start the gateway


Setting up Basicstation to connect to AWS IoT core LoRaWAN CUPS server

I could not find documentation on how to use the GitHub - RAKWireless/basicstation: Basics™ Station Packet Forward protocol using Docker with AWS IoT core. Any help and documentation on how to setup RAK2287 with AWS would be appreciated.

I installed the firmware on SD card and tried to boot Raspberry Pi with this card. This is the error I get on RPi4


P.S: I was able to connect the same board to self hosted ThingStack using @xoseperez project!
Kudos to Xose and creating this github project: GitHub - xoseperez/basicstation: Basics™ Station Packet Forward protocol using Docker

I want to tinker a bit more and find how to build this from scratch. Kindly share more details on how the app is built.

While using a old version of rak2287 board this worked for me:

Adopted from : basicstation/builder at master · RAKWireless/basicstation · GitHub

ARCH=`arch`
git clone https://github.com/lorabasics/basicstation basicstation
cd basicstation
git checkout ${REMOTE_TAG}
echo "Applying ${REMOTE_TAG}.patch..."
git apply ../${REMOTE_TAG}.patch
sed -i 's/arm-linux-gnueabihf/'${ARCH}'-linux-gnu/g' setup.gmk
make platform=${PLATFORM} variant=${VARIANT} arch=${ARCH}
mkdir ~/${GATEWAY_EUI}
mkdir ~/${GATEWAY_EUI}/certs
cp examples/corecell/reset_lgw.sh  ~/${GATEWAY_EUI}/
cp examples/corecell/rinit.sh  ~/${GATEWAY_EUI}/
cp examples/corecell/start-station.sh ~/${GATEWAY_EUI}/
cp examples/corecell/lns-ttn/station.conf  ~/${GATEWAY_EUI}/certs
sed -i 's/SX1302_RESET_PIN=23/SX1302_RESET_PIN=25/g'  ~/${GATEWAY_EUI}/reset_lgw.sh

Then created the gateway in AWS console. Copied the cups.crt, cups.key, cups.uri, cups.trust to the /home/pi/${GATEWAY_EUI}/certs/ directory.

Now start the gateway:

/home/pi/lora/basicstation/build-corecell-std/bin/station -d -h /home/pi/${GATEWAY_EUI}/certs/ -L station.log

Check the logs with:

tail /home/pi/${GATEWAY_EUI}/certs/station.log

While using a new RAK2287 I had to change SX1302_RESET_PIN=17

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.