Customising a bluetooth Zephyr sample

Hi,

I am currently developing with the nRF52 DK (nRF52832 SoC) and the nRF52833 DK (nRf52833 SoC). I have built and flashed the Bluetooth: Peripheral HT sample from Zephyr to both boards successfully. I have tested the application with an Android mobile phone and receive temperature measurements as expected. I would like to customise the source code of this sample application in 2 specific ways:

1. How do I change the TX power?

2. How do I change the PHY to use Coded PHY (S = 8)? I know that this can only be done for the nRF52833.

Thanks,

Adam

Parents
  • Hi Adam

    1. Indeed, you also need to include the dependencies for a config you set, so you also have to set CONFIG_HAS_HW_NRF_RADIO_TX_PWR_HIGH=Y in your config file as well.

    2. What is "this function"?

    Best regards,

    Simon

  • Hi Simon,

    1. Thank you - I have a few questions/issues regarding this:

    A. What is the definition of a dependency with regards to a .conf file?

    B. Must the dependency be added into the prj.conf file? If so, this does not solve the problem. There is an error when setting CONFIG_HAS_HW_NRF_RADIO_TX_PWR_HIGH=y. This seems to be an issue that was also identified in this post but no clear answer was suggested.

    C. Are you sure it is possible to configure the TX power using the prj.conf alone (this would be most convenient) or do additional functions need to be used in the source code?

    2. I am referring to the snippet that you posted -  can I add this create_advertising_coded function into the source code in addition to the existing advertising functions in the Bluetooth: Peripheral HT sample

    Thanks again for the assistance,

    Adam

Reply
  • Hi Simon,

    1. Thank you - I have a few questions/issues regarding this:

    A. What is the definition of a dependency with regards to a .conf file?

    B. Must the dependency be added into the prj.conf file? If so, this does not solve the problem. There is an error when setting CONFIG_HAS_HW_NRF_RADIO_TX_PWR_HIGH=y. This seems to be an issue that was also identified in this post but no clear answer was suggested.

    C. Are you sure it is possible to configure the TX power using the prj.conf alone (this would be most convenient) or do additional functions need to be used in the source code?

    2. I am referring to the snippet that you posted -  can I add this create_advertising_coded function into the source code in addition to the existing advertising functions in the Bluetooth: Peripheral HT sample

    Thanks again for the assistance,

    Adam

Children
No Data
Related