{"id":8547,"date":"2015-06-30T14:08:25","date_gmt":"2015-06-30T19:08:25","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=8547"},"modified":"2022-03-30T19:44:36","modified_gmt":"2022-03-31T00:44:36","slug":"conduit-aep-lora-communication","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/lora\/conduit-aep-lora-communication\/","title":{"rendered":"Conduit mPower: LoRa Communication and Node-RED"},"content":{"rendered":"<p><strong>NOTE:\u00a0<\/strong>Support for Node-RED\/Node.js on Multitech AT91SAM9G25-based products has been discontinued within mPower 5.3. For mPower 5.3.3 to 5.3.8, users can\u00a0install Node-RED as a custom application.\u00a0<em><strong>mPower 6.0 or later no longer supports this custom app option.<\/strong>\u00a0<\/em><\/p>\n<p>The following instructions are still applicable for mPower MTCDT 5.2.1 and MTCAP 5.2.1 and earlier on all devices. And also applies to any non-AT91SAM9G25-based products.<\/p>\n<p>Refer to this alterative example of a default application and server with API implementation for a distributed LoRaWAN network (includes Python code example) :<a href=\"https:\/\/github.com\/MultiTechSystems\/lorawan-app-connect\">\u00a0https:\/\/github.com\/MultiTechSystems\/lorawan-app-connect<\/a>.<\/p>\n<p>For information on how to convert NodeRED to Python and Python code using MQTT broker and LoRa, see the following example:\u00a0 <a href=\"https:\/\/github.com\/russmin\/Node-Red-Python\">https:\/\/github.com\/russmin\/Node-Red-Python<\/a><\/p>\n<p>For more details on other methods and examples of custom applications, see\u00a0<a href=\"https:\/\/www.multitech.net\/developer\/software\/aep\/creating-a-custom-application\/\">Creating a Custom Application<\/a>.<\/p>\n<h3>Prerequisites<\/h3>\n<ul>\n<li>Set up Conduit AEP and mDot for use with LoRa. Refer to <a href='https:\/\/www.multitech.net\/developer\/software\/lora\/getting-started-with-lora-conduit-aep\/' title='Getting Started with LoRa Conduit AEP (LoRa Configuration)'>Getting Started with LoRa Conduit AEP (LoRa Configuration)<\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>Receive Packets on the Conduit<\/h3>\n<ol>\n<li>Log into the AEP interface. Refer to <i class='p2p-pending-link'>Getting Started with AEP<\/i> <i class='p2p-pending-note'>[the linked post is not published yet]<\/i> if needed.<\/li>\n<li>Click on <strong>Node-RED<\/strong> under <strong>Apps<\/strong> on the left sidebar<\/li>\n<li>Log into Node-RED with the password set in the wizard. The default password is admin.<\/li>\n<li>Drag the lora input node to the canvas<\/li>\n<li>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<\/li>\n<li>Click the red <strong>Deploy<\/strong> button at the top right of the page<\/li>\n<li>Click on the <strong>Debug<\/strong> tab at the right side of the page to view received lora packets.<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" alt=\"\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2015\/06\/aep-lora-receive.gif\" width=\"NaN\" height=\"NaN\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Transmit Packets from the Conduit<\/h3>\n<ol>\n<li>Create the flow described above for receiving lora packets<\/li>\n<li>Drag the lora out node to the canvas<\/li>\n<li>Drag a function node to the canvas and place between the lora-in and lora-out nodes<\/li>\n<li>Connect a wire from the lora in node to the function input and from the function output to the lora out node<\/li>\n<li>Configure the function block as follows to disable scheduling confirmed downlinks:<br \/>\n<code>msg.ack = false;<br \/>\nreturn msg;<\/code><\/li>\n<li>Click the red <strong>Deploy<\/strong> button at the top right of the page<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" alt=\"\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2018\/06\/node-red-transmit.png\" width=\"NaN\" height=\"NaN\" \/><\/p>\n<p>Sending and receiving packets on the mDot:<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" alt=\"\" src=\"https:\/\/www.multitech.net\/developer\/wp-content\/uploads\/2015\/08\/mdot-transmit.png\" width=\"NaN\" height=\"NaN\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>LoRa Input Datatypes<\/h3>\n<p>The LoRa input node has two modes of operation which can be switched between by editing the &#8220;Data Type&#8221; field. \u00a0There are two options:<\/p>\n<ol>\n<li>UTF-8. \u00a0The payload of the LoRa packet is parsed as UTF-8 characters before being injected to the flow.<\/li>\n<li>Bytes. \u00a0The payload of the LoRa packet is not parsed before being injected into the flow.<\/li>\n<\/ol>\n<h3>Troubleshooting<\/h3>\n<ul>\n<li><a href='https:\/\/www.multitech.net\/developer\/software\/lora\/conduit-aep-lora-communication\/aep-lora-use-third-party-devices\/' title='Conduit AEP: LoRa Use With Third-Party Devices'>Conduit AEP: LoRa Use With Third-Party Devices<\/a><\/li>\n<li><a href='https:\/\/www.multitech.net\/developer\/software\/lora\/troubleshooting-lora-communication\/' title='Troubleshooting LoRa Communication'>Troubleshooting LoRa Communication<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>NOTE:\u00a0Support for Node-RED\/Node.js on Multitech AT91SAM9G25-based products has been discontinued within mPower 5.3. For mPower 5.3.3 to 5.3.8, users can\u00a0install Node-RED as a custom application.\u00a0mPower 6.0 or later no longer supports this custom app option.\u00a0 The following instructions are still applicable for mPower MTCDT 5.2.1 and MTCAP 5.2.1 and earlier on all devices. And also [&hellip;]<\/p>\n","protected":false},"author":1235,"featured_media":0,"parent":8462,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8547","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1235"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=8547"}],"version-history":[{"count":27,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8547\/revisions"}],"predecessor-version":[{"id":8554,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8547\/revisions\/8554"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/8462"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=8547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}