<?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>Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62410/android-ble-library-cannot-find-characteristics-of-custom-service</link><description>We are using the Android-BLE-library version 2.1.1 above Android 9 (API level 28, using Java 8) in order to connect to a BLE-MCU. This MCU advertises a custom BLE profile. 
 When trying to connect with the nRF-Connect application, we succeed in finding</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jun 2020 13:11:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62410/android-ble-library-cannot-find-characteristics-of-custom-service" /><item><title>RE: Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/thread/255035?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 13:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:931db1cc-a30f-4387-86b0-56dbbfb92752</guid><dc:creator>kerek</dc:creator><description>&lt;p&gt;We have removed the bond request (making only pairing process instead), but changing the critical code (removed from here due to containing private information) so it will be in this stage in the initialization method made the difference, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/thread/254711?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 11:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7425173d-3bfe-4e9d-8629-b09532dca340</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;void initialize() {
    createBond()
        .done(device -&amp;gt; Log.i(logTag, &amp;quot;bond successful&amp;quot;))
        .fail((device, status) -&amp;gt; Log.w(logTag,&amp;quot;bond failed: &amp;quot; + status))
        .enqueue();
        
    // Continue with initialization here
    // [...]
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/thread/254706?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 11:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22c9c8ac-8f39-49e2-a359-d4bfd3d891c7</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Also, for the next time you could share the logs from LogCat. This would help us, but I believe the above solution will work for you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/thread/254704?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 11:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94d48160-7a6e-4ef7-88ea-12021098fa2f</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My recommendation would be to move the bonding request to initialization, as a first request.&lt;/p&gt;
&lt;p&gt;onDeviceConnected is fired before service discovery and attributes are not ready. Looks like when bonding is complete the lib is trying to proceed with initialization, but services are not ready/were invalidated. Bonding after service discovery should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android-BLE-library Cannot find characteristics of custom service</title><link>https://devzone.nordicsemi.com/thread/254555?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 16:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b8dab02-b039-4ac1-8e8a-acf2f31bc4ad</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not have any immediate explanation or suggestions, but I will try to get feedback from the Android-BLE-library developers and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>