Questions about configuring advertising on nRF52832 Central

hi

I am developing a product based on the NUS example on nRF52832.

In order to improve the reception sensitivity of the Central Role product, we plan to turn on the power and do advertising initially.

In the basic NUS Central example, advertising_init(); /advertising_start(); Can I just add it?

Also, when advertising, shouldn't central scan be done at the same time?

thank.

Parents
  • Hi,

    In order to improve the reception sensitivity of the Central Role product, we plan to turn on the power and do advertising initially.

    What do you mean by this? How will the advertising improve reception sensitivity of the central role?

    In the basic NUS Central example, advertising_init(); /advertising_start(); Can I just add it?

    You also need to add the corresponding Kconfig symbol(s) (e.g CONFIG_BT_PERIPHERAL/CONFIG_BT_BROADCASTER). 

    This sample shows how to combine peripheral and central roles.

    Also, when advertising, shouldn't central scan be done at the same time?

    There is only one radio in the nRF52832. All enabled roles need to share the access time to the radio. This is handled automatically by the scheduler inside the Bluetooth stack.

    Best regards,
    Jørgen

  • Hi,

    There are multiple examples in nRF5 SDK that combines BLE Central & Peripheral roles, but none that implements NUS. However, the code to start advertising and scanning should be easily portable to the NUS examples.

    You can enable advertising and scanning at the same time, the SoftDevice (Bluetooth stack) will automatically handle the scheduling and switching between the roles.

    Best regards,
    Jørgen

Reply Children
No Data
Related