<?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>Le Lange range unconnectable advertising Mode Setting and Protocol analysis</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101826/le-lange-range-unconnectable-advertising-mode-setting-and-protocol-analysis</link><description>Hello. I&amp;#39;m making a remote id device based on sdk17 on nrf52840 and I&amp;#39;m having some problems with unconnectable advertising. I need to broadcast two packets in extend mode. Just like 
 the pictures below. I couldn&amp;#39;t find document about this and had to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Jul 2023 09:44:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101826/le-lange-range-unconnectable-advertising-mode-setting-and-protocol-analysis" /><item><title>RE: Le Lange range unconnectable advertising Mode Setting and Protocol analysis</title><link>https://devzone.nordicsemi.com/thread/436682?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 09:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2eda2c9-0ac5-40ad-bc9c-889350427586</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you have another device that broadcasts the correct payload that you can compare against? From the picture you posted, it is not clear if app code, counter, etc should be included in the manufacturer field or not.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Le Lange range unconnectable advertising Mode Setting and Protocol analysis</title><link>https://devzone.nordicsemi.com/thread/436406?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2023 08:32:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6321970-d3b7-4a9d-8dc4-1b54a65727ee</guid><dc:creator>quiqiuyu</dc:creator><description>&lt;p&gt;Hi，&lt;/p&gt;
&lt;p&gt;thanks for respond.&lt;span&gt;I am completely unaware of what operations I have performed on the protocol stack. Currently, I have organized&amp;nbsp;&lt;/span&gt;ad info&lt;span&gt;,&amp;nbsp;&lt;/span&gt;app code&lt;span&gt;, Counter, and ODID Msg in order to form a data packet and assigned the pointer to pdata under ble_advdata_manuf_data_t. However, the data I observed on nrf_connect contains flags and&amp;nbsp;&lt;/span&gt;company identifier&lt;span&gt;, which seems to be inconsistent with my requirements. The attached figure is the protocol I am broadcasting.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:209px;max-height:209px;max-width:582px;" alt=" " height="138" src="https://devzone.nordicsemi.com/resized-image/__size/1164x418/__key/communityserver-discussions-components-files/4/keine-Ahnung.PNG" width="581" /&gt;&lt;/p&gt;
&lt;p&gt;and blew is the data from nrf_connect&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_AE5FE14FFE5647725F00_20230714163121.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Le Lange range unconnectable advertising Mode Setting and Protocol analysis</title><link>https://devzone.nordicsemi.com/thread/436242?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 12:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b02cd6fe-f082-4693-bd38-24550ea8f4ba</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You only need to encode the advdata yourself using the ble_advdata_encode() function. The Bluetooth stack will populate the other fields in the advertising header.&lt;/p&gt;
[quote user="quiqiuyu"]This is the broadcast I&amp;#39;m currently configuring and I&amp;#39;m not sure if it&amp;#39;s right.&amp;nbsp;For example, for the uuid in advdata in the figure, should I define ble_advdata_service_data_t or write as broadcast data before&amp;nbsp;m_beacon_info &amp;nbsp;in ble_advdata_manuf_data_t.&amp;nbsp;[/quote]
&lt;p&gt;It depends on whether you want the UUID to be placed in the manufacturer field or not. Are you trying to implement the beacon payload according to a specific beacon standard that needs to work with third-party scanners, or are you creating a custom beacon?&lt;/p&gt;
&lt;p&gt;You may find the demo examples I posted here relevant:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69595/problem-with-scanning-1mbps-and-coded-phy-at-the-same-time/285978"&gt;RE: Problem with scanning 1Mbps and Coded Phy at the same time&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Le Lange range unconnectable advertising Mode Setting and Protocol analysis</title><link>https://devzone.nordicsemi.com/thread/436136?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2023 06:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9639be01-8735-4067-8787-01f83066fadd</guid><dc:creator>quiqiuyu</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    my_Nus_Decoded(fstorage);
		Prepare_MulticopterPackage1(m_beacon_info);

    manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info;
    manuf_specific_data.data.size   = APP_BEACON_INFO_LENGTH;
		
		ble_advdata_service_data_t   m_odid_data;
		m_odid_data.service_uuid  = 0xFFFA;
		m_odid_data.data.p_data   = count_code;
		m_odid_data.data.size     = 2;

    // Build and set advertising data.
    memset(&amp;amp;advdata, 0, sizeof(advdata));

    advdata.name_type             = BLE_ADVDATA_NO_NAME;
    advdata.flags                 = flags;
    advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;
    advdata.p_service_data_array  = &amp;amp;m_odid_data;
    // Initialize advertising parameters (used when starting advertising).
    memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));

    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
    m_adv_params.p_peer_addr     = NULL;    // Undirected advertisement.
    m_adv_params.filter_policy   = BLE_GAP_ADV_FP_ANY;
    m_adv_params.interval        = NON_CONNECTABLE_ADV_INTERVAL;
    m_adv_params.duration        = 0;       // Never time out.
    m_adv_params.primary_phy     =BLE_GAP_PHY_CODED;
		m_adv_params.secondary_phy   =BLE_GAP_PHY_CODED;  
    		
    err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.scan_rsp_data.p_data, &amp;amp;m_adv_data.scan_rsp_data.len);
    APP_ERROR_CHECK(err_code);
//		m_advertising.adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;
    err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;m_adv_params);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;This is the broadcast I&amp;#39;m currently configuring and I&amp;#39;m not sure if it&amp;#39;s right.&amp;nbsp;For example, for the uuid in advdata in the figure, should I define ble_advdata_service_data_t or write as broadcast data before&amp;nbsp;m_beacon_info &amp;nbsp;in ble_advdata_manuf_data_t.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>