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 Reply Children
  • Thanks for the help Simon,

    1. That is for the HCI power control application where the TX power is modulated according to the RSSI. How can I simply set the default power to 8dBm in the Bluetooth: Peripheral HT sample from Zephyr?

    2. Can you please be more specific as to what advertising initialization needs to change in the Bluetooth: Peripheral HT sample? Do I need to change the bt_ready function (code attached below)?

    Furthermore, under requirements for the Peripheral Heart Rate Monitor with Coded PHY sample, it does not support the nRF52833 DK which I am using. Surely this sample can be built for the nRF52833 as it supports Coded PHY?

    static void bt_ready(void)
    {
    int err;
    printk("Bluetooth initialized\n");
    hts_init();
    err = bt_le_adv_start(BT_LE_ADV_CONN_NAME, ad, ARRAY_SIZE(ad), NULL, 0);
    if (err) {
    printk("Advertising failed to start (err %d)\n", err);
    return;
    }
    printk("Advertising successfully started\n");
    }
Related