<?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>Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50091/multiple-service-in-one-platform-hid-lbs</link><description>Hi, 
 
 I just met some difficulties to implant more then one service into my project. The project was developed based on hid_keyboard. 
 The project can work normally when without lbs, but when I add the lbs service it just could not advertise and the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2019 07:40:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50091/multiple-service-in-one-platform-hid-lbs" /><item><title>RE: Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/thread/200408?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 07:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f4a8d8-fe24-4491-850f-634dbf064386</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;There is an example of an implementation of the LBS-service in our ble_app_blinky example. I suggest that you take a look at how it&amp;#39;s done there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/thread/199902?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 01:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d5005a3-5f2b-4704-93b3-52d150c06903</guid><dc:creator>CY</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;It cannot advertise after remove the LBS uuid.&lt;/p&gt;
&lt;p&gt;I need to remove lbs_init() in the service_inti() that I could start advertising but without lbs function.&lt;/p&gt;
&lt;p&gt;And I have looked into the ble_lbs_init() and found the parameter related to uuid128bit.&lt;/p&gt;
&lt;p&gt;Thus, I would like to know how to revise the setting below to meet the 16-bit UUID service, is it possible?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;uint32_t ble_lbs_init(ble_lbs_t * p_lbs, const ble_lbs_init_t * p_lbs_init)
{
    uint32_t              err_code;
    ble_uuid_t            ble_uuid;
    ble_add_char_params_t add_char_params;

    // Initialize service structure.
    p_lbs-&amp;gt;led_write_handler = p_lbs_init-&amp;gt;led_write_handler;

    // Add service.
    ble_uuid128_t base_uuid = {LBS_UUID_BASE};
    err_code = sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;p_lbs-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);

    ble_uuid.type = p_lbs-&amp;gt;uuid_type;
    ble_uuid.uuid = LBS_UUID_SERVICE;

    err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY, &amp;amp;ble_uuid, &amp;amp;p_lbs-&amp;gt;service_handle);
    VERIFY_SUCCESS(err_code);

    // Add Button characteristic.
    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid              = LBS_UUID_BUTTON_CHAR;
    add_char_params.uuid_type         = p_lbs-&amp;gt;uuid_type;
    add_char_params.init_len          = sizeof(uint8_t);
    add_char_params.max_len           = sizeof(uint8_t);
    add_char_params.char_props.read   = 1;
    add_char_params.char_props.notify = 1;

    add_char_params.read_access       = SEC_OPEN;
    add_char_params.cccd_write_access = SEC_OPEN;

    err_code = characteristic_add(p_lbs-&amp;gt;service_handle,
                                  &amp;amp;add_char_params,
                                  &amp;amp;p_lbs-&amp;gt;button_char_handles);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }

    // Add LED characteristic.
    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid             = LBS_UUID_LED_CHAR;
    add_char_params.uuid_type        = p_lbs-&amp;gt;uuid_type;
    add_char_params.init_len         = sizeof(uint8_t);
    add_char_params.max_len          = sizeof(uint8_t);
    add_char_params.char_props.read  = 1;
    add_char_params.char_props.write = 1;

    add_char_params.read_access  = SEC_OPEN;
    add_char_params.write_access = SEC_OPEN;

    return characteristic_add(p_lbs-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_lbs-&amp;gt;led_char_handles);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/thread/199849?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 14:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:915d2a71-675e-405d-a251-9fd1b5e1da2d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Ok. Maybe you could look at my suggestion below and try to remove the LBS uuid from your advertising packet, and see if your device will start advertising again?&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/thread/199828?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 13:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca551b5c-14e1-4f26-98a4-d5bfc386b63d</guid><dc:creator>CY</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;There did not show any error codes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multiple service in one platform (HID + LBS)</title><link>https://devzone.nordicsemi.com/thread/199792?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 12:42:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f790bc04-bc9a-40b9-af63-3d3b722f4d0a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The LBS_UUID is a 128-bit vendor specific UUID, so you might not be able to fit both the 16-bit HID UUID&amp;nbsp;&lt;em&gt;and&amp;nbsp;&lt;/em&gt;the 128-bit LBS UUID inside the advertising packet without exceeding the 31 byte payload limit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried debugging your application and tracked down the root cause to be inside the advertising init function? Do you see any error codes?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>