<?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>TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19915/tftp-dfu-block-size</link><description>I try to integrate the CoAP Server and TFTP DFU example code, and it works well. 
 [ENV] 
 
 IoT SDK v0.9.0 
 nRF52832 DK 
 
 According to the specification, the MTU of L2CAP is 1280 bytes. 
 The default APP_TFTP_BLOCK_SIZE in the TFTP DFU example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Mar 2017 11:59:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19915/tftp-dfu-block-size" /><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77502?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2017 11:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ede538af-8b92-42ef-9947-65b976ad766c</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Can you please post some wireshark sniffer logs? Start wireshark on the bt0 interface. Then we can see if the nRF side or the PC side rejects the blocksize.&lt;/p&gt;
&lt;p&gt;If the purpose of increasing the block size is to increase the speed, you should consider lowering the connection interval to 7.5ms. You can do this by writing:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;echo 7.5 &amp;gt; /sys/kernel/debug/bluetooth/hci0/conn_min_interval
echo 7.5 &amp;gt; /sys/kernel/debug/bluetooth/hci0/conn_max_interval
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77501?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 04:25:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:552a51c2-dec3-4544-a0a5-437905621934</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;yes, it still works with APP_TFTP_BLOCK_SIZE = 512.&lt;/p&gt;
&lt;p&gt;I have added those 2 definition, and my tftp configuration is :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;TFTP_USERNAME=&amp;quot;pi&amp;quot;
TFTP_DIRECTORY=&amp;quot;/srv/tftp&amp;quot;
TFTP_ADDRESS=&amp;quot;[::]:69&amp;quot;
TFTP_OPTIONS=&amp;quot;-s -l -6 -c --blocksize 1024&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also tried to use the example tftp_dfu from SDK, but it did not work too.
The LOG looks the same with my application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77499?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 10:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f606ff6-ad5e-4299-a329-8163979ba9aa</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;And it still works with APP_TFTP_BLOCK_SIZE set to 512 bytes? You have added the --blocksize option to the tftp server?&lt;/p&gt;
&lt;p&gt;I took the tftp dfu example from the SDK, applied these three changes and it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77500?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2017 04:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9731a1d9-d601-4b6c-90cd-37c933e1b595</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;Thanks for your recommendation, but it still not works.&lt;/p&gt;
&lt;p&gt;The problem is still the same no matter I try to add MEMROY_MANAGER_XLARGE_BLOCK_COUNT and MEMORY_MANAGER_XLARGE_BLOCK_SIZE as you mentioned, or edit the MEMROY_MANAGER_LARGE_BLOCK_SIZE to larger number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77498?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2017 15:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074c9801-1ba3-4080-8f9b-f0cd3f8407bf</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The problem is actually with the memory manager. The largest blocksize is defined to be 1024 bytes, but the data with overhead can be up to 1280 bytes. You can add these two lines to sdk_config.c (preferably under MEMORY_MANAGER_LARGE_BLOCK_SIZE):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 2
#define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1280
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77497?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2017 04:30:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529d467a-3e6c-492c-bb51-3e721e2f6fde</guid><dc:creator>Amy</dc:creator><description>&lt;p&gt;I have tried it but the situation is still the same !!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TFTP DFU Block Size</title><link>https://devzone.nordicsemi.com/thread/77496?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 16:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce38033-d739-4d95-92b4-41b736dbeff0</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Can you try to change the max block size on the tftp server (see &lt;a href="https://ubuntuforums.org/showthread.php?t=2290262"&gt;here&lt;/a&gt;)?:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cd /etc/default/
nano tftpd-hpa

in the option quotes add --blocksize 1024

save it and then restart tftpd 

/etc/init.d/tftpd-hpa restart
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>