The hard RAK831 cafe part 2

hi BoRRoz. I use STM32 to connect RAK831. I want to know what did raspberry pi write/read into the address of RAk831 but I don’t know about SPI of Pi so some line in code I don’t clear.

I don’t know why I am not able to send anything from my RAK831 Gateway to my RFM95 node using util_tx_test.c program (from as plain LoRa packets. Nothing gets received on the node(using Radio Head library on node).

The log on the RAK831 is fine:
Sending 10 packets on 868400000 Hz (BW 125 kHz, SF 7, CR 1, 16 bytes payload, 8 symbols preamble) at 14 dBm, with 100 ms between each
INFO: concentrator started, packet can be sent
Sending packet number 1 …INFO: tx_start_delay=1495 (1495.500000) - (1497, bw_delay=1.500000, notch_delay=0.000000)

Things I checked:

  • Tested inverted modulation from gateway.
  • Changed SyncWord to 0x12 on end node and set loraWAN_public=false in the code.
  • matched frequency, CR, SF, BW, preamble.

I can send from the RFM95 node to the RAK831 gateway using util_pkt_logger without any problems. I also tried with another Dragino-gateway that could send to the end node without problems, so the end node is fine.

What could be wrong?

Thanks in advance!

Picture from RAK831 + RPi Converter + RPi from the RAK Wireless Module Store.

That GPS antenna picture is truly creative. :wink:



2 questions,
Has anyone got some pointers on how to change the packet forwarder to the TTN one on openwrt?
I keep getting “Failed to start concentrator”. About every 5th attempt does start it and then everything works ok. At the moment I am just testing the system and am using the leads that came with the system to join the MCU board to the Rak board. Could this be the cause? and if so are there any ways around this apart from using a PCB to link the two? I have already tried changing the SPI speed but it made no difference, although I might be changing it in the wrong place.

I just ordered one, looking forward to contributing because there are so few open gateways in Vancouver Canada.

these two writes up sold me:

I thought I’d try some of the packet forwarders, both of these are well liked/used on things network? ~/ic880a-gateway

and… is there a command line flag to run the packet_forwarder without the radio module, just to send a test packet to things dashboard?

all the startup guides begin with new image, is that really necessary? easy to enable SPI on most pi’s.


-yes preferred methode… and then update

use your first link to start
or look here for more tutorials.

I found a few answers on here:

very useful… as for the pkt frd options, just finding lots of different repos is what I was getting after. (legacy udp seems the best right now?)

I already have a few pi’s doing spi… can’t I just add the RAK831 module to one of those? I’ll try node-red too, I was just using it to toggle the reset pin. pretty easy.


ah… to answer my own question:

does anyone here use node-red to toggle the RAK831 reset pin?

Why would you install over 70 megabyte of software to do what can by done with WiringPi (< 4MB) and a shell script of less than 20 lines?

Based on what did you reach this conclusion?

Should be:

Reading or at least scanning articles before asking for advice will be useful. :wink:
GitHub - hallard/RAK831-Zero: Pi Zero RAK831 Adapter board is about hardware only and forwards to GitHub - ch2i/LoraGW-Setup: SX1301 Lora Concentrator Raspberry PI based gateway setup for setting up the software:

For RAK831 GitHub - ch2i/LoraGW-Setup: SX1301 Lora Concentrator Raspberry PI based gateway setup will get you covered
(without running into issues related to pin differences between RAK831 and iC880a).

Initially GitHub - ch2i/LoraGW-Setup: SX1301 Lora Concentrator Raspberry PI based gateway setup only addressed a RAK831-Zero based gateway,
but currently covers both RAK831 and iC880a based configurations and different Raspberry Pi devices
(not limited to just RAK831 with Raspberry Pi Zero W).

(I have updated the start topic and added above information.)


How do I configure RAK831 with Rpi3 to work on indian band ?

LoRaWAN Frequency Plans and Regulations by Country.

3 posts were merged into an existing topic: The hard RAK831 cafe part 3


Have a look at :

Page 15/16


Hey Jens

Thanks, I did find that doc and it does explain about the diversity antennas but is not giving the normal antenna path as far as I can see.
My range is bad and I suspect that soldering the connector after it came loose may have caused damage, either that or the antenna that I got online or the cable that a friend made is bad.

I’m new to the forums so apologies if this has been answered before but I’ve done a search and can’t find anything on this topic…

My configuration is

A RAK831 433MHz version
I follow the instruction of to make rpi3 based lora gateway
I just modify the global_config.json file according to Rak support recommandation and with my 433 frequency plan:
I add it to TTN with India 865-867MHz freq plan (as 433 is not available)
[ ]
I’m using a custom board with RFM98W 433mhz LoRa and Arduino Mini Pro.

For the testing I use basic tests programs comes with lora gateway library
util_pkt_logger program for record all the packets received in a log file and
util_tx_test program to send test packets with a LoRa concentrator

First problem I face that, I’m not able to send data from LoRa node to gateway and vice versa
and the second is when I use util_pkt_logger without starting the node, it received packets and store in log file, I attached the log of this, i don’t know from where it received data


A RAK831 433MHz version, and I add it to TTN with India 865-867MHz freq plan ?? :frowning:

Then which frequency plan I have to select?
I’m new to this so I don’t have an idea
When I read the guide it says select the frequency plan determined by your region the gateway uses
I am in India so i select 865-867
I found this from the below link
hope so you will help me for this

we continue in The hard RAK831 cafe part 3 :sunglasses: