Skip to main content
Piotr Romaniuk
Senior
May 26, 2018
Solved

Why SCAN-REQ event is not sent?

  • May 26, 2018
  • 1 reply
  • 745 views
Posted on May 26, 2018 at 11:37

Hi,

I am using BlueNRG-2 chip with DTM firmware. It is connected to host processor STM32 by SPI.

This bluetooth device works in peripheral role (some sensor).

Advertisement works fine: another device that is a master receives ADV_IND messages as well as SCAN-RSP, that I set in sensor.

I have a problem with SCAN-REQ event, it is never sent by BlueNRG-2.

Firstly, I observed aci_hal_scan_req_report_event() that I defined in my software. It is never called.

Next, I verified that even on SPI this event is not sent.

Why is it like that? Should I enable this event report somehow?

Regards,

Piotr Romaniuk

 

#scan_req #bluenrg-2 #dtm #event
    This topic has been closed for replies.
    Best answer by Piotr Romaniuk
    Posted on May 26, 2018 at 14:43

    I found the solution.

    According to BlueNRG Bluetooth LE Stack documentation, in new features list:

    'ID 2558 Added new event notified to the application when a scan response is sent to a peer device (it is disabled by default)'

    In order to enable it following function must be called:

       aci_hal_set_event_mask( 0x00000001 /*ACI_HAL_SCAN_REQ_REPORT_EVENT*/ );

    I hope this will be usefull for others.

    Piotr Romaniuk

    1 reply

    Piotr Romaniuk
    Piotr RomaniukAuthorAnswer
    Senior
    May 26, 2018
    Posted on May 26, 2018 at 14:43

    I found the solution.

    According to BlueNRG Bluetooth LE Stack documentation, in new features list:

    'ID 2558 Added new event notified to the application when a scan response is sent to a peer device (it is disabled by default)'

    In order to enable it following function must be called:

       aci_hal_set_event_mask( 0x00000001 /*ACI_HAL_SCAN_REQ_REPORT_EVENT*/ );

    I hope this will be usefull for others.

    Piotr Romaniuk