Other Parts Discussed in Thread: SYSCONFIG
Hi All
I developed an app from multi role example.
My app alternates between central and peripheral roles until a connection is established.
If the connection is requested by a central, my app remains peripheral, and stops advertising.
If a peripheral was found, it automatically connects to it and continue scanning until 4 peripherals are connected, in that case, it remains as a central, no longer alternating to peripheral role.
I found that depending on the peripherals around, it sometimes has trouble to connect to the third or fourth peripheral.
I'm using a low connection interval from 7.5min to 15ms max.
I'd like to play with Scan window/interval to optimize connection to multiple peripherals.
When setting Scan window/interval in Sysconfig (under the observer section), I can see the changes in ti_ble_config.h
// Default scan interval (in 625 us ticks)
#define DEFAULT_SCAN_INTERVAL 24
// Default scan window (in 625 us ticks)
#define DEFAULT_SCAN_WINDOW 16
Anyway I cannot find anywhere in the code where those defines are used ?
I was expecting to find somewhere in multirole.c
GAP_SetParamValue(TGAP_GEN_DISC_SCAN_INT, DEFAULT_SCAN_INTERVAL);
GAP_SetParamValue(TGAP_GEN_DISC_SCAN_WIND, DEFAULT_SCAN_WINDOW);
But I do not see where those define are used in multirole app ?
Thanks