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.

  • 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

    I am creating an inspection mode for a PCB configured as central.

    * Inspection equipment <----- Central PCB (only scan)

    Of course, since Central is not advertising, the inspection equipment cannot inspect.

    so

    After initial booting, I am thinking of adverting only for the first 10 seconds and then returning to scan mode.

    Is this possible?

    The sample code you linked is very different from SDK 17.0.1 that I am looking at...

    Are there any NUS-based examples or ways to set it up?

    thank

  • 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

Related