<?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>[Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112633/bluetooth-filter-name</link><description>Hello, 
 I am programming BLE with the nRF52840-DK. [Toolchain Manager: v1.3.0, IDE: Visual Studio Code (VSCode), SDK: ncs v2.6.0 ] 
 I am trying to use the device name as a filter type. 
 However, even though DEVICE_NAME(peripheral: &amp;quot;SEONG&amp;quot;) and FILTER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2024 05:42:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112633/bluetooth-filter-name" /><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/493269?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 05:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:224f3e16-5995-4a29-9f60-e144980996b2</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;Can you try setting CONFIG_BT_SCAN_NAME_CNT to 3?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/493187?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 13:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638b1e18-4626-48a7-a268-e2a60eef8f60</guid><dc:creator>Mihaela</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I also had a similar problem as explained here.&lt;br /&gt;I am referring to this:&lt;em&gt; However, even though DEVICE_NAME(peripheral: &amp;quot;SEONG&amp;quot;) and FILTER(central: &amp;quot;SEONGMIN&amp;quot;) are not exactly the same, they still get connected.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The same&amp;nbsp;thing happens to me. I am using&amp;nbsp;BT_SCAN_FILTER_TYPE_NAME and expecting that the peripheral device will connect only if the full name is matched with the filter.&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;However, I have a case where the filter on the central&amp;nbsp;device is set to &amp;quot;PRI&amp;quot;, but it will connect to the device that is advertising only &amp;quot;P&amp;quot;, so&amp;nbsp;DEVICE_NAME(peripheral: &amp;quot;P&amp;quot;) and FILTER(central: &amp;quot;PRI&amp;quot;)&amp;nbsp;connect.&amp;nbsp;Why is the behavior like this, and is there a way to avoid it?&lt;/p&gt;
&lt;p&gt;The configuration is&amp;nbsp;similar to the one pasted above, with difference in the two configs:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT_SCAN_UUID_CNT=0
CONFIG_BT_SCAN_NAME_CNT=1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Mihaela&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/493006?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 14:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1dc8d2-3f69-454d-b933-cafcee09c0d2</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The (full) name (BT_SCAN_FILTER_TYPE_NAME) sets up a filter scanning for full name advertisements.&lt;/p&gt;
&lt;p&gt;This means for instance if the name of the device you are looking for is &amp;quot;MyDevice&amp;quot; and the full name fits in the advertising packet, a filter on &amp;quot;MyDevice&amp;quot; as full name will match the device. If however the device does not have enough space in the advertisement to advertise the full name, and instead it advertises only a short name, then you will not get a match.&lt;/p&gt;
&lt;p&gt;The short name (BT_SCAN_FILTER_TYPE_SHORT_NAME) sets up a filter scanning for short name advertisements.&lt;/p&gt;
&lt;p&gt;This means for instance if the name of the device you are looking for is &amp;quot;MyDevice&amp;quot; and it is advertised as &amp;quot;MyDev&amp;quot; due to that being the available space for advertising a short name in the advertising packet, and the minimum setting for short name length is 5 or higher, then you will get a match.&lt;/p&gt;
&lt;p&gt;Continuing hte same example, if on the other hand you find a device with short name of &amp;quot;MyDevv&amp;quot;, you will not get a match, since the beginning of the short name does not match perfectly with what was registered as the device name you were looking for. Likewise, you will not get a match which is too short.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/492834?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 01:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb187ba-9708-445c-aeb4-1c3a9f2ae9fd</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;are you there..?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/491719?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2024 05:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4acb90eb-b541-402e-8b4a-01e3bc00c5a9</guid><dc:creator>seongmincho</dc:creator><description>&lt;p&gt;can you explain the exact difference between the &amp;#39;&lt;span&gt;short name&amp;#39;(&lt;/span&gt;&lt;span&gt;BT_SCAN_FILTER_TYPE_SHORT_NAME) and the &amp;#39;name&amp;#39;(BT_SCAN_FILTER_TYPE_NAME) in filter type?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [Bluetooth] filter name</title><link>https://devzone.nordicsemi.com/thread/491660?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 16:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:832c2602-5101-46b0-8905-3495f8710729</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Filtering is based on the contents of the advertisements. For long device names, typically a shortened name is used. This can be either a predefined name, or is done automatically by shortening the full device name by removing characters from the end.&lt;/p&gt;
&lt;p&gt;What might happen in this instance, is if the full name is SEONGMIN, it may, depending on the size available in the advertising package, be shortened to for instance &amp;quot;SEONG&amp;quot; as a short name for the advertising.&lt;/p&gt;
&lt;p&gt;You can for instance use the nRF Connect for Desktop BLE app, or one of the nRF Connect for smartphone apps, to investigate what contents (including name) appears in the advertising packet for the peripheral device.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>