Connection Up callback timing and Connection establishment failure

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

According to Bluetooth LE spec,

----------- Excerpt from the spec begins -----------

The Link Layer enters the Connection State when an initiator sends a CONNECT_REQ to an advertiser.

After entering the Connection State, the connection is considered to be created.

The connection is not considered to be established at this point.

The connection is only considered to be established once a data channel packet has been received from the peer device.

If the Link Layer connection supervision timer reaches 6 * connInterval before

the connection is established, the connection shall be considered lost.

This enables fast termination of connections that fail to establish.

------------ Excerpt from the spec ends -------------

Question 1) When is the connection up callback invoked in Initiator side?

                    Is it just after sending out CONNECT_REQ?

                    Or, after confirming the connection establishment?

Question 2) How the application gets notified of the connection establishment failure?

                    (i.e., in case it reaches 6 * connInterval without receiving any data from the Advertiser.)

Thanks

0 Likes
1 Solution
2 Replies
Anonymous
Not applicable

Got answers from the following previous post.

Re: unexpected "bleprofile_connDown stop Idle Timer"

Anonymous
Not applicable

By the way, if the connection up callback is invoked after the connection establishment

rather than just connection creation, it would be much better in terms of application development.

Better yet, providing 'connection status callback' mechanism, and indicate the connection creation,

connection establishment, the connection failure, and connection down etc... would be good.

0 Likes