linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Interface to set LE connection parameters
@ 2010-11-15 12:06 Ville Tervo
  2010-11-15 14:24 ` tim.howes
  2010-11-15 18:15 ` Mike Tsai
  0 siblings, 2 replies; 8+ messages in thread
From: Ville Tervo @ 2010-11-15 12:06 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

LE profiles have different requirements for connection parameters. Mainly
trying to balance between power consumption and latencies. Probably more will
factors will be in future.

Currently I have plan to introduce new l2cap socket option which can be used
before connection creation to set inital settings and also change settings
while having a connection.

Since there is no equivalents in EDR/BR connection I'm planning to make then
apply only LE connection.


Other question which parameters should be exposed to user space? Connection
creation and connection update have these common parameters. Connection
creation has in addition some other parameters also but they should be handled
in some other way.

	__le16   conn_interval_min;
	__le16   conn_interval_max;
	__le16   conn_latency;
	__le16   supervision_timeout;
	__le16   min_ce_len;
	__le16   max_ce_len;

So far I have had two ideas. The first is to simply expose all these fields
with sock_opt. In that way profiles would be able to define their requirements
also in future without any sock opt changes.

Second is to define BT_LE_LOW_LAT for low latency connection requirements and
BT_LE_LOW_POWER connection where the latency is not an issue. It would make
usage of this sock opt interface simplier. OTOH the only user should be
bluetoothd so it doesn't need to be as simple as possible.


Comments please.

-- 
Ville

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-11-30  1:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-15 12:06 [RFC] Interface to set LE connection parameters Ville Tervo
2010-11-15 14:24 ` tim.howes
2010-11-15 15:17   ` Ville Tervo
2010-11-16  9:56     ` tim.howes
2010-11-18 15:15       ` Luiz Augusto von Dentz
2010-11-30  1:37     ` Gustavo F. Padovan
2010-11-15 18:15 ` Mike Tsai
2010-11-16  8:56   ` Ville Tervo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).