<?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 control transmission power in pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37838/how-to-control-transmission-power-in-pc-ble-driver-py</link><description>We are using pc-ble-driver-py on our Ubuntu host machine which is connected to the nrf52832 running connectivity firmware and we are able to run the examples, how could we control the transmission power or the ble scanner power to get more coverage? can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 08:49:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37838/how-to-control-transmission-power-in-pc-ble-driver-py" /><item><title>RE: How to control transmission power in pc-ble-driver-py</title><link>https://devzone.nordicsemi.com/thread/145856?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 08:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7dbb2c3-55d1-493d-b85a-f3475f16b45b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can add a function in ble_driver.py under Class &amp;#39;BLEDriver&amp;#39;, to set TX power:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;def ble_gap_tx_power_set(self, tx_power):
    return driver.sd_ble_gap_tx_power_set(self.rpc_adapter, tx_power)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This function can then be called from the examples. This is from advertising.py, added after driver.ble_enable():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;driver.ble_gap_tx_power_set(-40); # Set TX power to -40 dBm&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There is no such thing as &amp;quot;BLE scanner power&amp;quot;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>