2018-05-26 02:37 AM
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 #eventSolved! Go to Solution.
2018-05-26 05:43 AM
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
2018-05-26 05:43 AM
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