<?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>When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44979/when-128bit-characteristic-uuid-is-different-form-128bit-service-uuid-how-to-discovery-it</link><description>I have the same problem as how to discovery 128bit characteristic UUID which is totally different form 128bit service UUID ，the uuid in this question is the same with me,but I can not find solution . 
 
 I modified the ble_nus_c_init() like this: 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2019 13:52:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44979/when-128bit-characteristic-uuid-is-different-form-128bit-service-uuid-how-to-discovery-it" /><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/181648?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 13:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3803bac-920a-470f-94ce-f6f4804ef908</guid><dc:creator>NORDIC_SUR</dc:creator><description>&lt;p&gt;I can get service UUID,but I can&amp;#39;t get 128 bit char UUID&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/181497?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 08:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154e29df-2ce7-434c-84a4-bbb79e2c2b73</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Used some other methods，I get the handle&amp;nbsp;directly.&lt;/p&gt;
&lt;p&gt;By the uuid , I can&amp;#39;t discovery the service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/179868?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 03:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e775148-7e6d-475c-ac8e-22b07273d125</guid><dc:creator>NORDIC_SUR</dc:creator><description>&lt;p&gt;Hi,Holmes&lt;/p&gt;
&lt;p&gt;did you find how to solve this problem?I have the same question as you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/179120?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 07:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:436f150e-7bb1-42d3-9092-bb9fea386f27</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;I have tried,but still can&amp;#39;t discovery&lt;/p&gt;
&lt;p&gt;Are there any ble_central examples like the nRF Connect APP? No&amp;nbsp;specific services ,&amp;nbsp; it can read and write data to any&amp;nbsp;&lt;span&gt;service and&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;characteristic?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178893?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 11:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34ef3486-4e8c-4ede-8fcb-972c182dbbc7</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Can you try changing this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//ble_uuid128_t   service_base_uuid = HXJ_BASE_UUID_FEE9;
ble_uuid128_t   service_base_uuid = HXJ_BASE_UUID;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think it should make a difference but who knows. I can&amp;#39;t see anything else weird with your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178892?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 11:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ce354d-5081-4056-af9d-edc91ade6948</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Yes,I can discovery 0x1800(the p_evt-&amp;gt;params.discovered_db.char_count is 5 and char uuid is 0x2axx),and the service which marked blue I can discovery too.So I think my&amp;nbsp;&lt;span&gt;&amp;nbsp;discovery module is work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_E06507689898_1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But the red mark I can&amp;#39;t discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178887?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 10:39:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1af3226-3cfa-4d2d-824e-750879236adc</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Can you try to discover the Generic Access Service?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;BLE_UUID_BLE_ASSIGN(serviceFEE9, 0x1800);
APP_ERROR_CHECK(ble_db_discovery_evt_register(&amp;amp;serviceFEE9));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You should at least be able to discover that one. Just to check that the discovery module at least works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178875?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 10:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93aed824-7864-41a4-9e12-4e3b54b8d7f1</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;This does not matter , beacuse I already know that the problem is on init function.&lt;/p&gt;
&lt;p&gt;What I want to know now is why I can receive data by nRF Connect APP , but when I add the same UUID to 52832 , I can&amp;#39;t discovery it.&lt;/p&gt;
&lt;p&gt;Please refer to my reply above.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178846?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 08:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f27e24-30ca-41c4-b286-b3d4091efa6e</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;0x11 isn&amp;#39;t invalid data, it&amp;#39;s busy. That probably means that the discovery procedure had already started or something like that. You will have to check which function exactly is returning that error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178817?ContentTypeID=1</link><pubDate>Thu, 28 Mar 2019 02:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cee04d9-36c1-4ce8-8aff-e0dfcb30fcee</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;When I register both&amp;nbsp;0xfee8&amp;nbsp;and 0xfee9 at the same time by&amp;nbsp;ble_db_discovery_evt_register() function. The value of&amp;nbsp;&lt;span&gt;p_evt-&amp;gt;evt_type is 0x01.p_evt-&amp;gt;params.err_code is 0x0011 (NRF_ERROR_INVALID_DATA)&amp;nbsp;What does this error mean?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178575?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 08:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19b4840c-5ef1-43a0-96d0-8b0c1bd1020e</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;I found I can&amp;#39;t insert the code success, let me try again:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_GAP_EVT_CONNECTED:
        {
            ble_gap_evt_adv_report_t const * p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;
            
            err_code = ble_nus_c_handles_assign(&amp;amp;m_ble_nus_c[p_gap_evt-&amp;gt;conn_handle], p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, NULL);
            APP_ERROR_CHECK(err_code);

            // start discovery of services. The NUS Client waits for a discovery result
            err_code = ble_db_discovery_start(&amp;amp;m_db_disc[p_gap_evt-&amp;gt;conn_handle], p_ble_evt-&amp;gt;evt.gap_evt.conn_handle);
            APP_ERROR_CHECK(err_code);
        }
            break;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178572?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 08:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61a74ed6-c63e-4539-b32f-dd700332e76a</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;The&lt;span&gt;&amp;nbsp;0xfee9&amp;nbsp;&lt;/span&gt;&lt;span&gt;service&amp;nbsp;&lt;/span&gt;UUID is the only&amp;nbsp;&lt;span&gt;service&lt;/span&gt;&lt;span&gt;&amp;nbsp;I want to&amp;nbsp;discovery. I had discovery other&amp;nbsp;services&amp;nbsp;successful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the code I used to&amp;nbsp;discovery&amp;nbsp;in my&amp;nbsp;central application , this is in the ble_evt_handler() function:&lt;/span&gt;&lt;/p&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;
