Csr8670 open after BLE, my samsung S8 + mobile phone can search to the BLE broadcast information, and can be normal matching binding and connection, can appear GATT_MANAGER_REMOTE_CLIENT_CONNECT_CFM log
GATT_MANAGER_REMOTE_CLIENT_CONNECT_CFM status=(0 x0)
GattServerBdAddrtIsBonded
Public Addr 57 cc71] [1456:8 e:
BLE addr is Bonded state
BLE is Connectable in state
GATT Client: Read the Client config addr/1456:8 e: 57 cc71 config_gatt config_batt_l [0 x0] [0 x0] config_batt_r config_batt_p [0 x0] [0 x0]
GAP new event=[PERIPHERAL_CONNECT_IND] state=[SCAN_ADV]
GAP state=[SCANNING_ADVERTISING] Event=
GAP gapStartEncryption Start Encryption: 0
But I use the other phone, huawei, millet of all have no, no GATT_MANAGER_REMOTE_CLIENT_CONNECT_CFM message, the log is
GATT_CONNECT_IND - Rejected
GATT_CONNECT_CFM - Ignored
CL=[501 a]
HS: ACL the Opened
CL=[5003]
CL=[502] f
CL_SM_ENCRYPTION_CHANGE_IND
GATT_CONNECT_IND - Rejected
GATT_CONNECT_CFM - Ignored
CL=[501 b]
HS: ACL Closed
Check code comments, as if said based on BR/EDR GATT connected directly rejection and ignore
static void handleGattConnectInd (const GATT_CONNECT_IND_T * ind)
{
GATT_INFO ((" GATT_CONNECT_IND - the Rejected \ n "));
/* Reject GATT connection over BR/EDR */
GattConnectResponse (& amp; BLE. Task, ind - & gt; Cid, ind - & gt; Flags, FALSE);
}
Excuse me each technology, have encountered similar problems, could you tell me is how to deal with the
CodePudding user response:
The building Lord, I now also encountered such a problem, consult the original poster is how to solve