This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to control transmission power in pc-ble-driver-py

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 this be done from python side, or we need to add something in the firmware before burning it into the nordic chip?

Parents
  • Hi,

    You can add a function in ble_driver.py under Class 'BLEDriver', to set TX power:

    def ble_gap_tx_power_set(self, tx_power):
        return driver.sd_ble_gap_tx_power_set(self.rpc_adapter, tx_power)

    This function can then be called from the examples. This is from advertising.py, added after driver.ble_enable():

    driver.ble_gap_tx_power_set(-40); # Set TX power to -40 dBm

    There is no such thing as "BLE scanner power".

    Best regards,
    Jørgen

Reply
  • Hi,

    You can add a function in ble_driver.py under Class 'BLEDriver', to set TX power:

    def ble_gap_tx_power_set(self, tx_power):
        return driver.sd_ble_gap_tx_power_set(self.rpc_adapter, tx_power)

    This function can then be called from the examples. This is from advertising.py, added after driver.ble_enable():

    driver.ble_gap_tx_power_set(-40); # Set TX power to -40 dBm

    There is no such thing as "BLE scanner power".

    Best regards,
    Jørgen

Children
No Data
Related