<?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[value of tx_time_on_air of the lora.stats() function]]></title><description><![CDATA[<p dir="auto">I needed to know how long it takes my lopy to send data packets of different sizes to the gateway. I use the lora.stats() function, but even if I modify the package size, it still gives the same value as tx_time_on_air, so I think it's not the value I'm looking for. Is there any way to get this data?</p>
]]></description><link>https://forum.pycom.io/topic/3120/value-of-tx_time_on_air-of-the-lora-stats-function</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 18:02:52 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3120.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Apr 2018 08:46:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Wed, 25 Apr 2018 08:46:40 GMT]]></title><description><![CDATA[<p dir="auto">I needed to know how long it takes my lopy to send data packets of different sizes to the gateway. I use the lora.stats() function, but even if I modify the package size, it still gives the same value as tx_time_on_air, so I think it's not the value I'm looking for. Is there any way to get this data?</p>
]]></description><link>https://forum.pycom.io/post/18996</link><guid isPermaLink="true">https://forum.pycom.io/post/18996</guid><dc:creator><![CDATA[imasd]]></dc:creator><pubDate>Wed, 25 Apr 2018 08:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Wed, 25 Apr 2018 17:02:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2637">@imasd</a> How much are you changing the payload size? There's quite a bit of overhead in LoRaWAN, so for small payloads the total time on air does not vary much (say, if you change from 1 to 3 bytes for instance). If you go from 1 to the max payload for that data rate you should indeed see a significant difference, though.</p>
<p dir="auto">Can you share the values you got (including region, data rate, and payload size)?</p>
]]></description><link>https://forum.pycom.io/post/19009</link><guid isPermaLink="true">https://forum.pycom.io/post/19009</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Wed, 25 Apr 2018 17:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Thu, 26 Apr 2018 09:57:32 GMT]]></title><description><![CDATA[<p dir="auto">The values ​​that I obtained, with lora raw, are the following:<br />
sf = 7, 1byte = 83ms, 10bytes = 83ms, 26bytes = 83ms<br />
sf = 10, 1b = 535ms, 10b = 535ms, 26b = 535ms<br />
sf = 12, 1b = 1975ms, 10b = 1975ms, 26b = 1975ms<br />
As you can see, regardless of the number of bytes, the function returns the same time values ​​in the air. I've tried LORAWAN and the same thing happens.</p>
]]></description><link>https://forum.pycom.io/post/19019</link><guid isPermaLink="true">https://forum.pycom.io/post/19019</guid><dc:creator><![CDATA[imasd]]></dc:creator><pubDate>Thu, 26 Apr 2018 09:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Thu, 26 Apr 2018 10:49:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2637">@imasd</a> The time on air can be calculated from the data rate and the message size plus overhead. If you connect to TTN, it will tell you too the stimated time on air. Using two messages with different payload length, you can determine the parameters for future messages.<br />
The bit rate for a cerrain data rate is given by the LoRA regional parameters document. It varies with the region you're in.<br />
Besides that, lora.stats() gives you the information for the most recent received message. I could not tell from your post whther you call lora.stat() at the sender or receiver side.</p>
]]></description><link>https://forum.pycom.io/post/19020</link><guid isPermaLink="true">https://forum.pycom.io/post/19020</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Thu, 26 Apr 2018 10:49:38 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Thu, 26 Apr 2018 11:23:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> <code>lora.stats()</code> also includes some data about the last sent message. But it seems the LoRa stack gets some of the info wrong...</p>
]]></description><link>https://forum.pycom.io/post/19022</link><guid isPermaLink="true">https://forum.pycom.io/post/19022</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Thu, 26 Apr 2018 11:23:54 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Thu, 26 Apr 2018 13:57:45 GMT]]></title><description><![CDATA[<p dir="auto">I suggest some air time/data rate calculator, e.g. :<br />
<a href="https://www.loratools.nl/#/airtime" target="_blank" rel="noopener noreferrer nofollow">https://www.loratools.nl/#/airtime</a><br />
<a href="http://www.rfwireless-world.com/calculators/LoRa-Data-Rate-Calculator.html" target="_blank" rel="noopener noreferrer nofollow">http://www.rfwireless-world.com/calculators/LoRa-Data-Rate-Calculator.html</a></p>
<p dir="auto">I've also created a topic with Python 3/MicroPython code to calculate air time :<br />
<a href="https://forum.pycom.io/topic/3135/air-time-calculation-in-micro-python">Air Time calculation in (Micro)Python</a></p>
]]></description><link>https://forum.pycom.io/post/19029</link><guid isPermaLink="true">https://forum.pycom.io/post/19029</guid><dc:creator><![CDATA[rcolistete]]></dc:creator><pubDate>Thu, 26 Apr 2018 13:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Fri, 17 Aug 2018 23:38:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> The time on air can change with the distance???</p>
]]></description><link>https://forum.pycom.io/post/21657</link><guid isPermaLink="true">https://forum.pycom.io/post/21657</guid><dc:creator><![CDATA[braulio]]></dc:creator><pubDate>Fri, 17 Aug 2018 23:38:31 GMT</pubDate></item><item><title><![CDATA[Reply to value of tx_time_on_air of the lora.stats() function on Sat, 18 Aug 2018 05:53:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2536">@braulio</a> The time on air changes with the data rate. And for larger distances, the sending device may be set for lower data rates. But that does not happen by itself.</p>
]]></description><link>https://forum.pycom.io/post/21660</link><guid isPermaLink="true">https://forum.pycom.io/post/21660</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sat, 18 Aug 2018 05:53:21 GMT</pubDate></item></channel></rss>