&lt;div class=" ace_editor ace-clouds"&gt;
&lt;div class="ace_scroller"&gt;
&lt;div class="ace_content"&gt;
&lt;div class="ace_layer ace_text-layer"&gt;
&lt;div class="ace_line"&gt;&lt;span class="ace_keyword ace_control"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        case BLE_GAP_EVT_CONNECTED:
        {
            ble_gap_evt_adv_report_t const * p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;
            
            err_code = ble_nus_c_handles_assign(&amp;amp;m_ble_nus_c[p_gap_evt-&amp;gt;conn_handle], p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, NULL);
            APP_ERROR_CHECK(err_code);

            // start discovery of services. The NUS Client waits for a discovery result
            err_code = ble_db_discovery_start(&amp;amp;m_db_disc[p_gap_evt-&amp;gt;conn_handle], p_ble_evt-&amp;gt;evt.gap_evt.conn_handle);
            APP_ERROR_CHECK(err_code);
        }
            break;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="ace_line"&gt;&lt;/div&gt;
&lt;div class="ace_line"&gt;I am making changes based on ble_app_uart_c project.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178563?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 07:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf23073e-d6c3-47df-8761-8f2f51018a22</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;That&amp;acute;s not what I&amp;acute;m asking. I&amp;acute;m asking if you&amp;#39;re also trying to discover other services in your central application. And how are you starting the discovery in your central application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178531?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 02:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a18584-c485-4604-a030-b2ff0d66237c</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are many&amp;nbsp;&lt;span&gt;service in the BLE&amp;nbsp;peripheral device. The BLE&amp;nbsp;peripheral UUID I can get from nRF Connect APP,&amp;nbsp;see the picture below please.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553653663468v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The blue mark (fee8)&amp;nbsp;is the UUID I can discovery . The red mark (fee9) is the UUID I want to&amp;nbsp;discovery&amp;nbsp;, but failed.The way I used to discovery the two uuid(fee8 and fee9) is the same(Like the init function above).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the nRF Connect APP ,when I click the yellow mark, I can receive the data I want.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178020?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 09:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2487b50-6ef3-4568-b17c-ec778412862b</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;If you don&amp;#39;t get 0x01 you&amp;#39;re not getting any errors. 0x02 means that the service was not found. The error code is in a union, so what you&amp;#39;re seeing is actually the UUID in params.discovered_db, not the err_code.&lt;/p&gt;
&lt;p&gt;Is that the only service you&amp;#39;re trying to discover? Have you successfully discovered other services before? How are you starting the discovery?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/178013?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 08:48:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48458c7-5644-4315-b30a-420a77c7b5db</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure under what circumstances &lt;span&gt;0x01&lt;/span&gt; will appear.This seems to be related to different&amp;nbsp;UUID I set.&lt;/p&gt;
&lt;p&gt;I tested it a few times, but&amp;nbsp;0x01 did not appear.May be that my parameter error occurred during the test.&lt;/p&gt;
&lt;p&gt;When I get 0x02, the&amp;nbsp;&lt;span&gt;&amp;nbsp;p_evt-&amp;gt;params.err_code&amp;nbsp;looks like&amp;nbsp;uuid.type&amp;lt;&amp;lt;8|16bit uuid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What I want to know is why I can read the 128bit&amp;nbsp;characteristi UUID by nRF Connect APP but I can&amp;#39;t discover it by the function&amp;nbsp;ble_db_discovery_start().Even though I have added the 128bit uuid to the list.&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: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177710?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 06:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:901deffa-1e88-4dbb-8057-1fc862369e10</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;If you get 0x01 as the event type that indicates that you&amp;#39;re getting a SoftDevice error somewhere. What&amp;#39;s the error code you get? You can check it in p_evt-&amp;gt;params.err_code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177701?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 02:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e65001f7-ded9-4504-a72a-2d082614c8b6</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Hi Andy&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I had modify my init function as you say , but still failed.&lt;/p&gt;
&lt;p&gt;This is my init code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define HXJ_BASE_UUID                   {{0xfb,0x34,0x9b,0x5f,0x80,0x00,0x00,0x80,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00}}
#define HXJ_BASE_UUID_FEE9              {{0xfb,0x34,0x9b,0x5f,0x80,0x00,0x00,0x80,0x00,0x10,0x00,0x00,0xe9,0xfe,0x00,0x00}}
#define HXJ_BASE_UUID_CHAR_RX           {{0x00,0x96,0x12,0x16,0x54,0x92,0x75,0xb5,0xa2,0x45,0xfd,0xab,0x39,0xc4,0x4b,0xd4}}
#define HXJ_BASE_UUID_CHAR_TX           {{0x01,0x96,0x12,0x16,0x54,0x92,0x75,0xb5,0xa2,0x45,0xfd,0xab,0x39,0xc4,0x4b,0xd4}}

