<?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>Automatically switching between 1Mbps, 2Mbps and coded Phys</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35348/automatically-switching-between-1mbps-2mbps-and-coded-phys</link><description>Hi, 
 I am starting to look at using 2Mbps Phy (and eventually coded PHY). I&amp;#39;d like to add the functionality where my device will automatically switch PHYs based on some metric in order to give the best performance e.g. 2Mbps when close, 1Mbps when too</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Jun 2018 05:59:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35348/automatically-switching-between-1mbps-2mbps-and-coded-phys" /><item><title>RE: Automatically switching between 1Mbps, 2Mbps and coded Phys</title><link>https://devzone.nordicsemi.com/thread/136465?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 05:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ff023ca-c16b-429d-bb97-61d112bc94f4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good idea to use the pm to store PHY support for peer devices.&amp;nbsp; With regards to receiver sensitivity,&amp;nbsp; 6 dB&amp;nbsp;difference will actually have a significant impact on range even though it doesn&amp;#39;t sound like much (40 % increase in theory, likely less in practice).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically switching between 1Mbps, 2Mbps and coded Phys</title><link>https://devzone.nordicsemi.com/thread/136245?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 21:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595865d0-855f-4758-99a4-4981eed19632</guid><dc:creator>goldwake</dc:creator><description>&lt;p&gt;Thanks Vidar. I&amp;#39;ve implemented this and keep track of which PHYs the device supports using ble_conn_state flags. It works pretty well. If it&amp;#39;s a bonded peer, I also store these using pm_peer_data_app_data_store&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Looking at the receiver sensitivities seems to show that I can use 2Mbps PHY at almost the same range of dBm as 1Mbps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Automatically switching between 1Mbps, 2Mbps and coded Phys</title><link>https://devzone.nordicsemi.com/thread/136162?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 12:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70d2a052-cd3d-47b8-a47e-7a8959f782e2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think the&amp;nbsp;RSSI&amp;nbsp;can be a good indicator&amp;nbsp; for determining what PHY to use. Sampling of RSSI is started by calling sd_ble_gap_rssi_start() as you said, and BLE_GAP_EVT_RSSI_CHANGED will be reported once the RSSI crosses the chosen&amp;nbsp;threshold.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what the best time to switch phy would be, maybe 5-10 dB below max.&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52840.ps/radio.html?cp=2_0_0_5_19_14_4#unique_853987596"&gt;receiver sensitivity&lt;/a&gt;,&amp;nbsp;&amp;nbsp;or more if the device can&amp;nbsp;get quickly out of range.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not possible to check which modes the peer device support without sending a phy update request.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>