<?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[Connect FiPy with Lora OTAA to TTN?]]></title><description><![CDATA[<p dir="auto">Did anyone succeed connecting a FiPy using OTAA to The Things Network?</p>
<p dir="auto">Connecting by ABP works fine. Though when I use the OTAA example from chapter 5.3.2 <a href="https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html</a>  it keeps saying 'Not yet joined...'.</p>
<p dir="auto">I do see it trying to connect in the network logging of my Gateway and in the TTN Console. Though it looks like the 'txpk' that the Gateway returns is not received by the FyPi.</p>
<p dir="auto">I have seen this before on an Arduino with a RFM95 chip using the LMIC library. With that setup I had to make a correction to the clock (in order to extend the receive window) to get it working (LMIC_setClockError).</p>
<p dir="auto">Therefor my question, did anyone succeed connecting the FiPy to TTN using OTAA yet and if so, what code did you use? Or.. does anyone know a similar trick that I can try to extend the negotiation window?</p>
<p dir="auto">Firmware:<br />
(sysname='FiPy', nodename='FiPy', release='1.14.0.b1', version='v1.8.6-849-86da809 on 2018-01-17', machine='FiPy with ESP32', lorawan='1.0.0', sigfox='1.0.1')</p>
]]></description><link>https://forum.pycom.io/topic/2500/connect-fipy-with-lora-otaa-to-ttn</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 13:53:16 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2500.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Jan 2018 18:40:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Sat, 20 Jan 2018 18:40:57 GMT]]></title><description><![CDATA[<p dir="auto">Did anyone succeed connecting a FiPy using OTAA to The Things Network?</p>
<p dir="auto">Connecting by ABP works fine. Though when I use the OTAA example from chapter 5.3.2 <a href="https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/chapter/tutorials/lopy/lorawan-otaa.html</a>  it keeps saying 'Not yet joined...'.</p>
<p dir="auto">I do see it trying to connect in the network logging of my Gateway and in the TTN Console. Though it looks like the 'txpk' that the Gateway returns is not received by the FyPi.</p>
<p dir="auto">I have seen this before on an Arduino with a RFM95 chip using the LMIC library. With that setup I had to make a correction to the clock (in order to extend the receive window) to get it working (LMIC_setClockError).</p>
<p dir="auto">Therefor my question, did anyone succeed connecting the FiPy to TTN using OTAA yet and if so, what code did you use? Or.. does anyone know a similar trick that I can try to extend the negotiation window?</p>
<p dir="auto">Firmware:<br />
(sysname='FiPy', nodename='FiPy', release='1.14.0.b1', version='v1.8.6-849-86da809 on 2018-01-17', machine='FiPy with ESP32', lorawan='1.0.0', sigfox='1.0.1')</p>
]]></description><link>https://forum.pycom.io/post/14811</link><guid isPermaLink="true">https://forum.pycom.io/post/14811</guid><dc:creator><![CDATA[Harm]]></dc:creator><pubDate>Sat, 20 Jan 2018 18:40:57 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Fri, 02 Feb 2018 20:50:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2267">@harm</a> said in <a href="/post/14811">Connect FiPy with Lora OTAA to TTN?</a>:</p>
<blockquote>
<p dir="auto">connecting a FiPy using OTAA to The Things Network</p>
</blockquote>
<p dir="auto">Unfortunately no answers yet. Retry: Was anyone able to connect a FiPy using OTAA to The Things Network?</p>
]]></description><link>https://forum.pycom.io/post/15298</link><guid isPermaLink="true">https://forum.pycom.io/post/15298</guid><dc:creator><![CDATA[Harm]]></dc:creator><pubDate>Fri, 02 Feb 2018 20:50:23 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Tue, 06 Feb 2018 23:59:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2267">@harm</a><br />
I'm having the same problem,  joins ok with ABP,  but not with OTAA,  I can see LoRa packets on the spectrum analyser waterfall display, but they aren't correct for the Australian LoRaWAN Alliance Channel Allocation, maybe it's defaulting to US channels?</p>
<p dir="auto">By setting channel frequencies using lora.add_channel<br />
lora.add_channel( 8, frequency=916800000, dr_min=0, dr_max=3)</p>
<p dir="auto">I can see the join requests on the gateway, but that's about it.</p>
<p dir="auto">I'm thinking it's a wrong channel allocation in the firmware,  but I have no easy way of checking what was downloaded, once it's in the pycom database, I can't change it. :(</p>
]]></description><link>https://forum.pycom.io/post/15472</link><guid isPermaLink="true">https://forum.pycom.io/post/15472</guid><dc:creator><![CDATA[ray]]></dc:creator><pubDate>Tue, 06 Feb 2018 23:59:35 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Wed, 07 Feb 2018 00:40:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2267">@harm</a> yes...what kind of gateway do u use ? ...and what distance is from node to gateway?</p>
]]></description><link>https://forum.pycom.io/post/15474</link><guid isPermaLink="true">https://forum.pycom.io/post/15474</guid><dc:creator><![CDATA[chumelnicu]]></dc:creator><pubDate>Wed, 07 Feb 2018 00:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Wed, 07 Feb 2018 03:18:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/334">@chumelnicu</a></p>
<p dir="auto">I'm not sure if you were asking me or Harm, but my TTN gateway is a Raspberry Pi with Rising HF RHF0M301 8 channel.</p>
<p dir="auto">Distance to gateway is about 40 ft vertically.</p>
]]></description><link>https://forum.pycom.io/post/15476</link><guid isPermaLink="true">https://forum.pycom.io/post/15476</guid><dc:creator><![CDATA[ray]]></dc:creator><pubDate>Wed, 07 Feb 2018 03:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Wed, 07 Feb 2018 05:32:38 GMT]]></title><description><![CDATA[<p dir="auto">I found the problem,  there was a mismatch with the Device EUI</p>
<pre><code>from network import LoRa
import binascii
lora = LoRa(mode=LoRa.LORAWAN)
print(binascii.hexlify(lora.mac()).upper().decode('utf-8'))
</code></pre>
<p dir="auto">Put that serial number into the device settings on the TTN console.</p>
<p dir="auto">Also I deleted all channels and added only the AU915 uplink channels</p>
<pre><code>for i in range(0, 72):
    lora.remove_channel(i)


