本人是個(gè)人愛(ài)好者,使用CH571F芯片,自己設(shè)計(jì)的PCB板子,沒(méi)有設(shè)計(jì)外部32K晶振,采用內(nèi)部RC作為32K時(shí)鐘源,使用鍵盤(pán)例程進(jìn)行改動(dòng),發(fā)送數(shù)據(jù)時(shí)藍(lán)牙老是斷開(kāi),通過(guò)BLE助手查看板子的信號(hào)強(qiáng)度在-37dB,不知道是什么問(wèn)題,目前已經(jīng)嘗試調(diào)整過(guò),望解答一下。藍(lán)牙斷開(kāi)原因的reason的參考手冊(cè)從哪兒???
BLE_BUFF_MAX_LEN=251
BLE_TX_NUM_EVENT=4
CLK_OSC32K=2
// Minimum connection interval (units of 1.25ms)
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL? ? ?15//8
// Maximum connection interval (units of 1.25ms)
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL? ? ?45//8
串口輸出如下,
Disconnected.. Reason:8
Advertising..
Connected..
Update 1 - Int 0x6 - Latency 0
Update 1 - Int 0xc - Latency 0
Update 1 - Int 0xc - Latency 0
Update 1 - Int 0x1e - Latency 0
Disconnected.. Reason:8
Advertising..
Connected..
Update 1 - Int 0x6 - Latency 0
Update 1 - Int 0xc - Latency 0
Update 1 - Int 0xc - Latency 0
Update 1 - Int 0x1e - Latency 0
Disconnected.. Reason:8
Advertising..
Connected..
Update 1 - Int 0x6 - Latency 0
Update 1 - Int 0xc - Latency 0
Update 1 - Int 0xc - Latency 0
Disconnected.. Reason:13
Advertising..