<?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 client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64392/coap-client-sample---send-command-freezes-after-a-few-iterations</link><description>Hi, 
 as discussed in different issue on DevZone . We have discovered that send command freezes the program in the CoAP client sample. The Nordic employee Hakon has confirmed that it also happens on his board. 
 Could you please try to inspect the issue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Sep 2020 05:56:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64392/coap-client-sample---send-command-freezes-after-a-few-iterations" /><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/268627?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 05:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c80ce7f5-2b3f-47a6-835b-2ce335dae230</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi Heidi,&lt;/p&gt;
&lt;p&gt;We still have not been able to troubleshoot it in our main application. Seems like the example issue is a different one then we are experiencing in the main firmware.&amp;nbsp;I am closing this as it is example related and I will open a new private issue where we will provide modem trace for analysis from our main firmware.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/266974?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 11:18:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35534dc1-6e29-47e0-bc1e-4b7f229b5874</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again, so they took a look at the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reason it&amp;#39;s freezing is because the received data is never read. So the buffers that the modem uses to send information to the application code fills up and then the modem can&amp;#39;t even send the acknowledge message back to the application core when the application core tries to send a CoAP message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;add a read in the for-loop after the CoAP package is sent, it should run fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/266726?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 12:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc55d2f6-38ed-4fe2-8f07-c1d168048032</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;So in the meantime, could you please at least provide us your input on collecting the modem trace on custom boards?&lt;/p&gt;
&lt;p&gt;[quote userid="76220" url="~/f/nordic-q-a/64392/coap-client-sample---send-command-freezes-after-a-few-iterations/264468"][/quote]&lt;/p&gt;
&lt;p&gt;We would be very happy if we could capture the modem trace. However, we have not found a solution on how to do this on our custom board. The trace from nRF9160 could be gathered only on UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In our setup, we use nRF9160 and nRF52820 that are wired via one UART interface, so we don&amp;#39;t know how to pass&amp;nbsp;the trace through it without completely rewriting the application. If there would be an interface from Nordic on how to save the trace to the internal/external flash, so it could be sent via Bluetooth/LTE afterward, it would greatly help us.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/266118?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 07:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9371092-6f7b-44cf-bbd6-d256cdde5edb</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, I completely understand that this has taken a long time. Unfortunately, this is to be expected during summer.&amp;nbsp;The developers have a lot of other cases, just like yours, to look into at the same time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;They will run the sample and confirm that this is, in fact, a bug, and then try to provide you with a workaround.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/266107?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 07:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8aa58f9-d986-485e-b2d4-af4b535e46be</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Could we at least know the cause or workaround? Our app on the device randomly freezes, which means it is unusable, and we have not been able to get any solution/fix for two months. To be honest, I am quite disappointed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/265080?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 11:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096a7237-491a-4032-90a0-2042ca361981</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, there is somebody assigned to inspect this issue from the bsdlib team.&lt;/p&gt;
&lt;p&gt;We are really sorry for the wait, but this is to be expected during the summer holiday season in Norway. I will let you know as soon as I have any news.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/265063?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2020 11:15:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7188366e-d4e0-4dbb-9d10-33fd10b353af</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi Heidi, could someone please finally inspect this issue? Its already 2 months ago since we reported it first here&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/support/251815#permalink=575323"&gt;https://devzone.nordicsemi.com/support/251815#permalink=575323&lt;/a&gt;. It is something in BSDlib which we cannot fix on our own and the device is&amp;nbsp;not usable without the fix. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/264468?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 12:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef2f4b8-c74e-440a-8cd5-1bd085145e20</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi, I think that this has nothing to do with the CoAP client sample. It is more likely bsdlib issue (see the note about blocking and non-blocking options).&lt;/p&gt;
[quote userid="82276" url="~/f/nordic-q-a/64392/coap-client-sample---send-command-freezes-after-a-few-iterations/264292"]What is the reason you aren&amp;#39;t able to take one on your custom board? Perhaps we can work around it.&amp;nbsp;[/quote]
&lt;p&gt;We would be very happy if we could capture the modem trace. However, we have not found a solution on how to do this on our custom board. The trace from nRF9160 could be gathered only on UART.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In our setup, we use nRF9160 and nRF52820 that are wired via one UART interface, so we don&amp;#39;t know how to pass&amp;nbsp;the trace through it without completely rewriting the application. If there would be an interface from Nordic on how to save the trace to the internal/external flash, so it could be sent via Bluetooth/LTE afterward, it would greatly help us.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/264292?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 13:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929ac9bc-d7b3-419b-aaba-d71bc51c9007</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, I understand. The person responsible for the CoAP client sample isn&amp;#39;t back from vacation until Monday the 17th, but I will try to find someone else who can take a look at this.&lt;/p&gt;
&lt;p&gt;I believe taking a modem trace would be the best course of action. What is the reason you aren&amp;#39;t able to take one on your custom board? Perhaps we can work around it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/264262?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 12:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8083fce-7ac8-46a2-9774-61c0db35110f</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Heidi, I apologize for putting the pressure on you. However, is there anything we can do to speed up the process? For us, it is now a blocker issue because the whole app freezes and then the device couldn&amp;#39;t be used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/264166?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 07:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:019331a5-f501-4116-8c6d-7a673ed072dc</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, no there is no update on this yet, unfortunately.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/263742?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 06:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e50a406-1ac7-4292-b16a-cfa04d12fba5</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi, any update on this, please? We just discovered that when we set the socket for non-blocking operation using&amp;nbsp;nrf_fcntl() then it won&amp;#39;t freeze all day long. However, the non-blocking socket has&amp;nbsp;much worse&amp;nbsp;performance in terms of connection stability and message latency. Ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/263163?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 09:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80e52e76-7254-4272-9658-ee041c6b5491</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will escalate this issue to the developers and let you know when I hear back.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/263119?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2020 07:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e3a975-00b8-426d-94ae-f5cc1b55fe56</guid><dc:creator>Luk&amp;#225;š</dc:creator><description>&lt;p&gt;Hi Hakon, I know that many your collegues are still on vacation. But could you please try to push this issue? It is something that we reported already month ago and in our app, it is critical issue because it freezes the whole device. And it is not possible to recover.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CoAP client sample - send command freezes after a few iterations</title><link>https://devzone.nordicsemi.com/thread/262560?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 11:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f9b12e6-9d0c-4a73-b3e9-5ce91a8386da</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I will report this internally as a potential bug. Some delay in response time is to be expected as many staff members are still on vacation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>