<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><description>I connected an Arduino MKR WAN 1310 to The Things Network. And enabled both send and receive. This post is my log of the activity.

A few weeks ago, I bought a LoRaWan gateway. In this post, it helps to get and end-to-end trace. I have ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>https://community.element14.com/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><pubDate>Sat, 13 Jan 2024 20:35:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:631c4d26-0896-4631-8971-ff737ebe14e5</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very good post Jan.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27435&amp;AppID=27&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>https://community.element14.com/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><pubDate>Sat, 13 Jan 2024 09:07:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:631c4d26-0896-4631-8971-ff737ebe14e5</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Downlink from AWS IoT MQTT works too. I published a topic to the MQTT service:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="378" src="/resized-image/__size/658x756/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705136447282v1.png" width="329" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The info arrived at TTN:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="24" src="/resized-image/__size/810x48/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705137040346v1.png" width="405" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="286" src="/resized-image/__size/654x572/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705136568074v3.png" width="327" /&gt;&lt;/p&gt;
&lt;p&gt;The TTN output formatter translates this to a LoRaWan payload of one byte: 01.&lt;/p&gt;
&lt;p&gt;When my Arduino MKR WAN 1310 ran its next upload, it got the downlink message:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="35" src="/resized-image/__size/650x70/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705136657024v4.png" width="325" /&gt;&lt;/p&gt;
&lt;p&gt;and the LED switched on:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="586" src="/resized-image/__size/648x1172/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/20240113_5F00_100444.jpg" width="324" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How the downlink link works:&lt;/p&gt;
&lt;p&gt;Initial state - my Arduino was not active&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="186" src="/resized-image/__size/1362x372/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705138026688v1.png" width="681" /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;on AWS, I posted a topic on the MQTT service to turn the Thing&amp;#39;s LED on.&lt;/li&gt;
&lt;li&gt;2 minutes later, I switched on the Arduino. It joined TTN&lt;/li&gt;
&lt;li&gt;the first activity of the&amp;nbsp;Arduino sketch does, after joining, is uplinking its LED status.&lt;br /&gt;Immediately after that, it receives the downlink command to turn the LED on (the AWS message).&lt;br /&gt;See image below for the detail of that.&lt;/li&gt;
&lt;li&gt;After the LED was switched on on the Arduino, the sketch noticed the state change and uplinked the new status.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img alt=" " height="138" src="/resized-image/__size/1238x276/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705138260247v2.png" width="619" /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27435&amp;AppID=27&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>https://community.element14.com/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><pubDate>Sat, 13 Jan 2024 08:12:43 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:631c4d26-0896-4631-8971-ff737ebe14e5</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Saturday morning well spent: I enabled integration of my TTN with AWS IoT:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="399" src="/resized-image/__size/996x798/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705133520583v1.png" width="498" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll now try and integrate payload with their MQTT service... (&lt;em&gt;edit: not needed, it automatically posts on AWS IoT MQTT)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img height="723" src="/resized-image/__size/992x1446/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705134987539v1.png" width="496" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27435&amp;AppID=27&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>https://community.element14.com/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><pubDate>Fri, 12 Jan 2024 13:45:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:631c4d26-0896-4631-8971-ff737ebe14e5</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Do they see my activity?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="277" src="/resized-image/__size/996x554/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/nhq.jpg" width="498" /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27435&amp;AppID=27&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino MKR WAN 1310 on The Things Network (TTN)</title><link>https://community.element14.com/technologies/internet-of-things/b/blog/posts/arduino-mkr1310-on-the-things-network-ttn</link><pubDate>Fri, 12 Jan 2024 13:24:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:631c4d26-0896-4631-8971-ff737ebe14e5</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>3</slash:comments><description>&lt;p&gt;My own personal &lt;a href="https://ttnmapper.org/heatmap/" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;heatmap&lt;/a&gt; bubble:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="307" src="/resized-image/__size/996x614/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-631c4d26-0896-4631-8971-ff737ebe14e5/pastedimage1705065706335v1.png" width="498" /&gt;&lt;/p&gt;
&lt;p&gt;The blue circle is my gateway. The red one&amp;nbsp;is the LoRaWan activity of the Thing. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27435&amp;AppID=27&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>