<?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 read tx power level after reconfig it?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7812/how-to-read-tx-power-level-after-reconfig-it</link><description>Hi,all. i want to set tx power use interface &amp;quot;ble_tps_tx_power_level_set&amp;quot;,and read back tx power level used tps servoce on my phone.how to do that ?Thanks for your reply!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2015 06:45:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7812/how-to-read-tx-power-level-after-reconfig-it" /><item><title>RE: how to read tx power level after reconfig it?</title><link>https://devzone.nordicsemi.com/thread/27816?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2015 06:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d9fc68-53e0-41eb-b554-0168a5038ae4</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Store the power level as a variable, then transmit that variable as a packet over BLE. Then your phone has to react to that packet and give you a notification. You can for example use UART over BLE as described in the tutorial on &lt;a href="https://devzone.nordicsemi.com/tutorials/4/testing-and-using-a-simple-ble-application/"&gt;Testing and using a simple BLE application&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read tx power level after reconfig it?</title><link>https://devzone.nordicsemi.com/thread/27815?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 15:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea126d29-f255-4a05-9018-f1be02fdf33a</guid><dc:creator>wuvo.leo</dc:creator><description>&lt;p&gt;i want to do this: first,change tx power from -4db to 0db use ble_tps_tx_power_level_set on my BLE device.And then,how to notify my phone? it should display 0db not -4db.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to read tx power level after reconfig it?</title><link>https://devzone.nordicsemi.com/thread/27814?ContentTypeID=1</link><pubDate>Wed, 24 Jun 2015 10:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56955e50-7151-4061-bc4e-10606666ca66</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not possible to read TX power of the transmitter from the receiver side, you can however estimate it with an RSSI measurement.&lt;/p&gt;
&lt;p&gt;If you want to send your power level as information over the air you can do something like this pseudocode:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t tx_power = 0;
uint32_t err_code = NRF_SUCCESS;


err_code = ble_tps_tx_power_level_set(ble_tps_t* p_tps, int8_t tx_power_level)
APP_ERROR_CHECK(err_code)
if(err_code == NRF_SUCCESS)
{
    tx_power = xxx; //Some number
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you can send that value over BLE.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>