lora.add_channel( 8, frequency=916800000, dr_min=0, dr_max=3)
lora.add_channel( 9, frequency=917000000, dr_min=0, dr_max=3)
lora.add_channel(10, frequency=917200000, dr_min=0, dr_max=3)
lora.add_channel(11, frequency=917400000, dr_min=0, dr_max=3)
lora.add_channel(12, frequency=917600000, dr_min=0, dr_max=3)
lora.add_channel(13, frequency=917800000, dr_min=0, dr_max=3)
lora.add_channel(14, frequency=918000000, dr_min=0, dr_max=3)
lora.add_channel(15, frequency=918200000, dr_min=0, dr_max=3)
</code></pre>
<p dir="auto">Excuse the double posting,  I couldn't get the code markers working.</p>
]]></description><link>https://forum.pycom.io/post/15482</link><guid isPermaLink="true">https://forum.pycom.io/post/15482</guid><dc:creator><![CDATA[ray]]></dc:creator><pubDate>Wed, 07 Feb 2018 05:32:38 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Wed, 07 Feb 2018 21:14:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2337">@ray</a> It is a RaspberryPi 3 with IMST iC880A. About 10 meters vertically above me. Other nodes have no problems communicating with it. The Fipy's connect request is received and visible in TTN's console. Though the application keeps saying 'Not yet joined'.</p>
]]></description><link>https://forum.pycom.io/post/15521</link><guid isPermaLink="true">https://forum.pycom.io/post/15521</guid><dc:creator><![CDATA[Harm]]></dc:creator><pubDate>Wed, 07 Feb 2018 21:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Wed, 07 Feb 2018 21:29:37 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your responses. There is hope;-)</p>
<p dir="auto">(@chumelnicu: sorry, the previous was my answer to you ;-))</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2337">@ray</a> : Thank you for your answer though I already did (print out and) put the serial number into the Device EUI in the TTN's console. That is were you put it as well I assume? After that the TTN console's data panel did display the connect request though the Fipy never gets past the message 'Not yet joined...'. That's why I suspect the Fipy never receiving the answer from the Gateway (although that is being send according to the Gateway's logging).</p>
<p dir="auto">I did not yet remove and add any channels and will try that as soon as I've got time. First I have to figure out the European settings though.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/334">@chumelnicu</a> : did you use any European settings and get it running 'out of the box'?</p>
]]></description><link>https://forum.pycom.io/post/15522</link><guid isPermaLink="true">https://forum.pycom.io/post/15522</guid><dc:creator><![CDATA[Harm]]></dc:creator><pubDate>Wed, 07 Feb 2018 21:29:37 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Thu, 08 Feb 2018 02:10:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi Harm,<br />
Here is the source I'm running (file attached), you will need to change to uplink frequencies that suit your local gateway.<br />
<img src="/assets/uploads/files/1518054729039-lorwanotaa.png" alt="0_1518054728803_lorwanotaa.png" class="img-responsive img-markdown" /></p>
<p dir="auto">And here is the TTN device data screen</p>
<p dir="auto"><img src="/assets/uploads/files/1518054883158-ttndevicedata-resized.png" alt="0_1518054882560_ttndevicedata.png" class="img-responsive img-markdown" /></p>
<p dir="auto"><a href="/assets/uploads/files/1518054650365-lorawan.py">0_1518054650154_LoRaWAN.py</a></p>
]]></description><link>https://forum.pycom.io/post/15529</link><guid isPermaLink="true">https://forum.pycom.io/post/15529</guid><dc:creator><![CDATA[ray]]></dc:creator><pubDate>Thu, 08 Feb 2018 02:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Thu, 08 Feb 2018 05:52:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2337">@ray</a> Thanks Ray, I compared your code to mine and .. found the problem in my code. When getting that Device EUI two weeks ago, I must have put and left one initialization too many in my code. Taking it out... makes it work immediately.</p>
<p dir="auto">So, I did not have to take out the frequency settings too let it work. Just making sure that the right Device EUI is in TTN should make the standard code work.</p>
<p dir="auto">Thanks all for your answers! Solved;-)</p>
]]></description><link>https://forum.pycom.io/post/15531</link><guid isPermaLink="true">https://forum.pycom.io/post/15531</guid><dc:creator><![CDATA[Harm]]></dc:creator><pubDate>Thu, 08 Feb 2018 05:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Thu, 27 Dec 2018 18:35:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2267">@harm</a> hi, how did you do ABP connection ? I tried but it is not working. And i want to know just one device enough for send data to TTN?</p>
]]></description><link>https://forum.pycom.io/post/24514</link><guid isPermaLink="true">https://forum.pycom.io/post/24514</guid><dc:creator><![CDATA[smnc]]></dc:creator><pubDate>Thu, 27 Dec 2018 18:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to Connect FiPy with Lora OTAA to TTN? on Thu, 27 Dec 2018 19:59:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/3468">@smnc</a> As prerequisite for a ABP join you have to register an applications and in the application your device at the TTN server. See <a href="https://docs.pycom.io/gettingstarted/registration/lora/ttn.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/gettingstarted/registration/lora/ttn.html</a><br />
If during device registration you select ABP, the device address and communication keys are generate by the server.  This data, device address, network session key  and application software key, have to be used in your script. You just copy the from you web site and put them into your script. This data will not change, unless you ask at the server to do so.<br />
TTN has a message playback protection. That might be a problem during testing. You can disable that in the device setting at the TTN server.<br />
To be able to exchange data with the TTN server, you need a node (you Fipy) and a gateway. If there is a gateway close enough you can use that one. Gateways typically accept messages from any node.<br />
LoRa uses vertical polarity, so put your antenna upright. Not doing will not harm your device, but lower the chance of successful communication.</p>
]]></description><link>https://forum.pycom.io/post/24515</link><guid isPermaLink="true">https://forum.pycom.io/post/24515</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Thu, 27 Dec 2018 19:59:16 GMT</pubDate></item></channel></rss>