<?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>Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64801/advertising-problem-after-changing-uuid</link><description>Hello . 
 
 I want send BLE data of sensor value. 
 
 So, I am using the central module(HM-10) And peripheral is nRF52832 of custom module. 
 
 Connection and data communication with the smartphone are good, but communication between modules is not possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Sep 2020 09:47:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64801/advertising-problem-after-changing-uuid" /><item><title>RE: Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/thread/269120?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 09:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:875b8b18-b365-481e-9a31-c3f2b53f16b7</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;What I meant was that you will probably need to change the UUID on both the peripheral and the central here, depending on what changes you have made to the example.&lt;/p&gt;
&lt;p&gt;In the BLE UART examples, the central will scan with a UUID filter. The central will connect to the peripheral with the matching UUID. If you change the UUID on the peripheral, you will have to change it on the central device as well.&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/thread/266345?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 01:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffc9a29d-dc4c-4501-8edb-0d2295932931</guid><dc:creator>Daeho</dc:creator><description>&lt;p&gt;I don&amp;#39;t know what the question means exactly, but the nRF52832 uses central mode and only modified the code of nRF52832.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The code was roughly modified as follows.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where should I modify it?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//ble_nus.c file------------------------------------

#define NUS_BASE_UUID                  {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}}
#define NUS_BASE_UUID_HM                  {{0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}} /**&amp;lt; Used vendor specific UUID. */
.
.
.
uint32_t ble_nus_init(ble_nus_t * p_nus, ble_nus_init_t const * p_nus_init)
{
    ret_code_t            err_code;
    ble_uuid_t            ble_uuid;
    ble_uuid128_t         nus_base_uuid = NUS_BASE_UUID;
    ble_uuid128_t         nus_base_uuidHm10 = NUS_BASE_UUID_HM;
    ble_add_char_params_t add_char_params;

    VERIFY_PARAM_NOT_NULL(p_nus);
    VERIFY_PARAM_NOT_NULL(p_nus_init);

    // Initialize the service structure.
    p_nus-&amp;gt;data_handler = p_nus_init-&amp;gt;data_handler;

    /**@snippet [Adding proprietary Service to the SoftDevice] */
    // Add a custom base UUID.
    err_code = sd_ble_uuid_vs_add(&amp;amp;nus_base_uuid, &amp;amp;p_nus-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);

    ble_uuid.type = p_nus-&amp;gt;uuid_type;
    ble_uuid.uuid = BLE_UUID_NUS_SERVICE;

    // Add the service.
    err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_SECONDARY,
                                        &amp;amp;ble_uuid,
                                        &amp;amp;p_nus-&amp;gt;service_handle);
    /**@snippet [Adding proprietary Service to the SoftDevice] */
    VERIFY_SUCCESS(err_code);


    err_code = sd_ble_uuid_vs_add(&amp;amp;nus_base_uuidHm10, &amp;amp;p_nus-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);

    ble_uuid.type = p_nus-&amp;gt;uuid_type;
    ble_uuid.uuid = BLE_UUID_NUS_SERVICE;

    // Add the service.
    err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY,
                                        &amp;amp;ble_uuid,
                                        &amp;amp;p_nus-&amp;gt;service_handle);
    /**@snippet [Adding proprietary Service to the SoftDevice] */
    VERIFY_SUCCESS(err_code);


    // Add the TX Characteristic.
    /**@snippet [Adding proprietary characteristic to the SoftDevice] */
    memset(&amp;amp;add_char_params, 0, sizeof(add_char_params));
    add_char_params.uuid              = BLE_UUID_NUS_TX_CHARACTERISTIC;
    add_char_params.uuid_type         = p_nus-&amp;gt;uuid_type;
    add_char_params.max_len           = BLE_NUS_MAX_TX_CHAR_LEN;
    add_char_params.init_len          = sizeof(uint8_t);
    add_char_params.is_var_len        = true;
    add_char_params.char_props.notify = 1;
    add_char_params.char_props.write  = 1;
    add_char_params.char_props.indicate  = 1;
    add_char_params.char_props.read  = 1;
    add_char_params.char_props.write_wo_resp  = 1;

    add_char_params.read_access       = SEC_OPEN;
    add_char_params.write_access      = SEC_OPEN;
    add_char_params.cccd_write_access = SEC_OPEN;

    return characteristic_add(p_nus-&amp;gt;service_handle, &amp;amp;add_char_params, &amp;amp;p_nus-&amp;gt;tx_handles);
   /**@snippet [Adding proprietary characteristic to the SoftDevice] */
}


//Main setting------------------------------------
  //Scan Response Data Setting
  //UUID setting
  uuids[0].type = BLE_UUID_TYPE_VENDOR_BEGIN;
  uuids[0].uuid = BLE_UUID_NUS_SERVICE;
  adv_params.srdata.uuids_complete.uuid_cnt = 1;
  adv_params.srdata.uuids_complete.p_uuids = uuids;
  
  &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/thread/266176?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 10:06:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b022b1d1-8779-402a-a1d9-d629e8669d64</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Did you remember to change the UUID on both the central and the peripheral as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/thread/265204?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 01:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d96f4533-4b17-4fe6-911a-d8f82888affc</guid><dc:creator>Daeho</dc:creator><description>&lt;p&gt;Hi, Thank you for reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I did try to debugging and nothing error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Currently, I found modify the UUID. However, I didn&amp;#39;t find that exactly matching method between HM-10 and nRF52832,yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can i get the more information?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/_C8C938BB_.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising problem after changing UUID.</title><link>https://devzone.nordicsemi.com/thread/264826?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 10:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0b58a83-65fb-4a5f-b303-6e1ea7b59616</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Have you tried debugging the device to see if you get any error codes or similar?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>