<?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>how to update phy from 1M to 2M</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93302/how-to-update-phy-from-1m-to-2m</link><description>There are two DKs, one works as a slave while the other works as a master. When these two peripherals are connected via Bluetooth, they exchange each other&amp;#39;s parameters via the exchange function and I want to make their phy both 2M. 
 Some functions are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Nov 2022 07:46:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93302/how-to-update-phy-from-1m-to-2m" /><item><title>RE: how to update phy from 1M to 2M</title><link>https://devzone.nordicsemi.com/thread/393367?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 07:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa7511f-6e75-4cb2-bdac-8faeaa6be84e</guid><dc:creator>ell_pass</dc:creator><description>&lt;p&gt;Actually, I just use a pristine build rather than build.&amp;nbsp;I also don&amp;#39;t understand why it works in the sample but not in my program.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update phy from 1M to 2M</title><link>https://devzone.nordicsemi.com/thread/393248?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 13:17:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:234b7815-f550-4789-9bee-6523d09a13c4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It is strange that it fails&amp;nbsp;to build, if the only change you did was to add&amp;nbsp;&lt;span&gt;CONFIG_BT_AUTO_PHY_UPDATE&lt;/span&gt;&lt;span&gt;=n to both prj.conf and&amp;nbsp;\child_image\hci_rpmsg\boards\nrf5340dk_nrf5340_cpunet.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe try with a pristine build?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update phy from 1M to 2M</title><link>https://devzone.nordicsemi.com/thread/393172?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 09:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a73b1a8-c451-4bca-acd8-08c4f5f158d8</guid><dc:creator>ell_pass</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/93302/how-to-update-phy-from-1m-to-2m/392858"]you can disable the auto-initiate PHY uppdate procedure by setting this option to =n:[/quote]
&lt;p&gt;When I tried to add &amp;quot;CONFIG_BT_AUTO_PHY_UPDATE = n&amp;quot; into prj.conf, it encountered an error.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;error: Aborting due to Kconfig warnings

CMake Error at F:/v1.9.1/zephyr/cmake/kconfig.cmake:272 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  F:/v1.9.1/zephyr/cmake/app/boilerplate.cmake:544 (include)
  F:/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  F:/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:13 (find_package)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kconfig:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;execute_process(
  COMMAND ${CMAKE_COMMAND} -E env
  ${COMMON_KCONFIG_ENV_SETTINGS}
  SHIELD_AS_LIST=${SHIELD_AS_LIST_ESCAPED_COMMAND}
  ${PYTHON_EXECUTABLE}
  ${ZEPHYR_BASE}/scripts/kconfig/kconfig.py
  --zephyr-base=${ZEPHYR_BASE}
  ${input_configs_are_handwritten}
  ${KCONFIG_ROOT}
  ${DOTCONFIG}
  ${AUTOCONF_H}
  ${PARSED_KCONFIG_SOURCES_TXT}
  ${input_configs}
  WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR}
  # The working directory is set to the app dir such that the user
  # can use relative paths in CONF_FILE, e.g. CONF_FILE=nrf5.conf
  RESULT_VARIABLE ret
  )
if(NOT &amp;quot;${ret}&amp;quot; STREQUAL &amp;quot;0&amp;quot;)
  message(FATAL_ERROR &amp;quot;command failed with return code: ${ret}&amp;quot;)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is where the error occurs.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if(NOT &amp;quot;${ret}&amp;quot; STREQUAL &amp;quot;0&amp;quot;)
  message(FATAL_ERROR &amp;quot;command failed with return code: ${ret}&amp;quot;)
endif()
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When I tried to add&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;CONFIG_BT_AUTO_PHY_UPDATE = n&amp;quot; into nrf5340dk_nrf5340_cpunet.conf (\child_image\hci_rpmsg\boards\nrf5340dk_nrf5340_cpunet.conf), it encountered an error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;F:/EEG/1018.central_uart/child_image/hci_rpmsg/boards/nrf5340dk_nrf5340_cpunet.conf:26: warning: attempt to assign the value &amp;#39; n&amp;#39; to the undefined symbol BT_AUTO_PHY_UPDATE 

error: Aborting due to Kconfig warnings

CMake Error at F:/v1.9.1/zephyr/cmake/kconfig.cmake:272 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  F:/v1.9.1/zephyr/cmake/app/boilerplate.cmake:544 (include)
  F:/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  F:/v1.9.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
  CMakeLists.txt:5 (find_package)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kconfig:(where errors occurs)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  if(NOT ${ret} EQUAL &amp;quot;0&amp;quot;)
    message(FATAL_ERROR &amp;quot;CMake generation for ${ACI_NAME} failed, aborting. Command: ${ret}&amp;quot;)
  endif()&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to update phy from 1M to 2M</title><link>https://devzone.nordicsemi.com/thread/392858?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2022 13:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91565f78-58ef-449b-ad31-3cf90dca33b1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You may find this useful:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-bluetooth-application-on-nrf-connect-sdk-part-3-optimizing-the-connection"&gt;Building a Bluetooth application on nRF Connect SDK - Part 3 Optimizing the connection&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To have better control of the PHy update you can disable the auto-initiate PHY uppdate procedure by setting this option to =n:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_AUTO_PHY_UPDATE"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_AUTO_PHY_UPDATE&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And finally, to understand and observe the difference, I recommend to have an nRF sniffer running in parallell, then you can actually see the transmission on-air to observe what/where etc:&lt;br /&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le&lt;/a&gt;&amp;nbsp;&lt;br /&gt;(link to doc:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html"&gt;https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>