<?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>NUS server on Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23045/nus-server-on-android</link><description>I am developping NUS server(Peripheral) on Android. Central is ble_app_uart_c on nRF52832.
In this case, service discovery cannot be completed.
According to the console log, the log &amp;quot;APP:INFO:Discovery complete.&amp;quot; in ble_nus_c_evt_handler() is not printed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2017 08:53:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23045/nus-server-on-android" /><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90676?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 08:53:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e595ff1b-8e24-47d7-8f1b-18e7de043501</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What I meant is that you can use nRF Connect to check if the it can do proper service discovery on the Android server device, to verify that the NUS service/characteristics have been added correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90678?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 01:29:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:410ee0cf-bf47-482c-a26c-5c161590eff5</guid><dc:creator>Akinobu Yokawa</dc:creator><description>&lt;p&gt;The nRF Connect does not implement NUS server. It is GATT client. I cannot make it sure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90677?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2017 11:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f535aaad-f43f-4959-ad25-f7e2c5444170</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If you use nRF Connect (PC/Android/iOS) to do service discovery on the Android device. Does that work like normal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90682?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 06:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17deb2e6-a145-412e-bc0f-eab393cef194</guid><dc:creator>Akinobu Yokawa</dc:creator><description>&lt;p&gt;It returned NRF_ERROR_BUSY.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90688?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 05:52:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5051ee0f-eb17-429f-8d59-66c18331b341</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Which error code did &lt;code&gt;sd_ble_gattc_characteristics_discover()&lt;/code&gt; return?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90684?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2017 01:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eddd6190-85a0-47b6-af0c-3f9a415ce217</guid><dc:creator>Akinobu Yokawa</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;If you set the log &amp;quot;level&amp;quot; in the nRF52 central to &amp;quot;DEBUG&amp;quot; the ble_db_discovery module will give additional debug information.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I tried it. I confirmed that &lt;code&gt;characteristics_discover()&lt;/code&gt; was called in &lt;code&gt;on_primary_srv_discovery_rsp()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In &lt;code&gt;ble_db_discovery_on_ble_evt&lt;/code&gt;, the event BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP came once. After that, the event BLE_GATTC_EVT_CHAR_DISC_RS never came.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90679?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 14:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d86077-2034-4a9f-beea-7732fbddce25</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In the NUS_Android sniffer log there is only service discovery (&amp;quot;Find Type by value request/response&amp;quot;), and no characteristic discovery (&amp;quot;Read by type request/response&amp;quot;).&lt;/p&gt;
&lt;p&gt;If you set the log &amp;quot;level&amp;quot; in the nRF52 central to &amp;quot;DEBUG&amp;quot; the ble_db_discovery module will give additional debug information.&lt;/p&gt;
&lt;p&gt;If you set a breakpoint in &lt;code&gt;on_primary_srv_discovery_rsp()&lt;/code&gt; and run the chip in debug mode, you can check if characteristic discovery is being initiated (&lt;code&gt;characteristics_discover()&lt;/code&gt; ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90680?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53b88be2-f56a-4a57-9426-85ae6f4b4669</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you upload the .pcapng version of the sniffer logs? (&amp;quot;The file contains record data that Wireshark doesn&amp;#39;t support&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90683?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 00:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b944f889-a337-43f9-8dca-41fe69f478a5</guid><dc:creator>Akinobu Yokawa</dc:creator><description>&lt;p&gt;I have attached the sniffer logs in the question. Could you check them please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90681?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 09:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fd575e2-aa6b-4842-ac5c-a90fc7b5865e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;If you add some more logging during the service discovery, do you see which services/characteristics that were found?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90686?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 03:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162773fc-035d-41b5-9441-ab4a239f2d36</guid><dc:creator>Akinobu Yokawa</dc:creator><description>&lt;p&gt;Thanks. I have captured the sniffer log. There are the following packets. However, there is not the packet &amp;quot;Read By Type Request, GATT Characteristic Declaration&amp;quot; from master which is central (nRF52832).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Find By Type Value Request, GATT Primary Service Declaration, Handles: 0x0001..0xffff&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Find By Type Value Response&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90685?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 13:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2716f97-3460-49e4-8d7e-794b23879bb4</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;@akinobu-yokawa : Could you double check that the TX/RX NUS UUIDs in you app are correct? I.e, not interchanged?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS server on Android</title><link>https://devzone.nordicsemi.com/thread/90687?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2017 08:27:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6274293a-24ed-4096-a0c5-c9f56580ebdc</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I would suggest to get RF trace from some BLE sniffer and compare these two GATT Service Discovery procedures, it should give you good glimps where (and why) NUC central hangs/misses NUS service on mobile side...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>