<?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>COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107566/coap-block-transfer-with-1024-block-size-does-not-work</link><description>Hi, 
 I am trying to use CoAP Block Transfer to transfer firmware images from server to nRF5340 custom board. We are using OpenThread library for CoAP. 
 The block transfer is successful with all block sizes except 1024. In the case of 1024, I can observe</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Mar 2026 11:56:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107566/coap-block-transfer-with-1024-block-size-does-not-work" /><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/562311?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 11:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f403723a-aaee-4f06-bfd8-d709a6e38115</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Not from my side, at least. There may have been some updates in NCS solving this if it was a bug, but not that I am aware of. If you are seeing the same issue, please open a new ticket, with detailed description on how to reproduce the issue you are seeing, including the NCS version and what device you are using.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/562303?ContentTypeID=1</link><pubDate>Mon, 02 Mar 2026 10:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c2b654-9352-46fd-9494-6a0e1cf097e2</guid><dc:creator>drumpros</dc:creator><description>&lt;p&gt;Hi there, Did this issue get solved? i am having a similar issue. 512 works fine but i cannot get 1024 to work on SDK 2.5.3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/468241?ContentTypeID=1</link><pubDate>Fri, 09 Feb 2024 14:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ebd00d7-f595-4253-b69f-c2063ffa7244</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;If you need to share something you cannot share in public, you can create a private ticket. But if it doesn&amp;#39;t contain sensitive information, we can just continue here.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/468040?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 12:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99496d90-7c03-4007-97b1-1140e053a61f</guid><dc:creator>roshangeoroy</dc:creator><description>&lt;p&gt;Hi Edwin,&lt;br /&gt;I apologize for the late reply.&lt;/p&gt;
&lt;p&gt;If the client and server application is absolutely necessary, can we continue this over a private ticket?&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;br /&gt;Rosh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/466184?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 10:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0887ef60-546e-4b14-84eb-e00c10ea4e38</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understand. Do you have a &lt;strong&gt;client and server&lt;/strong&gt; application that you can zip and upload, so that I can replicate the issue? I need to do so in order to investigate, and perhaps show it to our openthread team.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/465719?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 08:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:709bacb8-d33b-4060-98b3-a675515c66c9</guid><dc:creator>roshangeoroy</dc:creator><description>&lt;p&gt;Hey Edwin,&lt;/p&gt;
&lt;p&gt;Appreciate the reply. We use OpenThread CoAP API for block transfer since we are doing the communication over Thread. It has the following function &amp;#39;&lt;strong&gt;otCoapSecureSendRequestBlockWise&amp;#39;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;otError otCoapSecureSendRequestBlockWise(
  otInstance *aInstance,
  otMessage *aMessage,
  otCoapResponseHandler aHandler,
  void *aContext,
  otCoapBlockwiseTransmitHook aTransmitHook,
  otCoapBlockwiseReceiveHook aReceiveHook
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;With this function we send the first GET Request to the server. The consecutive requests are handled by the library. For all the other block sizes that we have tested the aReceiveHook function is called on each block&amp;#39;s arrival.This is not happening only in the case of 1024. The function&amp;nbsp;&lt;strong&gt;otCoapSecureSendRequestBlockWise&amp;nbsp;&lt;/strong&gt;does not return any error. But CoapResponseHandler returns a timeout error after roughly one minute.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/107566/coap-block-transfer-with-1024-block-size-does-not-work/465377"]What block sizes did you test? Does it work with 1025 and 1023?[/quote]
&lt;p&gt;&amp;nbsp;We tested using 64, 128, 256 and 512 bytes block sizes. Sizes of the blocks are provided by OpenThread as an Enum.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;typedef enum otCoapBlockSzx
{
    OT_COAP_OPTION_BLOCK_SZX_16   = 0,
    OT_COAP_OPTION_BLOCK_SZX_32   = 1,
    OT_COAP_OPTION_BLOCK_SZX_64   = 2,
    OT_COAP_OPTION_BLOCK_SZX_128  = 3,
    OT_COAP_OPTION_BLOCK_SZX_256  = 4,
    OT_COAP_OPTION_BLOCK_SZX_512  = 5,
    OT_COAP_OPTION_BLOCK_SZX_1024 = 6
} otCoapBlockSzx;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The log MeshForwarder-: Received IPv6 UDP msg, len:1122, chksum:137c, ecn:no, from:0x8800, sec:yes, prio:normal, rss:-39 comes when I enable OpenThread logs using the configuration&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# CONFIG_OPENTHREAD_DEBUG=y
# CONFIG_OPENTHREAD_L2_DEBUG=y
# CONFIG_OPENTHREAD_LOG_LEVEL_DEBG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rosh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: COAP Block Transfer with 1024 block size does not work</title><link>https://devzone.nordicsemi.com/thread/465377?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 14:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ae9cba-b89f-465e-9346-7cc7a8ca2577</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;What block sizes did you test? Does it work with 1025 and 1023? Do you have an application (preferably client&amp;nbsp;&lt;strong&gt;and&lt;/strong&gt; server) that can reproduce the issue you are seeing? Where does the log come from?&lt;/p&gt;
[quote user=""]MeshForwarder-: Received IPv6 UDP msg, len:1122, chksum:137c, ecn:no, from:0x8800, sec:yes, prio:normal, rss:-39[/quote]
&lt;p&gt;And does the coap_send_request() (is that the API you are using) return 0 or something else?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>