<?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>Discovering Different UUID base of service and characteristics from BLE Central</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79065/discovering-different-uuid-base-of-service-and-characteristics-from-ble-central</link><description>Hi, I want to discover Different UUID base of service and characteristics from BLE Central. First I used ble_app_blinky example and it worked fine. Next, I modified BUTTON_CHAR and added new base with sd_ble_uuid_vs_add but central is not able to discover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Aug 2021 14:01:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79065/discovering-different-uuid-base-of-service-and-characteristics-from-ble-central" /><item><title>RE: Discovering Different UUID base of service and characteristics from BLE Central</title><link>https://devzone.nordicsemi.com/thread/327255?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 14:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:853a4bdd-0c6e-42cb-ada6-c827117fa9a5</guid><dc:creator>chandan</dc:creator><description>&lt;p&gt;Ok. Anything wrong with my code ?&lt;/p&gt;
&lt;p&gt;#define SERVICE_UUID_BASE {0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, \&lt;br /&gt; 0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define CHAR_UUID_BASE&amp;nbsp;&lt;/span&gt;&lt;span&gt;{0x24, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15, \&lt;/span&gt;&lt;br /&gt;&lt;span&gt;0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define BOLT_UUID_SERVICE 0x1523&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering Different UUID base of service and characteristics from BLE Central</title><link>https://devzone.nordicsemi.com/thread/327253?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 13:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc79d5b-b328-43d9-8ff0-0c10a37d9b45</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Note that the 2nd argument to &lt;span&gt;&lt;a title="sd_ble_uuid_vs_add" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_0_2_2_8#ga265b4251110a15120d0aa97e5152163b"&gt;sd_ble_uuid_vs_add&lt;/a&gt;&lt;/span&gt;() is an in/out argument. So lbs_uuid.type is really referencing the base UUID of your characteristic rather than the base UUID for your &amp;#39;BOLT_UUID_SERVICE&amp;#39;. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering Different UUID base of service and characteristics from BLE Central</title><link>https://devzone.nordicsemi.com/thread/327247?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 13:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6717e7df-8266-4983-9c1b-debbeb6dca59</guid><dc:creator>chandan</dc:creator><description>&lt;p&gt;Yes&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t ble_lbs_c_init(ble_lbs_c_t * p_ble_lbs_c, ble_lbs_c_init_t * p_ble_lbs_c_init)
{
    uint32_t      err_code;
    ble_uuid_t    lbs_uuid;
    ble_uuid128_t   service_base_uuid =  {SERVICE_UUID_BASE};
    ble_uuid128_t   char_base_uuid =  {CHAR_UUID_BASE};                      

    VERIFY_PARAM_NOT_NULL(p_ble_lbs_c);
    VERIFY_PARAM_NOT_NULL(p_ble_lbs_c_init);
    VERIFY_PARAM_NOT_NULL(p_ble_lbs_c_init-&amp;gt;evt_handler);


    p_ble_lbs_c-&amp;gt;uuid_type = BLE_UUID_TYPE_VENDOR_BEGIN;

    err_code = sd_ble_uuid_vs_add(&amp;amp;service_base_uuid, &amp;amp;p_ble_lbs_c-&amp;gt;uuid_type);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    VERIFY_SUCCESS(err_code);
	
	err_code = sd_ble_uuid_vs_add(&amp;amp;char_base_uuid, &amp;amp;p_ble_lbs_c-&amp;gt;uuid_type);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    VERIFY_SUCCESS(err_code);


    lbs_uuid.type =  p_ble_lbs_c-&amp;gt;uuid_type;
    lbs_uuid.uuid = BOLT_UUID_SERVICE;

    p_ble_lbs_c-&amp;gt;peer_lbs_db.house_keeping_cccd_handle = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;peer_lbs_db.house_keeping_handle      = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;peer_lbs_db.control_commands_handle   = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;peer_lbs_db.firmware_metadata_handle = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;peer_lbs_db.charger_log_cccd_handle   = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;peer_lbs_db.charger_log_handle        = BLE_GATT_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;conn_handle                    = BLE_CONN_HANDLE_INVALID;
    p_ble_lbs_c-&amp;gt;evt_handler                    = p_ble_lbs_c_init-&amp;gt;evt_handler;


    return ble_db_discovery_evt_register(&amp;amp;lbs_uuid);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Discovering Different UUID base of service and characteristics from BLE Central</title><link>https://devzone.nordicsemi.com/thread/327240?ContentTypeID=1</link><pubDate>Mon, 30 Aug 2021 13:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42855d1a-2d89-4724-89d1-7914d3e6fed8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you add this new base UUID with sd_ble_uuid_vs_add() on the GATT client as well? Your attachment only included main.c and your project files, not the service implementation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>