set tx power with tx power service on zephyr

hello Nordic

i am using nrf52840, with zephyr 

i wish to use the nrfConnect Tx power service to read and to SET my Tx power

but in ncs in zephyr/subsys/bluetooth/services/tps.c i see implementation only for "read_tx_power_level"

does it mean that the serice does not support set of the tx power or that the use of setting via the service is done somewhere else, if so can you direct me to where ?

hope to read from you soon

best regards

Ziv 

Parents
  • Hi,

    The Tx Power Service (TPS) is a Bluetooth defined service, you can find the specification on this page. If you look at chapter 3 of the specification, you can see that only Read property is mandatory, while other properties are marked ‘X’ (excluded/not permitted).

    If you want to set the TX power, you need to create a custom service for this.

    Best regards,
    Jørgen

  • Hi Jorgen 

    i saw there is an example in zephyr/samples/bluetooth/hci_pwr_ctrl , i wanted to make sure i understand it right then .. is it just for the nrf52840 peripheral side and it is actually not showing how to set the tx power from a central side, after connection has been established and the nrf52840 peripheral is configured to by it self try save on tx power via the analysing of the RSSI ?

    is it actually possible to change the tx power within an already established ble connection via some custom service (is there some service that already contain this feature? ) ? 

    hope to read from you soon

    best regards

    Ziv

Reply
  • Hi Jorgen 

    i saw there is an example in zephyr/samples/bluetooth/hci_pwr_ctrl , i wanted to make sure i understand it right then .. is it just for the nrf52840 peripheral side and it is actually not showing how to set the tx power from a central side, after connection has been established and the nrf52840 peripheral is configured to by it self try save on tx power via the analysing of the RSSI ?

    is it actually possible to change the tx power within an already established ble connection via some custom service (is there some service that already contain this feature? ) ? 

    hope to read from you soon

    best regards

    Ziv

Children
No Data
Related