<?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>Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43212/beacon-parameter-settings-in-nrf52840</link><description>Hi, 
 Actually i m new on this field. 
 I m making indoor navigation by using nrf52840 soc.And i m using sdk15.2.In that sdk i used beacon app code for advertising beacon values. 
 Now i set some parameters in listed below 
 APP_MEASURED_RSSI 0xC3 
 m_adv_params</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Mar 2019 13:58:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43212/beacon-parameter-settings-in-nrf52840" /><item><title>RE: Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/thread/175361?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 13:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e8a27f-6b41-4d76-a5c5-a2405999242b</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;There is nothing called standard BLE configuration that makes the contents of the beacon dependent on the variant of the device. If that is not what you are asking, maybe you are asking about the location in the file where you change these settings, in that case, my reply a month ago is still valid.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/thread/174931?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 06:41:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da4c9d63-984f-44a9-a75d-993ed769ad78</guid><dc:creator>mayuri</dc:creator><description>&lt;p&gt;Is there standard Ble configuration in location mapping? like major,minor,uuid,txpower....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/thread/168887?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 14:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b51c00b-6611-4cf9-b5f0-de9a48d05a31</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user="Mayuri"]what is the standard beacon configuration in nrf52840.[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by standard beacon configuration? Advertising interval? TX Power?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/thread/168879?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 13:15:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bceea15-af90-443b-8281-5ae3d54ae5de</guid><dc:creator>mayuri</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;I changed my arguments.&lt;/p&gt;
&lt;p&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, BLE_GAP_TX_POWER_ROLE_ADV, 4);&lt;/p&gt;
&lt;p&gt;what is the standard beacon configuration in nrf52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Beacon Parameter Settings in NRF52840</title><link>https://devzone.nordicsemi.com/thread/168876?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 13:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d4b727a-acd2-4ca7-88db-44e54e40f5e0</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT(2), BLE_GAP_TX_POWER_ROLE_ADV(1), 4);[/quote]
&lt;p&gt;&amp;nbsp;This does not appear to be correct, if you look at the API definition:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Set the radio&amp;#39;s transmit power.
 *
 * @param[in] role The role to set the transmit power for, see @ref BLE_GAP_TX_POWER_ROLES for
 *                 possible roles.
 * @param[in] handle   The handle parameter is interpreted depending on role:
 *                     - If role is @ref BLE_GAP_TX_POWER_ROLE_CONN, this value is the specific connection handle.
 *                     - If role is @ref BLE_GAP_TX_POWER_ROLE_ADV, the advertising set identified with the advertising handle,
 *                       will use the specified transmit power, and include it in the advertising packet headers if
 *                       @ref ble_gap_adv_properties_t::include_tx_power set.
 *                     - For all other roles handle is ignored.
 * @param[in] tx_power Radio transmit power in dBm (see note for accepted values).
 *
  * @note Supported tx_power values: -40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +2dBm, +3dBm, +4dBm, +5dBm, +6dBm, +7dBm and +8dBm.
  * @note The initiator will have the same transmit power as the scanner.
 * @note When a connection is created it will inherit the transmit power from the initiator or
 *       advertiser leading to the connection.
 *
 * @retval ::NRF_SUCCESS Successfully changed the transmit power.
 * @retval ::NRF_ERROR_INVALID_PARAM Invalid parameter(s) supplied.
 * @retval ::BLE_ERROR_INVALID_ADV_HANDLE Advertising handle not found.
 * @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied.
 */
SVCALL(SD_BLE_GAP_TX_POWER_SET, uint32_t, sd_ble_gap_tx_power_set(uint8_t role, uint16_t handle, int8_t tx_power));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you look at the first parameter, &lt;strong&gt;uint8_t role, &lt;/strong&gt;one of these three defines can be used:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief GAP TX Power roles.
 */
enum BLE_GAP_TX_POWER_ROLES
{
  BLE_GAP_TX_POWER_ROLE_ADV       = 1,           /**&amp;lt; Advertiser role. */
  BLE_GAP_TX_POWER_ROLE_SCAN_INIT = 2,           /**&amp;lt; Scanner and initiator role. */
  BLE_GAP_TX_POWER_ROLE_CONN      = 3,           /**&amp;lt; Connection role. */
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looking at your code, you want &lt;strong&gt;BLE_GAP_TX_POWER_ROLE_SCAN_INIT. &lt;/strong&gt;If you look at the API documentation for &lt;strong&gt;sd_ble_gap_tx_power_set&lt;/strong&gt;, you see that by using this &lt;strong&gt;role&lt;/strong&gt;, the next input should be &lt;strong&gt;NULL. &lt;/strong&gt;The third input looks fine.&lt;/p&gt;
&lt;p&gt;To summarize, try:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT, NULL, 4);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>