本人是个人爱好者,使用CH571F芯片,自己设计的PCB板子,没有设计外部32K晶振,采用内部RC作为32K时钟源,使用键盘例程进行改动,发送数据时蓝牙老是断开,通过BLE助手查看板子的信号强度在-37dB,不知道是什么问题,目前已经尝试调整过,望解答一下。蓝牙断开原因的reason的参考手册从哪儿取?
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..