<?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>Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24995/zephyr-controller-unable-to-discover-characteristics-after-a-while</link><description>I&amp;#39;m using a NRF52DK with Zephyr controller build attached to Bluez 5.45 to scan, connect and discover characteristics on up to 16 devices in parallel. While testing, everything seems to run fine for a few minutes, until characteristics discovery stops</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Sep 2017 08:58:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24995/zephyr-controller-unable-to-discover-characteristics-after-a-while" /><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98440?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 08:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95521ebc-c1b0-4b4c-b1cd-9e8c183934c0</guid><dc:creator>vich</dc:creator><description>&lt;p&gt;I see the uploaded btsnoop with mynewt controller. The host seems not to be Bluez, as it does not do the HCI sequeunces that BlueZ is known to perform. I dont find the host using LE Read Buffer Size commands to get the buffer counts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98435?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 07:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f0f1d5-36ee-406b-9694-55f591a59d28</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;The BlueZ maintainer mentions you have a &amp;quot;node&amp;quot; app that might be interfering with the correct functioning of the stack, so there&amp;#39;s issues on the Host side here apparently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98436?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 07:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a410942-f36c-4a46-81af-135c06bb76f8</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;We are currently analyzing your log with BlueZ maintainers on IRC (freenode.net, #zephyr-bt). It seems you are injecting commands that can alter the flow of BlueZ. If you are interested in debugging this further please join us on IRC and we can probably help you out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98439?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:44:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b13f59-2ecb-433e-b60e-b142388ed11f</guid><dc:creator>vich</dc:creator><description>&lt;p&gt;I see that you at some point have 14 connections, can you increase the CONFIG_BT_CTLR_TX_BUFFERS=7  to higher value, for example 20. I suspect, suspect, if host is sending more ACL data than 7 at any point. How much do you get as LE read buffer size on mynewt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98438?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:39:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa5393cc-8de9-49d6-aa94-928546ac4e65</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Yes, I also see this with mynewt. I think this is because I had a lot of devices (20 or so) advertising at 20 ms intervals, probably causing a lot of collisions on the advertising channels (which are also used for connection setup as I understood).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98437?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:25:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43acdfc0-55b9-4687-bd1c-f5316e278437</guid><dc:creator>vich</dc:creator><description>&lt;p&gt;Hi bds,&lt;/p&gt;
&lt;p&gt;I see in the snoop log, for example, first &amp;quot;connection failed to establish&amp;quot; at packet number 776, the host is trying to send ATT MTU request on a disconnected connection. This should be ok for the controller, as it will drop the data packet and not track it for num of complete packets. You will not get MTU responses for these disconnected connections.
776	56.021303	c3:71:31:b3:e8:fe ()	f7:11:72:f7:69:b5 (TP)	ATT	11	Sent Exchange MTU Request, Client Rx MTU: 256	&lt;/p&gt;
&lt;p&gt;Do you see these &amp;quot;failed to establish connections&amp;quot; with mynewt?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98447?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 14:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce3531b6-7362-4ba8-88a8-5ef9d101554c</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Can you try increasing the global TX and RX pools to at least twice the maximum number of connections?&lt;/p&gt;
&lt;p&gt;CONFIG_BT_CTLR_RX_BUFFERS=32
CONFIG_BT_CTLR_TX_BUFFERS=32&lt;/p&gt;
&lt;p&gt;and probably the HCI layer buffer count as well:&lt;/p&gt;
&lt;p&gt;CONFIG_BT_RX_BUF_COUNT=32&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98446?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e651c133-25fe-4959-a8f6-e16866089677</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;I attached the file to my initial post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98445?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e0421e2-c9c6-4f69-877d-2574d8ea188d</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;One additional request: could you give us your .config file in outdir/nrf52_pca10040/ ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98444?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d07cad2-0380-4b05-b98f-32e39e63a5ed</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;OK Thanks for the info. We will need to try and reproduce the issue to find out what is going on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98443?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:10:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24de85cb-fc27-4874-819f-76b319630d80</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;Our peripherals are a design based on the nrf52, running a firmware based on your ble uart example. I&amp;#39;m pretty sure it&amp;#39;s not the peripherals though. Because, without touching the peripherals, everything works again as soon as I reset the controller. Also, with Nimble, I don&amp;#39;t have the same problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98442?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 13:04:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27164938-b0a4-4c68-9e24-57a9cf23ac19</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Yep sorry, I did not realize. That said I would still recommend disabling the MSD. Can you let us know what firmware your peripherals are using in order to eliminate possibilities?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98441?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0478238a-c04e-4526-b1df-2bcd685921c6</guid><dc:creator>bds</dc:creator><description>&lt;p&gt;I was using the master.
I doubt it&amp;#39;s the Segger USB to UART, as connection setup and advertisements still worked fine (also see HCI log).
Using myNewt Nimble seems to work better at the moment...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr controller unable to discover characteristics after a while</title><link>https://devzone.nordicsemi.com/thread/98434?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b6a1da1-448b-4bdf-819f-0ad6f54a4654</guid><dc:creator>Carles</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I recall seeing something similar earlier this summer, but it was solved.&lt;/p&gt;
&lt;p&gt;Can you specify which version of Zephyr you are running? Is it 1.8, 1.9 or master? Also this could be the Segger USB to UART bridge, make sure your MSD  is disabled as per these instructions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.zephyrproject.org/doc/tools/nordic_segger.html#disabling-the-mass-storage-device-functionality"&gt;www.zephyrproject.org/.../nordic_segger.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Carles&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>