The hard RAK831 cafe part 2

Thanks for a quick reply. Well I don’t have any nodes myself, so I thought that I would receive data from other nodes when they transmit?
I would expect from ttnmapper.org that I would receive adn forward some node-packages
lora_ttn_mapper

Now when I look into my log, then I see that It looked like that I have received something, but I got CRC fail
Can this behave due to poor antenna reception?
lora_log_receive

Could be the signal level is too low to receive an undamaged packet. Could be the received data is not a valid packet at all.

Best way to test is to obtain a node and try to send data :smile:
The ttnmapper data could have been obtained last year so your gateway had no chance of receiving it. However the antenna and its position inside a faraday like room will not help. If possible you could position the gateway outside (when it’s dry) for a couple of hours to see if that makes a difference.

I have been thinking what could interfere with 868MHz and I somehow wasn’t thinking of my Zwave devices for homeautomation, they also operate on ISM band


I need to extend my Ethernet cable to the garage away from my house, to check if I then can receive some good data packages from somebodies node

@TonySmith In my country, the 868MHz frequency is forbidden but I see its popularity in the world :slight_smile:

So you are illegally using that frequency in your country and the TTN network.
Off course we don’t approve that.

Has anyone programmed RAk831 with ESP8266 or other MCU? I want to deep understand about communicating SPI between RAk831 and raspberry pi. I reading Lora packet_forword but I have a problem when converting SPI of raspberry Pi to SPI of MCU.

please explain… what did you use as MCU… what did you exactly convert and where can we see the converted code ?

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.

Hi!
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 https://github.com/Lora-net/lora_gateway) 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)
OK

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:

Creative%20GPS%20antenna

4 Likes

Hi
2 questions,
1
Has anyone got some pointers on how to change the packet forwarder to the TTN one on openwrt?
2
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:


https://www.thethingsnetwork.org/labs/story/rak831-lora-gateway-from-package-to-online

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


https://github.com/ttn-zh/ic880a-gateway.git ~/ic880a-gateway
https://github.com/ch2i/LoraGW-Setup
or…
https://github.com/hallard/RAK831-Zero

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.

Thanks,
Brad

-yes preferred methode… and then update

use your first link to start
or look here for more tutorials.
https://www.thethingsnetwork.org/labs/stories/gateway

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.

Thanks,
Brad

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.)

4 Likes

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

LoRaWAN Frequency Plans and Regulations by Country.