cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-LP hci_le_advertising_report_event() isn't called

DLoza.2
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Sebastien DENOUAL
ST Employee

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.

View solution in original post

2 REPLIES 2
Sebastien DENOUAL
ST Employee

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
Associate III

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