修改藍(lán)牙間隔
//?Fast?advertising?interval?in?625us?units
#define?DEFAULT_FAST_ADV_INTERVAL????????????32

//?Duration?of?fast?advertising?duration?in?(625us)
#define?DEFAULT_FAST_ADV_DURATION????????????30000

//?Slow?advertising?interval?in?625us?units
#define?DEFAULT_SLOW_ADV_INTERVAL????????????1600

//?Duration?of?slow?advertising?duration?in?(625us)?(set?to?0?for?continuous?advertising)
#define?DEFAULT_SLOW_ADV_DURATION????????????0

//?How?often?to?perform?heart?rate?periodic?event
#define?DEFAULT_HEARTRATE_PERIOD?????????????800??????

//?Minimum?connection?interval?(units?of?1.25ms)
#define?DEFAULT_DESIRED_MIN_CONN_INTERVAL????80//20??//2023.12.6

//?Maximum?connection?interval?(units?of?1.25ms)
#define?DEFAULT_DESIRED_MAX_CONN_INTERVAL????160
#define?DEFAULT_DESIRED_MIN_CONN_INTERVAL????80//20??//2023.12.6

這個(gè)改大會(huì)減少一秒內(nèi)藍(lán)牙握手次數(shù)的吧?

那這些又是啥意思 影響什么?

//?Fast?advertising?interval?in?625us?units
#define?DEFAULT_FAST_ADV_INTERVAL????????????32

//?Duration?of?fast?advertising?duration?in?(625us)
#define?DEFAULT_FAST_ADV_DURATION????????????30000

//?Slow?advertising?interval?in?625us?units
#define?DEFAULT_SLOW_ADV_INTERVAL????????????1600


連接間隔配置:

image.png

你截圖的地方看起來是配置廣播間隔用的,可以看下在何處調(diào)用該函數(shù)。

比較明顯的應(yīng)用是回連的時(shí)候一般會(huì)將廣播間隔縮小,進(jìn)行快速回連。


廣播間隔與連接間隔講解參考:

藍(lán)牙BLE從機(jī)Peripheral講解一(廣播間隔和連接間隔) - SweetTea_lllpc - 博客園 (cnblogs.com)


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频