<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF91 - Maximizing nb-iot data throughput</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88685/nrf91---maximizing-nb-iot-data-throughput</link><description>Hi, 
 I&amp;#180;ve been trying to improve data transmission from an nRF91 dev board through nb-iot to Azure IOT-hub and always got a socket disconnection event when I tried to send too much. Found out it probably had to do with the tx buffer for TLS transmissions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Jun 2022 12:14:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88685/nrf91---maximizing-nb-iot-data-throughput" /><item><title>RE: nRF91 - Maximizing nb-iot data throughput</title><link>https://devzone.nordicsemi.com/thread/371391?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76798e1d-ee1e-4d05-88f0-5095ace258d7</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Atli,&lt;/p&gt;
[quote user=""]I´ve been trying to&amp;nbsp;improve data transmission from an nRF91 dev board through nb-iot to Azure IOT-hub and always got a socket disconnection event when I tried to send too much. [/quote]
&lt;p&gt;&lt;span&gt;Socket disconnection might be an issue with libmodem &amp;lt; 2.0.0. The suggestion from our developers is to try NCS v2.0.0 with libmodem v2.0.1+b1. &lt;/span&gt;&lt;span&gt;Additionally, you can&amp;nbsp;turn on CONFIG_NRF_MODEM_LOG for some helpful messages.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]The function&amp;nbsp;&lt;span&gt;azure_iot_hub_send&lt;/span&gt;&lt;span&gt;(&amp;amp;msg) seems to stall (~400 - 700ms) after several transmissions (like it´s waiting to send the buffer to the cellular tower) or the socket disconnects.&lt;/span&gt;[/quote]
&lt;p&gt;&lt;span&gt;As for the stalling, that&amp;#39;s to be expected when the application sends more data than how much the modem can transmit on-air with the time it is given by the cellular network. Data to be sent on air is buffered, and when that buffer is full send() waits for memory at the socket as per POSIX.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>