<?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 advertise a special data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112740/how-to-advertise-a-special-data</link><description>Hi friend, 
 I use SDK16.0, and the version of softdevice is S140 V7.0.1. Can I advertise a special data? like 0x08,0xff,0xa6,0x02,0x33,0x09,0x55,0x00,0x0c. 0x08 is packet length and 0xff to 0x0c are data. 
 Thank you in advance. 
 Ted Wu</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2024 01:05:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112740/how-to-advertise-a-special-data" /><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492585?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 01:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23439912-5866-4cca-9702-3145674efdd6</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Vidar,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have solve this issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ted Wu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492410?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 10:12:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b41dbb1d-0726-4ae9-a369-8250284d8c83</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ted,&lt;/p&gt;
&lt;p&gt;Are you able to upload a minimal version your project so I can try it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492409?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 10:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9ba091-6d72-4d30-82e0-6628abfb9608</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Could you explain it in more detail? I still don&amp;#39;t know how to fix it.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;Ted Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492380?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 08:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cb0527-ba35-41a9-b7ed-0a745051dae0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Ted,&lt;/p&gt;
&lt;p&gt;To start connectable advertising, you need to set the connection configuration tag after advertising init with &lt;strong&gt;ble_advertising_conn_cfg_tag_set&lt;/strong&gt;(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);, where&amp;nbsp;&lt;span&gt;APP_BLE_CONN_CFG_TAG should correspond with the tag used by&amp;nbsp;ble_stack_init()-&amp;gt;nrf_sdh_ble_default_cfg_set().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492354?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 05:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1c4ca0-9dda-435a-aa3e-59677527fed1</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Yes, I tried. But I am getting error code in sd_ble_gap_adv_start function. The error code is 5 (NRF_ERROR_NOT_FOUND). My code snippet is below. I don&amp;#39;t know know to fix it.&lt;/p&gt;
&lt;p&gt;Best wishes&lt;/p&gt;
&lt;p&gt;Ted Wu&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static uint8_t manufacturing_data_payload_list [] =
{
    0x33,
    0x09,
    0x55,
    0x00,
    0x0c
};

void manuf_data_start(void)
{
	ret_code_t err_code;
    ble_advdata_manuf_data_t manuf_specific_data;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));

    init.advdata.name_type               = BLE_ADVDATA_NO_NAME;
    init.advdata.include_appearance      = false;
    init.advdata.flags                   = 0;
    init.advdata.uuids_complete.uuid_cnt = 0;
    init.advdata.uuids_complete.p_uuids  = NULL;

    manuf_specific_data.company_identifier = 0x02A6;
    manuf_specific_data.data.size = 5;
    manuf_specific_data.data.p_data = manufacturing_data_payload_list;

    init.advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;

    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_ADV_DURATION;
    init.config.ble_adv_on_disconnect_disabled = true; //if device disconnect, not needs auto adv again.
	
    init.evt_handler = on_adv_evt;

    err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
    APP_ERROR_CHECK(err_code);

    err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to advertise a special data?</title><link>https://devzone.nordicsemi.com/thread/492223?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2024 11:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45efc363-2517-4f16-b540-7269e9f525db</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you trying to&amp;nbsp;include the &amp;quot;MANUFACTURER SPECIFIC DATA&amp;quot; in your advertisment payload?&amp;nbsp;In that case, you may use the ble_app_beacon example as a reference. It includes this field in the advertisment package.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1720092410631v3.png" alt=" " /&gt;&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></channel></rss>