cancel
Showing results for 
Search instead for 
Did you mean: 

Why SCAN-REQ event is not sent?

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
1 ACCEPTED SOLUTION

Accepted Solutions
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

View solution in original post

1 REPLY 1
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