<?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 can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35184/how-can-i-change-characteristic-service-rx-tx-uuid</link><description>Hi, Nordic! 
 
 I wanna know how change characteristic(service,Rx,Tx) UUIDs . 
 
 For example, 
 Proximity UUID : 01020304 -0506-0708-0910-111213141516 
 Service UUID : 01020304 -0506-0708-0910-AABBCCDDEEFF 
 Rx Characteristc UUID : 01020305 -0506-0708</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 10 Jun 2018 02:44:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35184/how-can-i-change-characteristic-service-rx-tx-uuid" /><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135443?ContentTypeID=1</link><pubDate>Sun, 10 Jun 2018 02:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c26bf5e7-4ca9-477d-ab53-82fdb2e483e2</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;I&amp;#39;m really thank you!! Vidar Berg!!&lt;/p&gt;
&lt;p&gt;I solved the problem with your help .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135328?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 09:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5460ea10-cb57-45f9-9097-d436e78ce396</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;RAM_START_ADDRESS should not be changed, it&amp;#39;s used to calculate the total RAM area.&amp;nbsp;Configuration of the application RAM address is done in &amp;quot;options for target&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0552.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135324?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 09:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f57aea07-51a0-4a3a-9976-6d96da72831e</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;I use Keil (uVision5).&lt;/span&gt;&lt;/span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2063.1111.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;I found RAM start address (0x20000000). &lt;span&gt;I changed this value, but it was not resolved.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135306?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 08:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eb59f14-d811-4033-a946-7164063aa9cd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you have debug logging enabled? It should print out the lowest RAM address you can use with current configuration. Alternatively, just increase the RAM start address by ~20 bytes or more, enough to store the new base UUID. Just let me know what toolchain/IDE you use if you are unsure on how you can do this.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135302?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 08:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8092823-5fad-436d-bee8-44264c1d0b30</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
static void ble_stack_init(void)
{
    uint32_t err_code;

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

    // Initialize SoftDevice.
    SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                    PERIPHERAL_LINK_COUNT,
                                                    &amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);
    ble_enable_params.common_enable_params.vs_uuid_count = 2;//Allocate buffer space for 128-bit base UUIDs
    //Check the ram settings against the used number of links
    CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);

    // Enable BLE stack.
#if (NRF_SD_BLE_API_VERSION == 3)
    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
#endif
    err_code = softdevice_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);

    // Subscribe for BLE events.
    err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;div class="tw-nfl tw-ta-container" id="tw-target-text-container"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;As a result of modifying the above code, it will not advertise.&lt;br /&gt;&lt;span&gt;Which part am I doing wrong?&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" lang="en"&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135286?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 06:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0982fae7-84ef-4976-8b7f-aefc5e71569d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, sdk_config.h did not include stack configurations in earlier SDK versions, believe it was&amp;nbsp;introduced in SDK 13.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can set the UUID count in ble_stack_init():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_stack_init(void)
{
    uint32_t err_code;

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

    // Initialize the SoftDevice handler module.
    SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(NRF_BLE_CENTRAL_LINK_COUNT,
                                                    NRF_BLE_PERIPHERAL_LINK_COUNT,
                                                    &amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);
    
    ble_enable_params.common_enable_params.vs_uuid_count = //Allocate buffer space for 128-bit base UUIDs&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note: this will increase the softdevice&amp;#39;s RAM usage which may require you to increase the APP ram start address in your linker configuration. See debug log for details.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135266?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 23:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f4ec682-6d12-429a-9a7b-9efff797925e</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&lt;span&gt;I checked, but I did not find NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135127?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 11:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c9f86d-9021-4700-9f2a-1e6e5bf4de13</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;PHERIPHERAL_LINK_COUNT defines the number of concurrent peripheral&amp;nbsp;links you can have. So is not related to the error you got.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135125?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 11:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1724c07b-e94e-4424-a198-1ad8d468a270</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Thank you for your answer!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Didn&amp;#39;t I have to change PHERIPHERAL_LINK_COUNT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135120?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 11:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9b2640-1268-42bb-870d-7cc53bfc300a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;0x4 corresponds to NRF_ERROR_NO_MEM (defined in nrf_error.h), which means that the softdevice does not have enough buffer space to store the 128-bit UUID base.&amp;nbsp; Increasing&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h should fix this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I change characteristic(service,Rx,Tx) UUID ?</title><link>https://devzone.nordicsemi.com/thread/135117?ContentTypeID=1</link><pubDate>Thu, 07 Jun 2018 10:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4b6808c-60ab-4bc7-b4a6-49e7b224e0f6</guid><dc:creator>Jim</dc:creator><description>&lt;p&gt;sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;char_uuid.type) return 0x04.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below is ble stack initial function.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define CENTRAL_LINK_COUNT              0                   
#define PERIPHERAL_LINK_COUNT           1                   

static void ble_stack_init(void)
{
    uint32_t err_code;

    nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

    // Initialize SoftDevice.
    SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

    ble_enable_params_t ble_enable_params;
    err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT,
                                                    PERIPHERAL_LINK_COUNT,
                                                    &amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);

    //Check the ram settings against the used number of links
    CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT);

    // Enable BLE stack.
#if (NRF_SD_BLE_API_VERSION == 3)
    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE;
#endif
    err_code = softdevice_enable(&amp;amp;ble_enable_params);
    APP_ERROR_CHECK(err_code);

    // Subscribe for BLE events.
    err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>