<?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>Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48757/strange-current-in-long-range-beacon</link><description>Hi, I measure current in beacon in Long Range mode. Behind 3 current peaks witch represent TX on channel CH37 CH38 CH39 there is a strange current peak, witch I don&amp;#39;t understand. When I switch to 1MBps this current peaks dosn&amp;#39;t occur. 
 
 
 Here is my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jun 2019 12:02:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48757/strange-current-in-long-range-beacon" /><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/194638?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 12:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a0a1c10-a1de-4b57-8840-42a51bc569d7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mateusz&lt;/p&gt;
&lt;p&gt;Thanks for your thorough research. You are correct,&amp;nbsp;it seems like you&amp;#39;ve found a bug within the SDK. I was able to recreate it as well by following your approach. I have reported the issue internally to get some of the resident experts on long-range to look at it. It might take some time as summer vacation is approaching here, but I&amp;#39;ll give you an update as soon as I know something!&lt;/p&gt;
&lt;p&gt;Hang in there,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/194577?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 09:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb013383-7ebd-4265-b28d-f6e958983b55</guid><dc:creator>Mateusz Gancarczyk</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;hmm.. I thing it&amp;#39;s not hardware problem. I based from the example&amp;nbsp;ble_app_beacon_pca10056_s140 for two board: one base on ISP1807 and second based on BT840E and add few lines to orginal example to change PHY:&lt;/p&gt;
&lt;p&gt;m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;br /&gt; m_adv_params.primary_phy = BLE_GAP_PHY_CODED;&lt;br /&gt; m_adv_params.secondary_phy = BLE_GAP_PHY_CODED;&lt;/p&gt;
&lt;p&gt;When I change it&amp;nbsp;I see the same strange current peak as above. When I run orginal example - without change phy - peak dosn&amp;#39;t occur.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But&amp;nbsp;I noticed something, check picture below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Strange-current-peak.png" /&gt;&lt;/p&gt;
&lt;p&gt;Peak depend of selected secondary phy ( when we use extended adv ).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/194345?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 12:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b902933-9fb9-4286-a76c-ebc6b8f2434f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mateusz&lt;/p&gt;
&lt;p&gt;You&amp;#39;re correct, you have yo use extended advertising for long range. Slip up on my end. I tested this myself on an nRF52840DK. However, we did not get this fourth peak when advertising. Have you tried this on more than one chip? Are you using an nRF52840 DK or a custom chip? Are you using one of our examples or is this your own project? Are you sure you&amp;#39;re not doing anything else in addition to advertising?&lt;/p&gt;
&lt;p&gt;If you want, you could upload your project here (preferably with some instructions on your setup) and we can test it here on our end. If you don&amp;#39;t want to share your project with the community, just say so and I will set this case to private so that only you and Nordic engineers will be able to see the case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/194223?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 07:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dc8bfe0-66cc-4c45-8240-97f72857ef7f</guid><dc:creator>Mateusz Gancarczyk</dc:creator><description>&lt;p&gt;hmm..how I can do that? I guess i have to only change:&lt;/p&gt;
&lt;p&gt;m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/p&gt;
&lt;p&gt;to:&lt;/p&gt;
&lt;p&gt;m_adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/p&gt;
&lt;p&gt;but when I change it, I get error after function:&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;m_adv_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;error_code = 0x07 (&amp;nbsp;NRF_ERROR_INVALID_PARAM ).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What else I should to change to get non exteneded advertise?&lt;br /&gt;Advertising in Long Range mode, works only in&amp;nbsp;&lt;span&gt;BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED. I try all other type and it&amp;#39;s not working.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/193683?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 13:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f50c51d-3cf2-418f-b3aa-470f77073f0b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mateusz&lt;/p&gt;
&lt;p&gt;No, you are not listening for scan requests/responses when advertising nonconnectable and nonscannable. But the extended advertising might be what causes this extra &amp;quot;spike&amp;quot;. Could you try advertising in long-range mode &amp;quot;normally&amp;quot; and not extended?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/193580?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 08:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ba9646-8839-4e5f-b53a-16970d581d05</guid><dc:creator>Mateusz Gancarczyk</dc:creator><description>&lt;p&gt;I thinkg no.&lt;/p&gt;
&lt;p&gt;Here is my full adv init:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_init(void)
{
    manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;
		
    manuf_specific_data.data.p_data = (uint8_t *)beaconData;
    manuf_specific_data.data.size   = APP_BEACON_INFO_LENGTH;

    // 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;

    // Initialize advertising parameters (used when starting advertising).
    memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));
		
/* long range*/
		m_adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
    m_adv_params.primary_phy   	 = BLE_GAP_PHY_CODED;
    m_adv_params.secondary_phy 	 = BLE_GAP_PHY_CODED;
/* 1MBPS  */
//    m_adv_params.properties.type = BLE_GAP_ADV_TYPE_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.scan_req_notification = 0;


    err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);
    APP_ERROR_CHECK(err_code);

    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;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange current in Long Range Beacon</title><link>https://devzone.nordicsemi.com/thread/193578?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2019 08:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312328cf-38df-456d-b165-74ddd1df68fd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you listening for Scan Requests ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>