<?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 change transmitting power ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20013/how-to-change-transmitting-power</link><description>Hello,
I am using pca10028 dk. I want to know how can I change the transmitting power of ble?
My application needs that user should be able to change the transmitting power through app. So how should I proceed?
I am using sdk 12.2.2 and I am referring</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Mar 2017 12:43:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20013/how-to-change-transmitting-power" /><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77889?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 12:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:995dd8b7-cc18-42c9-aa1a-35cce63d5ccd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If you take a look at the &lt;a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.tx_power.xml"&gt;Tx power service&lt;/a&gt; at BLE SIG, you can see that by default only read is supported, this is also how it&amp;#39;s implemented in the SDK. So in order to set the Tx-power from the app, you will have to set the write permission on the Tx-power characteristic, and implement the desired behavior in &lt;code&gt;ble_tps.c&lt;/code&gt;. Set-up the characteristic to support write in the function &lt;code&gt;tx_power_level_char_add()&lt;/code&gt;, add the case &lt;code&gt;BLE_GATTS_EVT_WRITE&lt;/code&gt; in &lt;code&gt;ble_tps_on_ble_evt()&lt;/code&gt;, where you call the function &lt;code&gt;on_write(p_tps, p_ble_evt)&lt;/code&gt;. Implement the desired behavior in your on_write() function(e.g. set the tx power with &lt;code&gt;sd_ble_gap_tx_power_set()&lt;/code&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77891?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 07:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3def6aa7-546c-4cf6-9f15-da95991aaeeb</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello,
I am still looking for answer. I can change the power by adding api in code but my question is how should I allow user to change power from app according to his requirement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77893?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 06:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:348baf7b-c26f-4aa3-b7e6-b389b42ed683</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Your BLE code needs to include the tps (service) which is provided as part of the SDK&lt;/p&gt;
&lt;p&gt;Your phone app needs to be able to write to the service characteristic in the tps service&lt;/p&gt;
&lt;p&gt;Your screenshots seem to merely show the RSSI (received signal strength) by you phone.
I&amp;#39;m not sure if the nRF phone App has a UI for the Transmit Power service (TPS), you may need to write this yourself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77892?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 06:30:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d0efe7-1fc4-4b22-9fdb-ee480f677673</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello,
I have changed the power with api
int8_t tx_power_level = -30;
advdata.p_tx_power_level = &amp;amp;tx_power_level;&lt;/p&gt;
&lt;p&gt;Now I am trying to check the power at -30 dbm and 4 dbm.
I am using nrf connect app and I am checking rssi level but I am surprised to see that there is not much change.
I am attaching screen shots above in question.
Any thoughts?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77890?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 04:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85874dcd-40e7-4039-8702-6c635fe78d55</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Hello,
Thanks for reply. I can now change the tx power but my application is that user should be able to change the tx power from app during run time. Is this possbile?
How to implement?
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77886?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 19:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b46ade-88e2-4048-a2ee-6219b036be2d</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;You will need to add the Tx power service to the gls example if you want to control the Tx power&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77888?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 15:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f956cfd-6b3c-4ede-bab7-e009c15f51be</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You want to change the tx-power using a phone app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77887?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 11:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb624f4b-e907-4c75-bda9-45e9f2c16ffb</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Thanks for reply but my requirement is to change the tx power from app. So any suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to change transmitting power ?</title><link>https://devzone.nordicsemi.com/thread/77885?ContentTypeID=1</link><pubDate>Mon, 27 Feb 2017 06:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f74ad854-c5f0-4d9d-a494-038f8971ae73</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Please see&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/92977/tx-power-example/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>