<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Raw LoRa]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm starting my journey with LoPy4.<br />
I want to be able to press buttons on one LoPy4 to turn on a LED on another LoPy4.<br />
So button A LoPy4(1) will turn on LED A LoPy4(2) and button B LoPy4(1) will turn on LED B LoPy4(2) and button C LoPy4(1) will turn on LED C LoPy4(2).<br />
And depressing each button a second time will turn each respective LED off.</p>
<p dir="auto">Is this at all possible?</p>
<p dir="auto">Mike.</p>
]]></description><link>https://forum.pycom.io/topic/7565/raw-lora</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 05:42:30 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/7565.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 May 2022 00:50:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Raw LoRa on Wed, 18 May 2022 00:50:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm starting my journey with LoPy4.<br />
I want to be able to press buttons on one LoPy4 to turn on a LED on another LoPy4.<br />
So button A LoPy4(1) will turn on LED A LoPy4(2) and button B LoPy4(1) will turn on LED B LoPy4(2) and button C LoPy4(1) will turn on LED C LoPy4(2).<br />
And depressing each button a second time will turn each respective LED off.</p>
<p dir="auto">Is this at all possible?</p>
<p dir="auto">Mike.</p>
]]></description><link>https://forum.pycom.io/post/40304</link><guid isPermaLink="true">https://forum.pycom.io/post/40304</guid><dc:creator><![CDATA[Michael Brogan]]></dc:creator><pubDate>Wed, 18 May 2022 00:50:47 GMT</pubDate></item><item><title><![CDATA[Reply to Raw LoRa on Wed, 18 May 2022 08:21:30 GMT]]></title><description><![CDATA[<p dir="auto">I would say yes, but with some complexity if you need comms robustness.</p>
<p dir="auto">I don't know anything about buttons, but I have been using SOCK_RAW for a while to send encrypted and authenticated location data,  This is stateless, and a corrupted or missed message is of no specific relevance.</p>
<p dir="auto">You would probably need some kind of ACK/NAK mechanism above the socket that solicits retransmissions of messages, in order to preserve distributed state.</p>
<p dir="auto">Even with no specific link challenges, i.e. close proximity and no known interferers, I would receive spurious messages. So I bolted on an HMAC-MD5 mechanism to filter out the cruft.</p>
]]></description><link>https://forum.pycom.io/post/40307</link><guid isPermaLink="true">https://forum.pycom.io/post/40307</guid><dc:creator><![CDATA[g0hww]]></dc:creator><pubDate>Wed, 18 May 2022 08:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to Raw LoRa on Wed, 18 May 2022 20:54:56 GMT]]></title><description><![CDATA[<p dir="auto">I have been thinking about this a bit more over the course of the day, and seeing as my last post got an upvote, I decided to offer my latest thoughts.<br />
My lopy4 based GPS tracker and the LoRa/MQTT gateways (which used to beacon over LoRa too, but that is temporarily inhibited)  make their LEDs blink red when they transmit and green when they receive over LoRa.<br />
Given that your stated requirements don't specify any required level of reliability, I would be tempted to adopt a similar approach. Perhaps blink blue to acknowledge the button press, then red to indicate that the command is being sent, and then green if you get an ack.<br />
Then it is up to the user to keep pressing the button until he gets a full cycle or blue-&gt;red-&gt;green, then they should expect the LED state at the far end to match their expectations. If it only does blue-&gt;red then they need to have another go.<br />
This will then only need the receiving end to acknowledge commands, and there is no need for any kind of retransmission in protocol or code. Just make the red blinks long enough to cover up the command/ack exchange time and ignore further input from the buttons until there is an ack timeout.</p>
]]></description><link>https://forum.pycom.io/post/40319</link><guid isPermaLink="true">https://forum.pycom.io/post/40319</guid><dc:creator><![CDATA[g0hww]]></dc:creator><pubDate>Wed, 18 May 2022 20:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Raw LoRa on Thu, 19 May 2022 01:54:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1667">@g0hww</a> thanks for taking the time to respond. Have you any code examples? Very basic push button on one LoPy4 turns on a LED at the other.</p>
<p dir="auto">Mike.</p>
]]></description><link>https://forum.pycom.io/post/40320</link><guid isPermaLink="true">https://forum.pycom.io/post/40320</guid><dc:creator><![CDATA[Michael Brogan]]></dc:creator><pubDate>Thu, 19 May 2022 01:54:11 GMT</pubDate></item></channel></rss>