LoRa P2P using Arduino shield

Can someone help me? I'm trying to set up a very simple remote soil moisture monitoring system, looking to use 2 Arduino TTN shields for LoRa P2P, bypassing (ignoring?) TTN. Has anyone a hint as to where I can start looking for examples please?

have a look at post decimals-strings-and-lora where a number of remote nodes are sending sensor data over LoRa peer-to-peer (no LoRaWAN) to a central node for display
your choice of LoRa module will probably depend on the frequencies allowed in your country, e.g. in the UK we use 868MHz in the US it is 915MHz - see lorawan/frequencies-by-country
what host microcontroller are you thinking of?
what are the specification of the sensors? in particular operating voltage

There is one LoRa library that includes practical working examples for sending and receiving sensor data over LoRa;

This Arduino LoRa library is I hope different to other libraries, this LoRa library has a specific emphasis on providing a large range of working examples for common applications.

There are the normal basic transmit and receive examples, but there are many additional real world examples for;

Sending and receiving sensor data.
Remote control of devices, turning LEDs on\off etc.
GPS tracker transmitters and receivers with displays.
Using joysticks and servos for remote control.
Examples using sleep modes for low power consumption.
High altitude balloon trackers.
Transferring large data arrays or files.
Sending and receiving images from ESP32CAMs.
Sending and receiving packets where an acknowledge is required.
Sending polling requests to remote nodes for the return of specific data.
Link test programs to test LoRa devices and antennas.
Packet loggers with displays.
Transmitting data with FSK RTTY.
Transmitting FM tones and playing tunes (Star Wars).

However, you did not provide a link (hint) to the 'LoRaWAN shield'you are using, its possible the shield uses an embedded LoRaWAN device that you may not be able to use for LoRa point to point.

1 Like

Thanks for this Library info , indeed a lot of examples.

Many, many thanks. I'll investigate and report back. This will keep me busy for a while I guess.
With regard to the shield, I have Dragino 1276 and TTN shields RN2483 and RAK811. I think (but don't know for sure) that the stack in the TTN devices can be bypassed to work P2P? There is no TTN coverage near me - as I discovered too late. I'm learning every step.

Well the 'official' answer is;

https://microchipsupport.force.com/s/article/RN2483-RN2903-point-to-point-P2P-communication

Question

1) Can two RN2483 (or RN2903) modules communicate point-to-point (P2P) without a gateway?

2) Is there any example for p2p communication for SAMR34 module

Answer

1) The RN2xx3 family of products are designed to support the LoRaWAN open standard as published by the LoRa Alliance. The LoRaWAN architecture dictates a hierarchical structure of gateways and network/application servers and has no concept of P2P communication.

Its never been completly clear to me if that is correct, byt for sure the standard SPI LoRa libraries, for which there are tons of tutorials and examples, wont work with the RN2483.

Lora point to point

  1. I have used the Dragino LoRa shield on a UNO in point to point communications with the Adafruit LoRa 32u4 board and a Lora/GPS Hat
    using the LoRa.h library
  2. did some point to point tests with various RN2483 modules including The Things Uno- references lora_p2p_RN2483 and RN2483_PeerToPeer
  3. never used the RAK811

after some work I did manage to get all the above devices communicating P2P including with a Grove_LoRa_E5 - the problem being the P2P code of each device is slightly different and has to be adjusted
the main recommendation is if using LoRa P2P to keep to the same LoRa module

if there is no LoRaWAN gateway in the area the the Things Indoor Gateway is a cheap solution - I carry one with me when traveling - my main Gateway is The Things Gateway

The TIG is well worth getting ..................

RS2483 P2P tests using basic serial commands
a Microchip PicTailPlus connected to seriual port of a MKRFOX

sys reset
RN2483 0.9.5 Mar 24 2015 14:15:33
radio set wdt 600000
ok
radio tx 12345678	<< transmit to remote RN2483
ok
mac pause
4294967245
radio rx 0
ok
radio_rx  9876543210	<< receive from remote RN2483

a custom RN2483 PCB

RN2483 1.0.4 Oct 12 2017 14:59:25
radio set wdt 600000
ok
mac pause
4294967245
radio rx 0
ok
radio_rx  12345678	<< receive for MKRFOX RN2483
mac pause
4294967245
radio tx 9876543210	<< transmit to MKRFOX RN2483
ok
radio_tx_ok

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