<?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>How to increase RTT download buffer in Modem Shell</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/124500/how-to-increase-rtt-download-buffer-in-modem-shell</link><description>I am trying to program modem keys using pylink and Modem_Shell with RTT enabled and it is almost working. 
 I find that the maximum download size for a command that I send is 32. How do I increase this? 
 JLink Viewer allows me to send a large string</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Sep 2025 12:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/124500/how-to-increase-rtt-download-buffer-in-modem-shell" /><item><title>RE: How to increase RTT download buffer in Modem Shell</title><link>https://devzone.nordicsemi.com/thread/549433?ContentTypeID=1</link><pubDate>Mon, 22 Sep 2025 12:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f8a0c8-a785-4326-894c-2024334dcce5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that you found a solution to your problem. What you can also check is the buffering setting on the nRF, specifically this one:&lt;/p&gt;
&lt;p&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_DOWN&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;RTT is mostly used from nRF-&amp;gt;PC, so the buffering from PC-&amp;gt;nRF is kept smaller.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase RTT download buffer in Modem Shell</title><link>https://devzone.nordicsemi.com/thread/549345?ContentTypeID=1</link><pubDate>Fri, 19 Sep 2025 16:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed848731-c427-499a-b99b-5b901072fa02</guid><dc:creator>RichM</dc:creator><description>&lt;p&gt;I actually figured this part out... dice up the output with a little delay between chunks. Still not quite working, but getting closer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;def cmdToRTT(data_to_write):&lt;br /&gt;&amp;nbsp; &amp;nbsp; print (&amp;quot;RTT&amp;gt;&amp;gt;&amp;quot; + data_to_write)&lt;br /&gt;&amp;nbsp; &amp;nbsp; data_to_write = data_to_write + &amp;quot;\n&amp;quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; byteData_to_write = data_to_write.encode(&amp;#39;utf-8&amp;#39;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; for i in range(0, len(byteData_to_write), 30):&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print (byteData_to_write[i:i+30])&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bytesWritten = jlink.rtt_write(0, byteData_to_write[i:i+30])&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print (i, bytesWritten,&amp;quot; Bytes were written&amp;quot;)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; time.sleep(1)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>