<?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>Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57292/evaluation-of-ble5-extended-advertisement-with-nrf52832</link><description>Hi All, 
 I want explore BLE5 extended advertisement with nRF52832. 
 Using &amp;quot;ble_peripheral\ble_app_blinky&amp;quot; code from SDK16.0.0, facing &amp;quot; NRF_ERROR_INVALID_PARAM (7)&amp;quot; error in response to sd_ble_gap_adv_set_configure. Following is a source code of advertisement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Feb 2020 05:46:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57292/evaluation-of-ble5-extended-advertisement-with-nrf52832" /><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/234773?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 05:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cb6a659-78d3-4fc8-9324-1b516cf0b526</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Thanks a lot Edvin for kind help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Bipin Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/234194?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 13:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6cc5d77-ce44-4359-a927-653cd46dbecb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;None of the examples use long range by default. What you can do is to use any of the examples, and request to use long range after the connection has occured. It is possible to advertise and scan using long range as well. I have not done this myself, but you can search for the topic here on DevZone. There are plenty of threads on that topic.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/234156?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 11:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:369ddb57-e1fa-419b-b856-71e0d900f151</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for knowledge!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One more help I need. Can you suggest any example from SDK which support BLE5 long range test?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/234138?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 09:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bbdec8d-6441-4e00-b665-b314c84108c6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;CSA#2 is for connections, not advertising. It is included from Softdevice S132v5.0.0, as you can see in the release notes:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-451f011d05374db0b7b15fdd3450785b/s132_5F00_nrf52_5F00_7.0.1_5F00_release_2D00_notes.pdf"&gt;devzone.nordicsemi.com/.../s132_5F00_nrf52_5F00_7.0.1_5F00_release_2D00_notes.pdf&lt;/a&gt;&lt;br /&gt;(I know that this is the 7.0.1 specification, but search for &amp;quot;channel selection algorithm&amp;quot;, and you will see the release notes for v5.0.0 a bit down in that document)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is supported. If both devices in a connection supports it, it will be used. If one device doesn&amp;#39;t support it, it will not be used.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/233862?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2020 05:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793fd318-4425-4400-ae95-f7e5b4a62568</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for clarification. One more question regarding BLE5. As I study, BLE5 has one more improvement that is CSA#2. Is it related to advertisement or connection. Is it enabled in example or in new softdevice by default?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/233219?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 09:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b83e7679-9e86-4837-816c-6c0609c96efb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Bipin,&lt;/p&gt;
