<?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>Another peer manager race condition in SDK 14.2?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30508/another-peer-manager-race-condition-in-sdk-14-2</link><description>I recently experienced an issue with a race condition between peer manager and FDS in SDK 14.2 which was resolved under this case: 
 https://devzone.nordicsemi.com/f/nordic-q-a/29926/bug-in-peer-manager-in-sdk-14-2 
 However, I think I may have now found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2018 08:00:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30508/another-peer-manager-race-condition-in-sdk-14-2" /><item><title>RE: Another peer manager race condition in SDK 14.2?</title><link>https://devzone.nordicsemi.com/thread/121041?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 08:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a11e39e-f944-4fd2-abcd-c23bd057addf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Getting _FORBIDDEN on a sd_ble_gatts_hvx call indicates that your connection requires security (ie: encryption), but it has not gotten to this stage of the connection yet.&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t ignore the error, but rather try again&amp;nbsp;later when the link is fully encrypted and up-and-running.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&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: Another peer manager race condition in SDK 14.2?</title><link>https://devzone.nordicsemi.com/thread/121039?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 06:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01c834c5-07af-4f3e-bb79-be3a513fa75d</guid><dc:creator>jumpingfool</dc:creator><description>&lt;p&gt;Ok, it seems the issue was that security negotiation hadn&amp;#39;t been completed before I wrote to the characteristic - in my bench&amp;nbsp;testing I&amp;#39;m getting NRF_ERROR_FORBIDDEN and haven&amp;#39;t seen the SDK error again.&lt;/p&gt;
&lt;p&gt;For now I&amp;#39;m working around this by just ignoring this error case - is there a &amp;quot;correct&amp;quot; way to handle this, i.e. should I have more conditions on the if statement that wraps the call to sd_ble_gatts_hvx in my code sample above?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Another peer manager race condition in SDK 14.2?</title><link>https://devzone.nordicsemi.com/thread/120903?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 20:58:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65681e6f-f7a1-4645-85e7-bf606120a467</guid><dc:creator>jumpingfool</dc:creator><description>&lt;p&gt;Thanks for your help - I have added the DEBUG flag.&lt;/p&gt;
&lt;p&gt;Now waiting for the issue to recur and then I&amp;#39;ll capture the error data fields and post them here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Another peer manager race condition in SDK 14.2?</title><link>https://devzone.nordicsemi.com/thread/120888?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 16:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:444e15c3-7f82-4161-b64b-8fb9b7ed11fd</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;Could you add the preprocessor define &amp;quot;DEBUG&amp;quot; to your project and check the m_error_data variable once an assert occurs?&lt;/p&gt;
&lt;p&gt;This define will add blocking assertions instead of a system-reset.&lt;/p&gt;
&lt;p&gt;You should then be able to read out m_error_data.line_num/p_file_name/err_code to get more detailed information.&lt;/p&gt;
&lt;p&gt;The 0x4001 error indicates that the error comes from the application, and not specifically where it comes from.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>