<?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>Problem detecting 128-bit service w/ 16-bit char using pc-ble-driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45181/problem-detecting-128-bit-service-w-16-bit-char-using-pc-ble-driver</link><description>I use pc-ble-driver-master/hrc as central to connect the target device which runs with modified ble_app_uart hex. 
 I can discover service and characteristic correctly, but the characteristic descriptor is not. 
 Only one descriptor(0x2803) can be found</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Mar 2019 08:00:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45181/problem-detecting-128-bit-service-w-16-bit-char-using-pc-ble-driver" /><item><title>RE: Problem detecting 128-bit service w/ 16-bit char using pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/178838?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 08:00:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc9c069-ca97-41c1-a3dd-999e145fdb05</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;May I suggest that you look at the ble_app_uart_c example, and try to enable the notification like it is done there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem detecting 128-bit service w/ 16-bit char using pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/177705?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 05:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90de3fab-8aa7-4b98-bbdc-fb4a78f32fb0</guid><dc:creator>Jerry.Wan</dc:creator><description>&lt;p&gt;Another part made me confused is that the service handle range is from 0x000b to 0xffff, is this normal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem detecting 128-bit service w/ 16-bit char using pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/177702?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 02:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7665b00d-e5d9-4cfc-8e9b-94166bc46b1d</guid><dc:creator>Jerry.Wan</dc:creator><description>&lt;p&gt;Thanks for your reply!&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I used example of pc-ble-driver (hrc) as t&lt;span&gt;emplates and &amp;nbsp;moodified the target service uuid value and type(16 bit type before) .&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NUS_BASE_UUID                   {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}} /**&amp;lt; Used vendor specific UUID. */               

#define BLE_UUID_PRIMARY_SERVICE		 0x0001/**&amp;lt; primary service UUID. */
#define BLE_UUID_PRIMARY_SERVICE_CHAR 0x0002 /**&amp;lt; primary service characteristic UUID. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    //srvc_uuid.type = BLE_UUID_TYPE_BLE;
	srvc_uuid.type = BLE_UUID_TYPE_VENDOR_BEGIN;
    //srvc_uuid.uuid = BLE_UUID_HEART_RATE_SERVICE;
	srvc_uuid.uuid = BLE_UUID_PRIMARY_SERVICE;
    // Initiate procedure to find the primary BLE_UUID_HEART_RATE_SERVICE.

	err_code = sd_ble_uuid_vs_add(m_adapter, &amp;amp;base_uuid, &amp;amp;srvc_uuid.type);&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;log is as below&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#--------------------------------------------------------------------------------------------------------#

sd_ble_uuid_vs_add success.
Success to initiate or continue a GATT Primary Service Discovery procedure
Received BLE_GAP_EVT_DATA_LENGTH_UPDATE_REQUEST
Received an un-handled event with ID: 36
Received service discovery response
Discovered heart rate service. UUID: 0x0001, start handle: 0x000B, end handle: 0xFFFF
Discovering characteristics
Received characteristic discovery response, characteristics count: 2
Characteristic handle: 0x000C, UUID: 0x0002
GET BLE_UUID_PRIMARY_SERVICE_CHAR SUCESSFULLY.
Characteristic handle: 0x000E, UUID: 0x0003
Discovering characteristic&amp;#39;s descriptors
Received descriptor discovery response, descriptor count: 1
Descriptor handle: 0x000C, UUID: 0x2803

#--------------------------------------------------------------------------------------------------------#&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Screenshots of nrfConect can show the existence of &amp;nbsp;the nocification.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3125.1.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3527.2.jpg" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5633.3.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem detecting 128-bit service w/ 16-bit char using pc-ble-driver</title><link>https://devzone.nordicsemi.com/thread/177637?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 14:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8772f75-787f-4131-93e8-84e36bac3c13</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you describe what you do to find what you have already found?&lt;/p&gt;
&lt;p&gt;Are you sure that&amp;nbsp;the characteristic you are looking at has notifications?&lt;/p&gt;
&lt;p&gt;It is notifications you are looking for, right? Have you tried to enable notifications like it is done in the ble_app_uart_c example?&lt;/p&gt;
&lt;p&gt;When discovery is complete, in the ble_nus_c_evt_handler(), it calls ble_nus_c_tx_notif_enable(p_ble_nus):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_nus_c_evt_handler(ble_nus_c_t * p_ble_nus_c, ble_nus_c_evt_t const * p_ble_nus_evt)
{
    ret_code_t err_code;

    switch (p_ble_nus_evt-&amp;gt;evt_type)
    {
        case BLE_NUS_C_EVT_DISCOVERY_COMPLETE:
            NRF_LOG_INFO(&amp;quot;Discovery complete.&amp;quot;);
            err_code = ble_nus_c_handles_assign(p_ble_nus_c, p_ble_nus_evt-&amp;gt;conn_handle, &amp;amp;p_ble_nus_evt-&amp;gt;handles);
            APP_ERROR_CHECK(err_code);

            err_code = ble_nus_c_tx_notif_enable(p_ble_nus_c);
            APP_ERROR_CHECK(err_code);
            NRF_LOG_INFO(&amp;quot;Connected to device with Nordic UART Service.&amp;quot;);
            break;

        case BLE_NUS_C_EVT_NUS_TX_EVT:
            ble_nus_chars_received_uart_print(p_ble_nus_evt-&amp;gt;p_data, p_ble_nus_evt-&amp;gt;data_len);
            break;

        case BLE_NUS_C_EVT_DISCONNECTED:
            NRF_LOG_INFO(&amp;quot;Disconnected.&amp;quot;);
            scan_start();
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>