LoRa Node

LoRa is used for long-range communication between devices and gateways, ideal for sensors and devices that require low bandwidth and power consumption, such as agricultural sensors or urban infrastructure monitoring.

Outputs

The LoRa node will output each device’s payload in the order that they are received.

How to Use

Implementation

In the Rayven Workflow Builder:

  • Select Inputs.
  • Drag the LoRa node to the canvas.
  • Provide an input to the LoRa node by connecting it to another node.
  • Double click on the LoRa node to open the configuration window.

Configuration

Section: General

This section contains basic configuration elements required for any LoRa node implementation

Field

Requirement

Comments

Node Name

Mandatory

Enter a name for this node.


This provides a handle to which you and others can refer, so it should be simple but meaningful and explain the node’s purpose.

URL

Autofilled

This unique URL points to the Rayven server and can’t be changed.


Example of URL: https://my.rayven.io:8082/api/main?uid=2853d58a545859b144fb91142604bc14149d

Payload Format

Mandatory

Select the format of the payloads from the dropdown menu

  • Key:Value
  • Comma Separated Key:Value
  • As is (Do not convert to JSON)


Section: Advanced Features

Field

Requirement

Comments

Payload Device ID Field Name

Optional

Optional parameter. It is possible to send the unique device ID in the payload. To do this, enter the field name in the payload that contains the device ID.

Pass Entire Payload

Optional

If the checkbox is selected, the node will output the entire JSON and the decoded data of the "payload" field. For example, if the LoRa input is:


[{"rx": {"moteeui": "2939CEC4", "userdata": {"seqno": 5, "port": 2, "payload": "NzQ2ZDVmMzEzMDNhMzIzNTJlMzM=", "motetx": {"freq": 915600000, "modu": "LoRa", "datr":              "SF12BW125", "codr": "4/5"}}, "gwrx": [{"time": "2019-12-24 19:44:40", "chan": 2, "rfch": 0, "rssi": -85, "lsnr": 7.7999999999999998}]}}]


Then if 'Pass entire payload' is unchecked (default state) the node will output only the decoded data of the "payload" field: "NzQ2ZDVmMzEzMDNhMzIzNTJlMzM="


The output will be: {"tm_10":"25.3"}


If 'Pass entire payload' is selected the node will output the entire JSON and the decoded data of the "payload" field.


The output would be:


{"rx":{"moteeui":"2939CEC4","userdata":{"seqno":5,"port":2,"payload":"NzQ2ZDVmMzEzMDNhMzIzNTJlMzM=","motetx":{"freq":915600000,"modu":"LoRa","datr":"SF12BW125","codr":"4/5"}},"gwrx":[{"time":"2019-12-24 19:44:40","chan":2,"rfch":0,"rssi":-85,"lsnr":7.8}]},"payload":{"tm_10":"25.3"}}


Activation

Once the node has been configured, click the Activate button and then click Save. The node is ready to receive data into the workflow.