I am using CC2540 ( peripheral + observer ) and stack 1.4
In test, the broadcasting device is sending out data every 100msec.
When my device is not connected to centeral device, scanning is well working.
interval : 1sec
DEFAULT_SCAN_DURATION : 100msec
=> OK
When my device is connected to centeral device (BTOOL or phone), scanning is not working.
(GAP_DEVICE_INFO_EVENT is not recevied)
the interval is 5sec.
if DEFAULT_SCAN_DURATION is smaller than about 2000msec , GAP_DEVICE_INFO_EVENT is not recevied
if DEFAULT_SCAN_DURATION is bigger than about 2000msec , GAP_DEVICE_INFO_EVENT is recevied =>OK
1. I want 3sec interval and 200msec duration for battery.
I don't know why if my device is connected to central device , I can't receive scanning data from broadcaster.
2. I don't know the role of TGAP_GEN_DISC_SCAN_INT and TGAP_GEN_DISC_SCAN_WIND.
I am using the DEFAULT_SCAN_DURATION for duration and
the OSAL timer (GAPObserverRole_StartDiscovery) for interval.
Please help me.