You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lora message to be sent; normally from lora decoder, send message for encoder.
framecounter
number
set frame counter default value from versions <2.0.0; this default value wil be active until Node-RED will be restarted.
framecounter
object
set frame counters with value from persistent memory.
Outputs
encoded payload
msg.
type
description
payload
object
encoded message for lora sender.
frame counters for persistence
msg.
type
description
payload
number
frame counters for the different lora nodes for persistent storage.
Parameters
config
type
description
LoRa Keys
lorawan-keys
configuration node to define the end nodes.
TX-Power
number
transmit power for the gateway.
lora check FC
This node checks the frame counter (FC) of a LoraWan message.
It recognizes this situations:
first message received: ok
FC 0: ok, startup of end node
FC increased by one: ok
FC rollover: ok
FC increased by more then one: ok + error message missing frame
FC the same as last valid one: duplicate message
anything else: error merssage, LoRa message is discared
Input
msg.
type
description
topic
string
name of the end node from lora keys.
payload
object
lora message decoded by lora decoder.
Outputs
checked lora message
msg.
type
description
topic
string
name of the end node from lora keys.
payload
object
checked ok message ready for node specific payload decoder.
duplicate message
msg.
type
description
topic
string
name of the end node from lora keys.
payload
object
message in case of a reuse of the last valid farme counter value.
error message
msg.
type
description
topic
string
subject of the error message.
payload
string
error message for logging.
lora
object
lora msg that caused the error message.
counters
msg.
type
description
payload.ok
number
Number of ok messages.
payload.nok
number
Number of error messages.
payload.dup
number
Number of duplicate messages.
payload.mis
number
Number of missing messages.
lora send
This node puts a LoraWan message into the send queue.
The send queue is stored in the flow context sendqueue.
Input
msg.
type
description
payload
byte array
lora payload to be sent; as an array of bytes or as a Buffer.
topic
string
name of the LoRa end node as in LoRa Keys.
Parameters
config
type
description
LoRa Keys
lorawan-keys
configuration node to define the end nodes.
lora keys
This configuration node stores data about the LoRa end nodes.
Parameters
config
type
description
LoRa-Keys
object
config data about the end nodes.
{
<device address in lowercase hex>: {
"nsw": "<LoRa NwkSKey>",
"asw": "<LoRa AppSKey>",
"type": "<Type of the node for further processing>",
"name": "<Name of the node>",
"timeout": <Timeout value for further processing, optional>;
},
"123456ab": {
"nsw": "0123456789abcdef0123456789abcdef",
"asw": "0123456789abcdef0123456789abcdef",
"type": "FooType",
"name": "FooBar",
"timeout": 3600
},
...
}