偶爾情況是這樣,但是好像時(shí)不時(shí)會(huì)出現(xiàn),斷電重上電之后可能會(huì)正常,安卓主機(jī)的日志:[INFO:btsnoop.cc(323)] clear_l2cap_whitelist: Clearing whitelist from l2cap channel. conn_handle=6 cid=4:4?
btm_sec_disconnected clearing pending flag handle:6 reason:8
藍(lán)牙設(shè)置:
// How often to perform read rssi event
#define SBP_READ_RSSI_EVT_PERIOD? ? ? ? ? ? ?3200
// Parameter update delay
#define SBP_PARAM_UPDATE_DELAY? ? ? ? ? ? ? ?6400
// What is the advertising interval when device is discoverable (units of 625us, 80=50ms)
#define DEFAULT_ADVERTISING_INTERVAL? ? ? ? ?80
// Limited discoverable mode advertises for 30.72s, and then stops
// General discoverable mode advertises indefinitely
#define DEFAULT_DISCOVERABLE_MODE? ? ? ? ? ? GAP_ADTYPE_FLAGS_GENERAL
// Minimum connection interval (units of 1.25ms, 6=7.5ms)
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL? ? 6
// Maximum connection interval (units of 1.25ms, 100=125ms)
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL? ? 3200
// Slave latency to use parameter update
#define DEFAULT_DESIRED_SLAVE_LATENCY? ? ? ?6
// Supervision timeout value (units of 10ms, 100=1s)
#define DEFAULT_DESIRED_CONN_TIMEOUT? ? ? ? ?3200