Skip to main content
DLoza.2
Associate III
May 5, 2022
Solved

BlueNRG-LP hci_le_advertising_report_event() isn't called

  • May 5, 2022
  • 2 replies
  • 1117 views

Hi,

I want to program a connectionless observer to scan events, but the hci_le_advertising_report_event() callback isn't called.

I have followed the steps of programming manual PM0269 for configure the modular configurations to work as Broadcaster + Observer only:

  1. Define BLE_STACK_CUSTOM_CONF in the preprocessor.
  2. Enable CONTROLLER_MASTER_ENABLED in custom_ble_stack_config.h
  3. Set in asci_gap_init() GAP_BROADCASTER_ROLE|GAP_OBSERVER_ROLE roles

My enable scan with this configuration:

aci_gap_set_scan_configuration ( DUPLICATE_FILTER_DISABLED, 

              ADV_NO_WHITE_LIST_USE,

LE_1M_PHY_BIT,

  PASSIVE_SCAN,

  0x10,

  0x10

               );

hci_le_set_scan_enable(1,0);

I don't get any error, but the hci_le_advertising_report_event() isn't called. Supposedly, hci_le_set_event_mask( ) isn't necessary because the adv report event is enabled by default, but even calling this function, the callback isn't work.

I would like know what I'm doing worng.

Daniel

    This topic has been closed for replies.
    Best answer by Sebastien DENOUAL

    Hi @DLoza.2​ ,

    After you rcall to aci_gap_set_scan_configuration ( ..);

    May you try to call aci_gap_start_procedure() instead of hci_le_set_scan_enable() ?

    Thanks,

    Sebastien.

    2 replies

    Sebastien DENOUAL
    ST Employee
    May 5, 2022

    Hi @DLoza.2​ ,

    After you rcall to aci_gap_set_scan_configuration ( ..);

    May you try to call aci_gap_start_procedure() instead of hci_le_set_scan_enable() ?

    Thanks,

    Sebastien.

    DLoza.2
    DLoza.2Author
    Associate III
    May 6, 2022

    Hi again @Sebastien DENOUAL​ ,

    Using aci_gap_start_procedure() instead of hci_le_set_scan_enable() works! I proved it before but It didn't work, maybe I configured it wrong.

    Thanks Sebastien!

    Daniel