<?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>A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67583/a-problem-in-ble-service-discovery</link><description>Hi, 
 
 I am developing a product based on SDK v15.3.0 and SoftDevice v6.1.1. my product acts as a BLE central device. 
 On the peripheral side, is an iOS application which contains a service with &amp;quot;fb349b5f8000008000100000fdff0000&amp;quot; UUID. &amp;quot;fb349b5f800000800010000000000000</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 15:47:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67583/a-problem-in-ble-service-discovery" /><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/278140?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 15:47:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c261b658-4f14-4d7c-b79d-3e18f6e48ba6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I was hoping you were registering this service wrong somehow (byte order or otherwise). Can you for comparison just try with the HRS service to see if experience the same ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/blob/33c822cf172a7b0a1e54e263f67898f659d2d608/nRF%20Toolbox/Utilities/ServiceIdentifiers.swift#L64"&gt;https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/blob/33c822cf172a7b0a1e54e263f67898f659d2d608/nRF%20Toolbox/Utilities/ServiceIdentifiers.swift#L64&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I am not familiar with iOS development so just trying to understand if something have been configured wrong when adding the FIDO service in iOS.&lt;/p&gt;
&lt;p&gt;What iOS version is this? Have you tried other version or other iPhone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/277481?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 19:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e31f993-d59c-42ed-bb24-f28d4ec0809b</guid><dc:creator>alireza sadeghpour</dc:creator><description>&lt;p&gt;Thank you so much,&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;But can you confirm that this is indeed the BT SIG base UUID&amp;quot;, Yes it is BT SIG base UUID, and for this reason when I try to add this base UUID softdevice returns 1 as UUID.type.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;If it&amp;#39;s the BT SIG base UUID, then the peripheral device should respond to the&amp;nbsp;FindByTypeValueRequest when using 16-bit UUID.&amp;quot;, yes it should, but it does not,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Though it may be that your byte ordering is wrong, so you may try both 0xFDFF and 0xFFFD.&amp;quot;, I&amp;#39;ve checked this, but it did not work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please look at&amp;nbsp;the attached&amp;nbsp;trace. this trace contains service discovery of the iOS device with the nrfConnect desktop version. in packet 660 iOS returns 128-bit UUID version of my service. while packet 626 it returns 16-bit version of common services like Generic access profile. while my service is also standard service (it is FIDO service) which could use BT SIG base uuid. i think for this reason iOS returns&amp;nbsp;&amp;quot;attribute not found&amp;quot; error code.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;attached trace -&amp;gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/iphone_5F00_and_5F00_nrfconnect_5F00_desktop_2800_rsa_2900_.pcapng"&gt;devzone.nordicsemi.com/.../iphone_5F00_and_5F00_nrfconnect_5F00_desktop_2800_rsa_2900_.pcapng&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/277479?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 19:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b3fac44-e803-4a68-a3a0-a7e88da437f5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;But can you confirm that this is indeed the BT SIG base uuid? It looks very much like it.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s the BT SIG base uuid, then the peripheral device should respond to the&amp;nbsp;&lt;span&gt;FindByTypeValueRequest when using 16-bit UUID. Though it may be that your byte ordering is wrong, so you may try both 0xFDFF and 0xFFFD.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/277473?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 17:55:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5a36946-f948-44fd-9db4-dd3479ec9617</guid><dc:creator>alireza sadeghpour</dc:creator><description>&lt;p&gt;Thank you for your response, but I think you did not get my point.&lt;/p&gt;
&lt;p&gt;As I said I use nrf52 as a central device, Therefore I didn&amp;#39;t implement any service on nrf52 side and I do not want to add any characteristic.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to discover service on the peripheral side using the nordic service discovery library, and the target service&amp;#39;s UUID is &amp;quot;&lt;span&gt;fb349b5f8000008000100000fdff0000&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;i&amp;nbsp;register {uuid: 0xFFFD, UUID_Type: 1} with &amp;quot;ble_db_discovery_evt_register&amp;quot; function, to&amp;nbsp;search for &amp;quot;fb349b5f8000008000100000fdff0000&amp;quot; service in peripheral gatt table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;during service discovery, Softdevice sends a &amp;quot;FindByTypeValueRequest&amp;quot; with value 0xFDFF in order to find the service in the peripheral, but it receives &amp;quot;FindByTypeValueRespnse&amp;quot; with &amp;quot;attribute not found&amp;quot; error code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now i want to find a way that soft device send&amp;nbsp;FindByTypeValueRequest with &amp;quot;fb349b5f8000008000100000fdff0000&amp;quot;, not 0xFFFD,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/276924?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 14:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75e4133-6af5-4a1a-a32d-ba699193e981</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;The base uuid you are trying to write is the BT UUID:&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/"&gt;https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should not register the BT UUID&amp;nbsp;with the&amp;nbsp;&lt;span&gt;sd_ble_uuid_vs_add().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Instead you can call&amp;nbsp;sd_ble_gatts_characteristic_add() directly with UUID type set to&amp;nbsp;BLE_UUID_TYPE_BLE.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The BT base UUID should only be used with BT 16-bit UUID&amp;nbsp;assigned by BT SIG.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A problem in BLE service discovery</title><link>https://devzone.nordicsemi.com/thread/276752?ContentTypeID=1</link><pubDate>Sun, 25 Oct 2020 14:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72e8da17-1a60-4dce-b673-10b9d96cc4b0</guid><dc:creator>alireza sadeghpour</dc:creator><description>&lt;p&gt;Just let me make the problem clear,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- There is a service with &amp;quot;&lt;span&gt;fb349b5f8000008000100000fdff0000&amp;quot; UUID in the GATT server (which is created by iOS application in an iPhone device)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- When I want register &amp;quot;fb349b5f800000800010000000000000&amp;quot; 128-bit uuid with&amp;nbsp;sd_ble_uuid_vs_add function, as uuid.type i get 1(but with registering another 128-bit uuid i get 2 which means 128-bit uuid is registered successfully)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;With searching with 16-bit uuid &amp;quot;FFFD&amp;quot; i could not find service in the client services, and i can not search for 128-bit version &amp;quot;&lt;span&gt;fb349b5f8000008000100000fdff0000&amp;quot; because i can&amp;#39;t register&amp;nbsp;&amp;quot;fb349b5f800000800010000000000000&amp;quot; uuid with&amp;nbsp;sd_ble_uuid_vs_add&amp;nbsp; function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now I want to know there is any way&amp;nbsp;to&amp;nbsp;discover&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;fb349b5f8000008000100000fdff0000&amp;quot; service and its characteristics in the client?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P.S&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Discovery.png" /&gt;&amp;nbsp;you can see that softdevice sends a FindByTypeRequest with 16-bit version of the uuid. how can I ask from softdevice to send this request with&amp;nbsp;&lt;span&gt;fb349b5f8000008000100000fdff0000 uuid?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>