Hi,
I have questions for CC2540 MAX/MIN connection time intervals. My understanding is that I can set them up using GAPROLE_MIN_CONN_INTERVAL // GAPROLE_MAX_CONN_INTERVAL. But I have no idea how the interval time is actually chosen between MIN/MAX intervals. I tried to find it in user guide and software's guide documents but couldn't find any clue.
I'm trying to make beacon like device with file transfer feature. So I'd like to set GAPROLE_MIN_CONN_INTERVAL to 80 (which is 100ms) for file transfer and GAPROLE_MAX_CONN_INTERVAL to 1600 (which is 2 sec) for beacon like mode. For this setting, I have below questions. Please help me to solve this problem.
1. How does it determine to use specific value between MIN and MAX connection intervals? Does it totally depend on Master side?
2. Is there a way to change connection interval on the fly?
3. Is it possible to control the slave latency on master side? From my understanding, by setting the slave latency, CC2540 (peripheral) can skip some connections based on data transfer status. Is there a way to decide whether it should skip connection or not initiated by Master? For example, with no data transfer CC2540 skips some connections to save power. When master wants to send data, CC2540 doesn't skip any interval until transfer is done. Is this possible scenario?
4. This is a bit out of topic, but I'm wondering if it's okay to change discoverable mode while it's in connection. If I do the GAPRole_SetParameter for GAPROLE_ADVER_DATA with changing only GAP_ADTYPE_FLAGS_GENERAL from GEP_ADTYPE_FLAGS_LIMITED in advertData, will it do the magic?
Thanks,
Brian