<?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>Change from BLE4 to BLE5 long range (Central and Peripheral) - on the fly</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59370/change-from-ble4-to-ble5-long-range-central-and-peripheral---on-the-fly</link><description>Is it possible to change the protocol on the fly (i.e. based on a flag status or GPIO) from BLE4 to Long range BLE5?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 13:28:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59370/change-from-ble4-to-ble5-long-range-central-and-peripheral---on-the-fly" /><item><title>RE: Change from BLE4 to BLE5 long range (Central and Peripheral) - on the fly</title><link>https://devzone.nordicsemi.com/thread/241149?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 13:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f3c59e0-20da-4ebd-b3bb-9ece755e4e07</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change from BLE4 to BLE5 long range (Central and Peripheral) - on the fly</title><link>https://devzone.nordicsemi.com/thread/241129?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 12:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7c2fc96-ec27-40b0-82b8-2af9472c7d02</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;If I understand you correctly the nRF52840 will be connected to a peripheral over 1/2mbps PHY, and you want it to connect to another device that is advertising using Coded PHY(128kbps) upon reception of a certain UART message.&lt;br /&gt;&lt;br /&gt;In order to do that, you need to start a scan in CODED_PHY with a call to&amp;nbsp;&lt;a title="sd_ble_gap_scan_start" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_6_3_1_2_1_3_37#gabbd87dea8f218d2a7e12c40cfbc6a7d2"&gt;sd_ble_gap_scan_start&lt;/a&gt;() with a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/structble__gap__scan__params__t.html"&gt;ble_gap_scan_params_t&lt;/a&gt;&amp;nbsp;that has the .scan_phys set to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___p_h_y_s.html#gaca98a1c4c8c2e2bc385cd81e9109068a"&gt;BLE_GAP_PHY_CODED&lt;/a&gt;, and the .extended set to 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the radio receives an advertisement on CODED_PHY it will send an advertisement report event to the application, where you will have to decide whether to connect to this particular device or not. To connect you call&amp;nbsp;&lt;a title="sd_ble_gap_connect" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_6_3_1_2_1_3_14#gacca0e56084c7b3ed832b1bfa3911b7fe"&gt;sd_ble_gap_connect&lt;/a&gt;&amp;nbsp;with the peer address as provided in the advertising report, along with the scan parameters you used,&amp;nbsp;a set of connection parameters that you would like, and an optional connection configuration.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The UART communication can be achieved through the&amp;nbsp;&lt;a title="UARTE driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__uarte.html?cp=7_1_6_9_0_42_0"&gt;UARTE driver&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change from BLE4 to BLE5 long range (Central and Peripheral) - on the fly</title><link>https://devzone.nordicsemi.com/thread/241098?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 11:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfe861ba-a140-49a2-a75f-55eb750b422a</guid><dc:creator>Avi</dc:creator><description>&lt;p&gt;I would like to change the PHY according to a UART command&lt;/p&gt;
&lt;p&gt;For example,&amp;nbsp;my 52840 device&amp;nbsp;communicates with another device via BLE4 as a peripheral and once a command via UART arrives, it will change to BLE5 acting as central and connect to another BLE5 device&lt;/p&gt;
&lt;p&gt;Can you elaborate how can I use this function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change from BLE4 to BLE5 long range (Central and Peripheral) - on the fly</title><link>https://devzone.nordicsemi.com/thread/241076?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 10:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c89ec3-44df-4d11-962d-b3d29d6caf08</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;What you&amp;#39;re looking for is the&amp;nbsp;&lt;a title="sd_ble_gap_phy_update" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.0.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_6_3_1_2_1_3_27#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;sd_ble_gap_phy_update&lt;/a&gt;&amp;nbsp;function, it works on a specific link and asks the peer device to change to the requested PHY. Use&amp;nbsp;&lt;span&gt;BLE_GAP_PHY_CODED for long range.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>