<?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>BLE Discovery Service Can Not Find Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86316/ble-discovery-service-can-not-find-service</link><description>Hi, 
 
 I have a hardware that I want to connect via BLE and send data via NUS (Nordic UART Service). I can connect to this hardware via the NRF Connect application on android and see the service UUIDs in the Client tab. When I want to connect to the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Apr 2022 07:40:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86316/ble-discovery-service-can-not-find-service" /><item><title>RE: BLE Discovery Service Can Not Find Service</title><link>https://devzone.nordicsemi.com/thread/361401?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 07:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf8c2b57-ed9e-4b94-9c8c-004084338580</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the late reply, but I&amp;#39;ve been out of office most of last week and I&amp;#39;m just now catching up to my backlog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think these issues come from the scan filter you&amp;#39;re using, as it seems specifically related to the discovery manager. Are you sure you didn&amp;#39;t change anything in the discovery procedure at all? If not, is the NUS service actually advertised by the peripheral. The nRFConnect app searches for all kinds of services which is also why it takes longer, while the central UART should only care about the NUS service. This still doesn&amp;#39;t explain why the central isn&amp;#39;t able to discover the NUS service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &amp;quot;NULL attribute&amp;quot; message points to the discovery callback not getting any attributes, so I guess the peripheral isn&amp;#39;t providing these to the central for some reason.&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><item><title>RE: BLE Discovery Service Can Not Find Service</title><link>https://devzone.nordicsemi.com/thread/360421?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 06:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4ab01b8-ee35-47ec-b226-b09c248a7832</guid><dc:creator>ctzn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The change I made in the uart_central sample is below.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define DEVICE_NAME	&amp;quot;TFT100_LE&amp;quot;
.
.
.

static int scan_init(void)
{
    .
    .
    .
	err = bt_scan_filter_add(BT_SCAN_FILTER_TYPE_NAME, DEVICE_NAME);
	if (err) {
		LOG_ERR(&amp;quot;Scanning name filter cannot be set (err %d)&amp;quot;, err);
		return err;
	}

	err = bt_scan_filter_enable(BT_SCAN_NAME_FILTER, false);
	if (err) {
		LOG_ERR(&amp;quot;Name Filter cannot be turned on (err %d)&amp;quot;, err);
		return err;
	}
		
	LOG_INF(&amp;quot;Scan module initialized&amp;quot;);
	return err;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There is only 1 piece of hardware with this BLE name in my environment.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The services seen in the nRF connect application on android for the peripheral device are shown in the screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nrfconnect_5F00_android.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, the records in the nRF Logger in android are listed below. It says services discovered about 550 milliseconds after service discovery. In the central_uart sample, service discover does not wait this long.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nrflogger_5F00_android.jpeg" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Discovery Service Can Not Find Service</title><link>https://devzone.nordicsemi.com/thread/360416?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 06:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c70599a1-2c20-4398-a7d9-093cb2bfce40</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you show me&amp;nbsp;what exact changes you made to the filter on the central side? Are you sure there aren&amp;#39;t more than one peripheral device with the name you&amp;#39;re scanning for? And can you confirm whether the peripheral device is based on the peripheral_uart sample project and does indeed have the NUS service implemented?&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>