<?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>setting tx power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82054/setting-tx-power</link><description>in NUS ble pheripheral example where actually tx power is set?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Nov 2021 10:16:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82054/setting-tx-power" /><item><title>RE: setting tx power</title><link>https://devzone.nordicsemi.com/thread/340689?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 10:16:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a66ebc6a-1b75-4900-9095-79110a715b2c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In general, increased TX output power will give better coverage if all other parameters are kept constant. If the transmitter and receiver are very close to each others, you may not see a large difference in the received signal strength. The range will depend on many factors, including output power, receiver sensitivity, environment, noise, etc. You can have a look at the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.bluetooth.com/learn-about-bluetooth/bluetooth-technology/range/#estimator"&gt;range estimator from Bluetooth SIG&lt;/a&gt;, where you can input your parameters to get an estimate.&lt;/p&gt;
&lt;p&gt;You can take look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fble_sdk_app_proximity.html&amp;amp;cp=6_1_4_2_2_21"&gt;ble_app_proximity&lt;/a&gt; example, the sd_ble_gap_tx_power_set function is only set as part of advertising_start(). If you&amp;#39;re using it as part of advertising_init() you&amp;#39;ll have to uninit and reinitialize the advertising before you start advertising every time. You can also just set it as part of advertising_start() and not advertising_init().&lt;/p&gt;
&lt;p&gt;-Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting tx power</title><link>https://devzone.nordicsemi.com/thread/340662?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 08:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72f513a6-66bd-401d-a7af-c9fc9e27ac05</guid><dc:creator>venkatesha kj</dc:creator><description>&lt;p&gt;&lt;span&gt;int8_t tx_power_level = 4;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, tx_power_level);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;APP_ERROR_CHECK(err_code);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;will this increases the transmission range?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting tx power</title><link>https://devzone.nordicsemi.com/thread/340640?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 07:06:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a691b01-f0b6-4a93-9012-c5cfc283c881</guid><dc:creator>venkatesha kj</dc:creator><description>&lt;p&gt;static void advertising_init(void)&lt;br /&gt;{&lt;br /&gt; int8_t tx_power_level = 4;&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_advertising_init_t init;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;init, 0, sizeof(init));&lt;/p&gt;
&lt;p&gt;init.advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;br /&gt; init.advdata.include_appearance = false;&lt;br /&gt; // init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;&lt;br /&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;/p&gt;
&lt;p&gt;init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.srdata.uuids_complete.p_uuids = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;init.config.ble_adv_fast_enabled = true;&lt;br /&gt; init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;&lt;br /&gt; //init.config.ble_adv_fast_timeout = APP_ADV_DURATION;&lt;br /&gt; init.config.ble_adv_fast_timeout = 0;&lt;br /&gt; init.evt_handler = on_adv_evt;&lt;/p&gt;
&lt;p&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);&lt;/p&gt;
&lt;p&gt;err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, tx_power_level);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have set the transmit power to 4dbm but if i see the rssi level in nrf connect app its showing -45dbm when i am near to the device will it be set to 4dbm or not? is this the way to set the transmit power?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting tx power</title><link>https://devzone.nordicsemi.com/thread/340633?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 05:35:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e3c2f3-9603-4a20-9dad-e92c8ac454ea</guid><dc:creator>venkatesha kj</dc:creator><description>&lt;p&gt;&amp;nbsp;will nrf52840 supprots all the power levels ? -40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +3dBm and +4dBm.&lt;br /&gt; * In addition, on some chips following values are supported: +2dBm, +5dBm, +6dBm, +7dBm and +8dBm.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: setting tx power</title><link>https://devzone.nordicsemi.com/thread/340572?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 14:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea5cdb82-aeb8-4663-af5f-a00b796f5020</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For TX Power,&amp;nbsp; you can call&amp;nbsp;&lt;br /&gt;bt_hci_cmd_send_sync(BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL, buf, &amp;amp;rsp);&lt;/p&gt;
&lt;p&gt;Also, have a look at this sample&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/master/samples/bluetooth/hci_pwr_ctrl"&gt;github.com/.../hci_pwr_ctrl&lt;/a&gt;&amp;nbsp;for the usage.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can call the function in a thread after it&amp;#39;s connected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>