uint32_t ble_nus_c_init(ble_nus_c_t * p_ble_nus_c, ble_nus_c_init_t * p_ble_nus_c_init)
{
    uint32_t      err_code;
    ble_uuid_t    uart_uuid;
    ble_uuid128_t nus_base_uuid =HXJ_BASE_UUID;//NUS_BASE_UUID;
    
    ble_uuid128_t   service_base_uuid = HXJ_BASE_UUID_FEE9;
    ble_uuid128_t   characteristicRX_base_uuid = HXJ_BASE_UUID_CHAR_RX;
    ble_uuid128_t   characteristicTX_base_uuid = HXJ_BASE_UUID_CHAR_TX;
    
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c);
    VERIFY_PARAM_NOT_NULL(p_ble_nus_c_init);
    p_ble_nus_c-&amp;gt;conn_handle           = BLE_CONN_HANDLE_INVALID;
    p_ble_nus_c-&amp;gt;evt_handler           = p_ble_nus_c_init-&amp;gt;evt_handler;
    p_ble_nus_c-&amp;gt;handles.nus_tx_handle = BLE_GATT_HANDLE_INVALID;
    p_ble_nus_c-&amp;gt;handles.nus_rx_handle = BLE_GATT_HANDLE_INVALID;

    APP_ERROR_CHECK(sd_ble_uuid_vs_add(&amp;amp;service_base_uuid, &amp;amp;serviceFEE9.type));
    APP_ERROR_CHECK(sd_ble_uuid_vs_add(&amp;amp;characteristicRX_base_uuid, &amp;amp;charRX.type));
    APP_ERROR_CHECK(sd_ble_uuid_vs_add(&amp;amp;characteristicTX_base_uuid, &amp;amp;charTX.type));
    
    serviceFEE9.uuid=0xfee9;
    charRX.uuid=0x0;
    charTX.uuid=0x0;
    
    APP_ERROR_CHECK(ble_db_discovery_evt_register(&amp;amp;serviceFEE9));
    
    return err_code;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;All of the&amp;nbsp;four 128bit UUID ,I can get it by nRF Connect APP. Red mark is UUID.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1553222420510v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I tried a lot of values for&amp;nbsp;serviceFEE9.uuid、charRX.uuid and charTX.uuid in the init function。But in&amp;nbsp;the ble_nus_c_on_db_disc_evt&lt;span&gt;() , the value of&amp;nbsp;p_evt-&amp;gt;evt_type has not been BLE_DB_DISCOVERY_COMPLETE.(often 0x01、0x02、0x010A)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But in the nRF Connect APP , I can receive data when I click the blue mark.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Look forward to your reply&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177524?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 10:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a77880f-c061-4cd7-98fc-8241418e399c</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Also, the ble_uuid_t variables should be global to that file (i.e. your_service and your_characteristic), so that you have access to those variables in the db_evt_handler as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177521?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 09:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0430e563-7896-48ed-9a7f-7927d1cfd654</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;This is what you need, modify it as you see fit:&lt;/p&gt;
