cancel
Showing results for 
Search instead for 
Did you mean: 

Why discovery end event is missing from BlueNRG-2?

Hi,

I use my device for continuous scanning. The scanning is started by calling:

aci_gap_start_general_discovery_proc(   
          2000 /*LE_Scan_Interval = 1.25 s */, 
          1800 /*LE_Scan_Window = 1.125 s */, 
          0x00 /*=use public dev addr */, 
          0x00 /*=duplicate filtering dissabled*/);

After 10 seconds, this procedure automatically terminates, and this is signalled by the event:

aci_gap_proc_complete_event(...) 
     with arg. Procedure_Code == 0x02 /*= GENERAL_DISCOVERY_PROC*/

I detect it and re-enable discovery procedure. While discovery procedure is working I receive correct ADV_IND (reports) from sensor devices.

This regular behaviour and works fine.

Unfortunatelly, sometimes I do not receive the event. No advertisement reports are received then.

When it happens I cannot terminate the discovery procedury nor start it again. Both functions: aci_gap_start_general_discovery_proc, aci_gap_terminate_gap_proc(0x02) return the error: 12 ERR_COMMAND_DISALLOWED.

Why the event is missing?

Regards,

Piotr

PS

I use BlueNRG-2 in network processor communication mode. It is connected via SPI with STM32 where is my application. BlueNRG-2 is programmed with DTM firmware. I use DK-3.0.0.

0 REPLIES 0