<?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>Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11746/is-it-possible-to-use-ble_gattc-with-s110</link><description>Hi, 
 I have an nRF51822-based peripheral with S110 softdevice, and it would be handy if I could nose around central&amp;#39;s capabilities when it connects my device (I&amp;#39;d like to read out GAP device name, for starters). 
 The API to make GATTC stuff is present</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Feb 2016 12:54:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11746/is-it-possible-to-use-ble_gattc-with-s110" /><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44434?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2016 12:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be792fd1-22fd-48eb-95fe-cdead2e3156b</guid><dc:creator>NrfFan</dc:creator><description>&lt;p&gt;Success! You were absolutely right about the 1-based indexing. Both &lt;code&gt;sd_ble_gattc_primary_services_discover(conn_handle, 1, NULL)&lt;/code&gt; and &lt;code&gt;ble_gattc_handle_range_t range = { 1, 0xffff }&lt;/code&gt; used in &lt;code&gt;sd_ble_gattc_char_value_by_uuid_read()&lt;/code&gt; and &lt;code&gt;sd_ble_gattc_characteristics_discover()&lt;/code&gt; must start with index 1 instead of zero. Weird thing that Windows10 are so tolerant about starting index, that it actually worked with zeroes. Anyway, thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44433?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2016 12:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdc36040-a826-4626-a933-26130cca07c8</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Are you sure you are not getting any errors from the softdevice or the peer device? Could you try to change the start handle for sd_ble_gattc_primary_services_discovery to 0x0001 (I would expect using 0 to fail as this is an invalid handle). Both our ANCS example and current time service example are gatt client examples that works with iOS and are able to discover these services. You can also use the nrf sniffer to see if the service discovery / read by group type request is performed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44432?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 11:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03431f49-f6d6-49dc-aab4-5df3dbf86188</guid><dc:creator>NrfFan</dc:creator><description>&lt;p&gt;Thanks for your reply. Yesterday I tried discovery against iPhone4S (central) with iOS8.X.X and discovery of primary services returned 0, so again - no luck with that. Weird thing is though, that iOS and AFAIK MacOSX should both expose ANCS services, so I have no idea why I don&amp;#39;t see them from S110. I may test it against Android 6.0 on weekend, but I don&amp;#39;t give it much chances.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44431?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2016 11:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07734bba-8b13-4120-986c-bb0324ea73fe</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, this depends on the central implementation. So the central need to support service discovery as gatt server as well. I thought android added gatt server implementation in v5.0 (not completely sure though). But I would also test with 6.0 if I where you. If you try iOS it should have multiple services that you can discover.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44430?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 07:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6525ae1-42c6-4ec0-ae74-fa7aa39ae7be</guid><dc:creator>NrfFan</dc:creator><description>&lt;p&gt;Hi, during the weekend I&amp;#39;ve done some additional testing and it seems to me only Windows 10 as a central works for GATTC discovery with S110.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tested following API calls:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sd_ble_gattc_primary_services_discover(conn_handle, 0, NULL)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sd_ble_gattc_char_value_by_uuid_read(conn_handle, &amp;amp;uuid, &amp;amp;range)&lt;/code&gt; with GAP device name UUID&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sd_ble_gattc_characteristics_discover(conn_handle, &amp;amp;range)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;against following centrals:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Android 4.4.2 LG D160 phone, both with and without &amp;quot;nRF Master control panel&amp;quot; application runned, with started GATT server containing heart rate service and standard 1800/1801 - empty data received for all 3 calls&lt;/li&gt;
&lt;li&gt;Mac mini (late 2012) with OSX ElCapitan- empty data received&lt;/li&gt;
&lt;li&gt;Lenovo laptop with Linux and latest BlueZ (with -E flag) - empty data received&lt;/li&gt;
&lt;li&gt;the same laptop with Windows 10 - primary services 1800 and 1801 were present as expected, device name char readout by UUID worked&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;discovery has been made always after bonding&lt;/li&gt;
&lt;li&gt;in all cases I received correct reply events on each request (&lt;code&gt;BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP&lt;/code&gt;, &lt;code&gt;BLE_GATTC_EVT_CHAR_DISC_RSP&lt;/code&gt; and &lt;code&gt;BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP&lt;/code&gt;), just having no data (except on Win10 where discovery worked as I expected)&lt;/li&gt;
&lt;li&gt;when I connected LG Android phone (central) to linux laptop (as a peripheral), services 1800/1801 of laptop were visible in nRF Master control panel and laptop&amp;#39;s device name characteristic was readable&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to use ble_gattc with S110?</title><link>https://devzone.nordicsemi.com/thread/44429?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 09:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e91a243f-91b5-4762-ad4b-77ed9dbedd15</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Yes, the S110 can be a gatt client so you can use these API&amp;#39;s. What central are you testing with? Can you try to start a gatt server on the central? This could be done in our Master control panel app for android as one example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>