<?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>ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55679/att-assertion-fail-when-subscribing-to-characteristic-using-nrf9160-as-central</link><description>Hi, 
 I&amp;#39;m writing a central application for the nRF9160 DK. The central connects to an nRF52832 peripheral and subscribes to a characteristic whose CCCD handle and value handle is known prior to connecting. It does not perform service discovery. In the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2020 12:41:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55679/att-assertion-fail-when-subscribing-to-characteristic-using-nrf9160-as-central" /><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/232828?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 12:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d3c9458-7cbf-4f80-9393-123c7287c600</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;The Zephyr ATT was apparently rewritten a while ago, and it seems the changes made it into fw-nrfconnect-nrf&amp;nbsp;v1.2.0-rc1 released just now.&amp;nbsp;With the new changes, this issue has vanished!&lt;/p&gt;
&lt;p&gt;I can finally close this thread &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/228329?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 11:09:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac236c8-64d8-4989-8969-fc542e90df58</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;That sound like a good idea&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44d.svg" title="Thumbsup"&gt;&amp;#x1f44d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/228325?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 10:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d466a5de-e733-4b1e-bd2b-87c1d2040b78</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Alright, thanks. I&amp;#39;ll ask on the zephyr slack again and post here if the problem is resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/228191?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 14:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3f01b5f-c356-48fa-9149-34171f161157</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I took a look at and tested your code, and was not able to get to the bottom of it, unfortunately. I think you will get better help&amp;nbsp;&lt;span&gt;on the Zephyr slack channel since you will get in touch with the developers that have written&amp;nbsp;the BLE software.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We don&amp;#39;t give support for Zephyr running on nRF52 at the moment, and I am sorry for not telling you this earlier.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/227544?ContentTypeID=1</link><pubDate>Sun, 05 Jan 2020 17:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fc388a0-5cc3-42d9-8013-ccb42e049586</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m attaching an altered version of my nRF9160 code that works with the HRS example from nRF SDK v15.2 on PCA10040. If you look in the file &amp;quot;project_stripped/src/ble.c&amp;quot;, I&amp;#39;ve declared a boolean called &amp;quot;do_discover&amp;quot;. When set to true, the nRF9160 performs service discovery and then subscribes to hard-coded&amp;nbsp;ccc_handle and value_handle (which match the handles I&amp;#39;m getting on my PCA10040). This should work on your end as well. When&amp;nbsp;&lt;span&gt;&amp;quot;do_discover&amp;quot; is false, the nRF9160 tries to subscribe inside the connected callback and fails the assertion.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flashing a PCA10040 with the HRS sample code from SDK v15.2 and running the attached code on an nRF9160 should work, however you may need to change the hard-coded values for it to work on your end. Also, I&amp;#39;m using west directly on Ubuntu 18.04 for building and flashing (no SES project unfortunately), but hopefully that&amp;#39;s not an issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your help!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4628.project_5F00_stripped.zip"&gt;devzone.nordicsemi.com/.../4628.project_5F00_stripped.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ATT assertion fail when subscribing to characteristic using nRF9160 as central</title><link>https://devzone.nordicsemi.com/thread/226733?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 13:35:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827ead87-16e8-400c-ad4a-5caec1f77fe6</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Could you upload the code? Then I can try to reproduce the issue and get to the bottom of it. I can make the ticket private if you would like to?&lt;/p&gt;
&lt;p&gt;You may&amp;nbsp;experience delayed answers since huge parts of the support team are on vacation. Most of the staff will be back 2 of January, and you&amp;#39;ll get help then.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>