&lt;p&gt;1)&lt;/p&gt;
&lt;p&gt;It is a bit confusing. It is actually the softdevices that are BLE5 compatible, and not the examples. BLE5 is a superset of BLE4, meaning that BLE5 = BLE4++. All the features that are added to BLE5 are optional, so in theory, you can say that a BLE device that is working perfectly fine in BLE4 is BLE5 compatible, but doesn&amp;#39;t support any of the new features.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, the features in BLE5 are backwards compatible in a way, meaning that if a connected device doesn&amp;#39;t support that feature, they will stick to the BLE4 version of the feature. One example is the 2MBPS. If you request 2MBPS in a connection, but the connected device doesn&amp;#39;t support it, then they will stay on 1MBPS. The same goes for Long Range, which is not supported by the nRF52832.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
&lt;p&gt;So it is not really defined what BLE5 only is, because of what I described in 1). You can of course say that extended advertising is BLE5 only, because BLE4 only devices will not be able to read the advertising extensions, but other than that, all features are optional, and BLE5 is backwards compatible.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/233186?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 06:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c920c283-15c3-4f93-836d-c06ed2c35935</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for help. I am able to set successfully following with&amp;nbsp;&lt;span&gt;ble_app_uart&amp;nbsp;example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;.tx_phys = BLE_GAP_PHY_2MBPS,&lt;br /&gt; .rx_phys = BLE_GAP_PHY_2MBPS&lt;/p&gt;
&lt;p&gt;I have one some confusion with nordic sdk examples if you can clear it.&lt;/p&gt;
&lt;p&gt;1) How can I clearly differentiate that whatever example support BLE4 or BLE5?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Is any dedicated example is available which fully support BLE5 only?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/233040?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 12:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bb4a39-8aae-407a-80f0-7dac337833e0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yes, you can do that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It can be done with pretty much any example, but if you want to send payload data, I would suggest you look into the ble_app_uart example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Pretty much everything is already set up, but it doesn&amp;#39;t by default use 2MBPS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can add something the following to the BLE_GAP_EVT_CONNECTED event:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_gap_phys_t const my_new_phys = 
            {
                .tx_phys = BLE_GAP_PHY_2MBPS,
                .rx_phys = BLE_GAP_PHY_2MBPS
            };
            err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;my_new_phys);
            APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then look after the&amp;nbsp;BLE_GAP_EVT_PHY_UPDATE event. When this event occurs, you can check the new phy:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case BLE_GAP_EVT_PHY_UPDATE:
            NRF_LOG_INFO(&amp;quot;Phy Updated. TX: %d, RX: %d&amp;quot;, p_ble_evt-&amp;gt;evt.gap_evt.params.phy_update.tx_phy, p_ble_evt-&amp;gt;evt.gap_evt.params.phy_update.rx_phy);
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If it is updated to 2MBPS, then you should see:&lt;/p&gt;
&lt;p&gt;&amp;quot;Phy Updated. TX: 2, RX: 2&amp;quot;&lt;/p&gt;
&lt;p&gt;If it is printing other numbers than two, check which one they refer to in ble_gap.h -&amp;gt;&amp;nbsp;BLE_GAP_PHYS&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/233024?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 10:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0b9e39-ad00-4c31-b7ee-147b44b31c2d</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Thanks Edvin for clarification on chained advertisement.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you suggest me how can I&lt;/span&gt;&lt;span&gt;&amp;nbsp;evaluate high speed data transfer at 2 Mbps. Can I do it with existing example? If yes then how?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/232968?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 08:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a347c30-a8b5-4b2d-b80f-af42db728b12</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Currently this is not possible with the softdevice. Please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38702/maximum-extended-advertising-data-length-supported/149693#149693" rel="noopener noreferrer" target="_blank"&gt;this ticket&lt;/a&gt;. The maximum supported length is 255 bytes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/232840?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 12:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa2f7f8-9f85-4905-9744-382b37849f5f</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I just want to evaluate feature of extended advertisement&amp;nbsp;for data &amp;gt;255 bytes using chained advertisement if possible with SDK and SD. In my actual application I will not use it.&lt;/p&gt;
&lt;p&gt;Can you also suggest&lt;span&gt;&amp;nbsp;evaluate high speed data transfer at 2 Mbps. Can I do it with existing example? If yes then how?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bipin Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/232833?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 12:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ddbc142-765b-41d4-9ab9-05386c462292</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you use extended advertising you can hold up to 255 bytes of payload data per packet. However, transferring data via advertising packets is not a very reliable way of doing so. You have no way of knowing whether an advertisement packet is received correctly, or received at all from the peripheral. If you want to transfer data, I suggest that you enter a connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/232775?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2020 09:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb220eb3-c903-4af5-a4f8-e6c9e7662638</guid><dc:creator>karanbakshi</dc:creator><description>&lt;p&gt;Thanks Edvin.&lt;/p&gt;
&lt;p&gt;I have used example&amp;nbsp;&lt;span&gt;ble_app_rscs and able to evaluate extended advertisement. My next plan is to perform following.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) Want to use chained advertisement to broadcast up to&amp;nbsp;1650 bytes. How can I do it with existing example?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) To evaluate high speed data transfer at 2 Mbps. Can I do it with existing example? If yes then how?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks in advance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bipin Patel&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Evaluation of BLE5 extended advertisement with nRF52832</title><link>https://devzone.nordicsemi.com/thread/232592?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6cd625-b9d6-4db1-9218-2fc615cec905</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is a bit tricky to set it up the way that you are doing it here, it seems. I suggest that you use the advertising module.&lt;/p&gt;
&lt;p&gt;If you look in the example ble_app_rscs from DK16.0.0 this is an example that will use extended advertising by default. If you look in advertising_init(), it says:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;init.config.ble_adv_extended_enabled = true;&lt;/p&gt;
&lt;p&gt;and then&lt;/p&gt;
&lt;p&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is not possible when using&amp;nbsp;sd_ble_gap_adv_set_configure() directly. This setting is stored in the ble_advertising_init_t init.&lt;/p&gt;
&lt;p&gt;Search for &amp;quot;ble_adv_extended_enabled&amp;quot; in this project, and you can see where it is set. The structs are a bit different, using the&amp;nbsp;ble_advertising_init_t type, so I haven&amp;#39;t looked into the details, but it includes ble_advertising_init_t and&amp;nbsp;ble_advertising_t, where the scan response is located in&amp;nbsp;ble_advertising_t-&amp;gt;adv_data.scan_rsp_data, which is different from&amp;nbsp;ble_advdata_t.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Take a look at that example, and see if you can get it up and running from there.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>