Conduit mPower: LoRa Communication and Node-RED



Receive Packets on the Conduit

  1. Log into the AEP interface. Refer to Getting Started with AEP [the linked post is not published yet] if needed.
  2. Click on Node-RED under Apps on the left sidebar
  3. Log into Node-RED with the password set in the wizard. The default password is admin.
  4. Drag the lora input node to the canvas
  5. Connect the lora node to the debug node. On the right side of the lora node, click on the small gray dot and drag a wire to the small gray dot on the left side of the debug node
  6. Click the red Deploy button at the top right of the page
  7. Click on the Debug tab at the right side of the page to view received lora packets.


Transmit Packets from the Conduit

  1. Create the flow described above for receiving lora packets
  2. Drag the lora out node to the canvas
  3. Drag a function node to the canvas and place between the lora-in and lora-out nodes
  4. Connect a wire from the lora in node to the function input and from the function output to the lora out node
  5. Configure the function block as follows to disable scheduling confirmed downlinks:
    msg.ack = false;
    return msg;
  6. Click the red Deploy button at the top right of the page

Sending and receiving packets on the mDot:


LoRa Input Datatypes

The LoRa input node has two modes of operation which can be switched between by editing the “Data Type” field.  There are two options:

  1. UTF-8.  The payload of the LoRa packet is parsed as UTF-8 characters before being injected to the flow.
  2. Bytes.  The payload of the LoRa packet is not parsed before being injected into the flow.