- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
MasterSlave
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got answers from the following previous post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.