<?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>How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65674/how-to-modify-the-bps-format-to-insert-custom-data-in-nrf52</link><description>I am currently working on sending some custom data using BLE nrf52. 
 I find the BPS format best suited for my application but I want to modify the systolic and diastolic keys with something else. How do I make that happen? I have searched the documentation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Sep 2020 13:19:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65674/how-to-modify-the-bps-format-to-insert-custom-data-in-nrf52" /><item><title>RE: How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/thread/269888?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 13:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d8638c0-570f-4699-8eae-f2d92a232549</guid><dc:creator>Raja Sumant</dc:creator><description>&lt;p&gt;Found an answer in this.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30790/sd_ble_uuid_vs_add-error-code-4/121851?focus=true#121851"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30790/sd_ble_uuid_vs_add-error-code-4/121851?focus=true#121851&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. For newer SDKs, go to sdk_config.h and set &amp;quot;#define NRF_SDH_BLE_VS_UUID_COUNT 1&amp;quot;&lt;br /&gt;2. You need to adjust the RAM size and start address. Simply add 16 bytes to the start and subtract 16 from the size per each new UUID you add. This video shows how&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=uP8RYgYGRvI&amp;amp;hd=1&amp;amp;feature=youtu.be&amp;amp;t=254"&gt;www.youtube.com/watch&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/thread/269881?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2020 12:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fe621d8-fe1c-4e8b-8f32-89e9f0e2375f</guid><dc:creator>Raja Sumant</dc:creator><description>&lt;p&gt;hi.&lt;/p&gt;
&lt;p&gt;I am following this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I did step 1 and step 2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ble_os_t m_our_service;&lt;br /&gt;&lt;br /&gt;our_service_init (&amp;amp;m_our_service);&lt;/p&gt;
&lt;p&gt;For step 3 and 4 : It fails at this point when I debug it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void our_service_init(ble_os_t * p_our_service)
{

    // STEP 3: Declare 16 bit service and 128 bit base UUIDs and add them to BLE stack table  
       
       uint32_t   err_code;
        ble_uuid_t        service_uuid;
        ble_uuid128_t     base_uuid = BLE_UUID_OUR_BASE_UUID;
        service_uuid.uuid = BLE_UUID_OUR_SERVICE;
        err_code = sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;service_uuid.type);
        APP_ERROR_CHECK(err_code);

        //Done with step 3
    
	// STEP 4: Add our service

        err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                    &amp;amp;service_uuid,
                                    &amp;amp;p_our_service-&amp;gt;service_handle);
        APP_ERROR_CHECK(err_code);

        //Done with step 4
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;May I know what is the mistake?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/thread/268975?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 12:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1336798b-379e-4d9e-8c63-23c065f0ba66</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is not how you use a vendor specific UUID. You need to register the UUID base using&amp;nbsp;sd_ble_uuid_vs_add(). The second parameter to that call is an output, and that is the type you should use when referring to this UUID.&amp;nbsp;BLE_UUID_TYPE_BLE (0) is only used for 16 bit UUIDs. I recommend you refer to ble_nus_init() in ble_nus.c to see how this can be done. If you only have a single custom UUID, this will have&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that, to add it to your list of advertisied UUIDs you should&amp;nbsp;do refer to the type for the UUID you have added instead of&amp;nbsp;BLE_UUID_TYPE_BLE. If you only have a single type then that will get the ID BLE_UUID_TYPE_VENDOR_BEGIN, so you can refer to that directly like the SDK examples do (see of&amp;nbsp;examples\ble_peripheral\ble_app_uart\main.c for an example).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/thread/268915?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 10:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ac82886-8ac5-41f9-af1f-ddadab68ab29</guid><dc:creator>Raja Sumant</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have added the 128 bit as follows:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_UUID_WB                  0x03beb05229f8435fb5912f57a464106f /**&amp;lt; Used vendor specific UUID. */


static ble_uuid_t m_adv_uuids[] =                                       /**&amp;lt; Universally unique service identifiers. */
{
    {BLE_UUID_WB,BLE_UUID_TYPE_BLE},
    {BLE_UUID_BATTERY_SERVICE,            BLE_UUID_TYPE_BLE},
    {BLE_UUID_DEVICE_INFORMATION_SERVICE, BLE_UUID_TYPE_BLE}
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However it shows &amp;quot;integer constant is too large for its type&amp;quot; alert after building.&lt;/p&gt;
&lt;p&gt;I am trying to replace the bps with this thing. However the bps UUID still is being read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the BPS format to insert custom data in nrf52</title><link>https://devzone.nordicsemi.com/thread/268513?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 12:08:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e50dc3d8-d3b7-4cff-8129-cecf9e139be1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]How do I make that happen? I have searched the documentation and the header files but I am unable to find anything for that.[/quote]
&lt;p&gt;You can take the&amp;nbsp;ble_bps.c and ble_bps.h files, rename them and adapt them to your needs in any way you like. Just remember that you should use a different UUID, as this is a registered/official 16 bit service UUID. You can refer to for instance the NUS service implementation (ble_nus.c) to see an example of a custom 128 bit service.&lt;/p&gt;
&lt;p&gt;Other than that, what to change and how depends on what you want to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>