&lt;p&gt;In your init function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ble_uuid128_t   your_service_base_uuid = YOUR_SERVICE_BASE_UUID;
ble_uuid128_t   your_characteristic_base_uuid = YOUR_CHARACTERISTIC_BASE_UUID;
APP_ERROR_CHECK(sd_ble_uuid_vs_add(&amp;amp;your_service_base_uuid, &amp;amp;your_service.type));
APP_ERROR_CHECK(sd_ble_uuid_vs_add(&amp;amp;your_characteristic_base_uuid, &amp;amp;your_characteristic.type));

your_service.uuid = BLE_UUID_YOUR_SERVICE;
your_characteristic.uuid = BLE_UUID_YOUR_CHARACTERISTIC;

APP_ERROR_CHECK(ble_db_discovery_evt_register(&amp;amp;your_service));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In your db_evt_handler:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (p_evt-&amp;gt;evt_type == BLE_DB_DISCOVERY_COMPLETE) {
	if ((p_evt-&amp;gt;params.discovered_db.srv_uuid.uuid == your_service.uuid) &amp;amp;&amp;amp;
		(p_evt-&amp;gt;params.discovered_db.srv_uuid.type == your_service.type)) {
		for (uint8_t i = 0; i &amp;lt; p_evt-&amp;gt;params.discovered_db.char_count; i++) {
			if (p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.type == your_characteristic.type) {
				if (p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.uuid.uuid == your_characteristic.uuid) {
					cccd_handle  = p_evt-&amp;gt;params.discovered_db.charateristics[i].cccd_handle;
					value_handle = p_evt-&amp;gt;params.discovered_db.charateristics[i].characteristic.handle_value;
				}
			}
		}
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That should work. If it doesn&amp;#39;t, my bet is that your calls to&amp;nbsp;ble_db_discovery_evt_register are returning errors. Check the return codes of those functions to verify that they are returning NRF_SUCCESS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177477?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2019 06:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:664ccd93-85ee-4ba4-96b1-6b791de69b1c</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Simonr&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The parameters&amp;nbsp;p_uuid is 16bit UUID , but the&amp;nbsp;&lt;span&gt;characteristic&amp;nbsp;I want to read is 128bit UUID . And it is totally different from the Primary Service UUID.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How do I use &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_1&amp;amp;anchor=ga1e5d6f7c678b7db3205fa6b5c419f665"&gt;sd_ble_gattc_char_value_by_uuid_read&lt;/a&gt;()&amp;nbsp;function? Can you give me a example?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is my code , but I can read no data.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void getCHAR(int handle)
{
    ble_gattc_handle_range_t handle_range;
    ret_code_t            err_code;
    ble_uuid_t         uuid;
    uuid.uuid=0xc439;               
    uuid.type=2;
    
    handle_range.start_handle=1;
    handle_range.end_handle=50;
    err_code=sd_ble_gattc_char_value_by_uuid_read(handle,&amp;amp;uuid,&amp;amp;handle_range);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the ble_evt_handler()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;case BLE_GAP_EVT_CONNECTED:
{
    ble_gap_evt_adv_report_t const * p_adv_report = &amp;amp;p_gap_evt-&amp;gt;params.adv_report;
    NRF_LOG_INFO(&amp;quot;Connected to target&amp;quot;);

    getCHAR(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle);
}
break;

case BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP:
{
    int i=0;
    uint8_t data[20][100];
    static int cnt=0;
    
    memset(data,0,sizeof(data));
    
    for(i=0;i&amp;lt;p_ble_evt-&amp;gt;evt.gattc_evt.params.char_val_by_uuid_read_rsp.count;i++)
    {
        memcpy(data[i],p_ble_evt-&amp;gt;evt.gattc_evt.params.char_val_by_uuid_read_rsp.handle_value,p_ble_evt-&amp;gt;evt.gattc_evt.params.char_val_by_uuid_read_rsp.value_len);
    }                 
}
break;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Look forward to your reply&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177354?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 13:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e70423ba-fdda-4b71-9791-df792f928141</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you try the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_1&amp;amp;anchor=ga1e5d6f7c678b7db3205fa6b5c419f665"&gt;sd_ble_gattc_char_value_by_uuid_read&lt;/a&gt; function? If you are not able to get this working, please send a snippet of your code, to show me how exactly you are reading the UUID.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177281?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 10:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08981e8c-65f2-462f-8c87-7b5338d5245c</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can find the 128bit&amp;nbsp;&lt;span&gt;characteristic&amp;nbsp;&lt;/span&gt;UUID by&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_0&amp;amp;anchor=ga8b7ff74ff996da8340f69c208bfd0ec4"&gt;sd_ble_gattc_attr_info_discover&lt;/a&gt;&lt;span&gt;()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But I can not&amp;nbsp; find the 128bit&amp;nbsp;characteristic&amp;nbsp;UUID by the function ble_db_discovery_start(). Although I had add the 128bit&amp;nbsp;characteristic&amp;nbsp;uuid by&amp;nbsp;sd_ble_uuid_vs_add() and&amp;nbsp;ble_db_discovery_evt_register(). But in the function of ble_nus_c_on_db_disc_evt() the&amp;nbsp;p_evt-&amp;gt;evt_type is 0x01 or 0x02 or 0x010A but it is not 0x00 ,and p_evt-&amp;gt;params.discovered_db.char_count still 0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Look forward to your&amp;nbsp;help&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177268?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 09:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d8407a7-3f9d-49fb-9dfe-1720436f6781</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;So what you want is the UUID found by &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_0&amp;amp;anchor=ga8b7ff74ff996da8340f69c208bfd0ec4"&gt;sd_ble_gattc_attr_info_discover&lt;/a&gt;()?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you add the &lt;a href="https://github.com/bjornspock/custom_ble_service_example/blob/master/ble_cus.c"&gt;ble_cus.c&lt;/a&gt;&amp;nbsp;file, and the necessary header files from the aforementioned example to your project you should be able to add UUIDs by calling the&amp;nbsp;&lt;span&gt;ble_cus_init function in your main file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When 128bit characteristic UUID is different form 128bit service UUID，how to discovery it?</title><link>https://devzone.nordicsemi.com/thread/177207?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 06:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041893ec-43c0-46c6-9b9d-60391fd0a12d</guid><dc:creator>Holmes</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Simonr&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To use function&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_3_1_1_0_2_2_2_0&amp;amp;anchor=ga8b7ff74ff996da8340f69c208bfd0ec4"&gt;sd_ble_gattc_attr_info_discover&lt;/a&gt;() I can get the same 128bit-UUID as the Android app.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But when I add this UUID to list by function&amp;nbsp;sd_ble_uuid_vs_add() , I can&amp;#39;t get BLE_DB_DISCOVERY_COMPLETE result.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can see the code at the top of the problem.&lt;/p&gt;
&lt;p&gt;Look forward to your reply&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>