All of lore.kernel.org
 help / color / mirror / Atom feed
* Enhancements to allow l2cap channel to use either AMP or BR/EDR
@ 2010-07-30 18:30 Inga Stotland
  2010-07-30 18:30 ` [PATCH 1/4] Constants for L2CAP and AMP extensions Inga Stotland
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Inga Stotland @ 2010-07-30 18:30 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: rshaffer, johan.hedberg, marcel

AMP vs BR/EDR preference for L2CAP channel can be configured as 
command line argument using new option "-J". Possible values: 
                 "require_br_edr", 
                 "prefer_amp", 
                 "prefer_br_edr"
If no preference indicated, the default is set to require BR/EDR. 

Additionally, this option can be changed during  runtime when L2CAP 
connection is up by entering the following keys from standard input:   
         "a", "A" - prefer AMP;
         "b", "B" - prefer BR/EDR;
         "r", "R" - require BR/EDR
This allows dynamic L2CAP channel move between BR/EDR and AMP.


--
Inga Stotland
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Enhancements to allow l2cap channel to use either AMP or BR/EDR
@ 2010-08-02 16:55 tmonahan
  2010-08-02 18:53 ` Marcel Holtmann
  0 siblings, 1 reply; 21+ messages in thread
From: tmonahan @ 2010-08-02 16:55 UTC (permalink / raw)
  To: David Vrabel
  Cc: Inga Stotland, linux-bluetooth, rshaffer, johan.hedberg, marcel

Hi, David,

>> AMP vs BR/EDR preference for L2CAP channel can be configured as command
line argument using new option "-J". Possible values:
>>                  "require_br_edr",
>>                  "prefer_amp",
>>                  "prefer_br_edr"
>> If no preference indicated, the default is set to require BR/EDR.
>
> I think an explicit channel move command and a channel move complete
event are what many applications/profiles will need to be able to use an
AMP effectively.

A future AMP policy setting of "manual" could certainly give each
application the freedom to move an l2cap channel at will, after applying
its own decision making process. However, with that freedom comes the
responsibility of processing the AMP related events and initiating the AMP
commands to make the decision. For example, the application needs to know
if AMP controllers are available both locally and remotely, which in turn
requires initiating the AMP discovery process and looking over the
available local HCI devices; a loss of the physical link event means the
application must move the link back to BR/EDR, etc. All of the additional
machinery to accomplish that could indeed be exposed for use by
applications. I think such an approach, if really needed, would not
conflict with these proposed policies that hide all of that within the
kernel.

To illustrate how these policies simplify applications, consider OBEX. An
OBEX server application would choose "prefer_br_edr", thus leaving the
remote OBEX client to decide and initiate the channel move to an AMP, and
thus granting advance permission to the kernel for the move to take place.
The OBEX client could examine the size of an upcoming transfer and choose
"prefer_amp", thereby instructing the kernel to initiate the move to an
AMP if all local and remote conditions allow it. Thus, the OBEX client and
server applications make simplistic decisions to set up AMP, and can focus
on moving data over the l2cap channel, leaving the management of what
medium the data flows over up to the kernel, who keeps it transparent. In
this way, work to make an existing profile "AMP aware" is also minimal.

In the discussion with Marcel regarding our AMP proposal in March ("RFC:
QuIC's AMP + eL2CAP Technical Plans"), where we had listed these AMP
control policies, he seemed to indicate that these policies would
automatically trigger AMP discovery within the kernel, which it will. As
he said, "Less options are less confusing for users" (apologies in advance
if I misinterpreted his answer).

Best regards,
Tim Monahan-Mitchell

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.





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

end of thread, other threads:[~2010-08-03 16:14 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 18:30 Enhancements to allow l2cap channel to use either AMP or BR/EDR Inga Stotland
2010-07-30 18:30 ` [PATCH 1/4] Constants for L2CAP and AMP extensions Inga Stotland
2010-07-30 18:30 ` [PATCH 2/4] Use defines for the default values of txwin_size and max_transmit Inga Stotland
2010-07-30 18:30 ` [PATCH 3/4] Added command argument "-J" to indicate preference of using AMP vs BR/EDR Inga Stotland
2010-07-31 23:14   ` Gustavo F. Padovan
2010-08-02  6:18     ` ingas
2010-07-30 18:30 ` [PATCH 4/4] Allow changing AMP vs BR/EDR preference from stdin when connection is up Inga Stotland
2010-08-02 12:04 ` Enhancements to allow l2cap channel to use either AMP or BR/EDR David Vrabel
  -- strict thread matches above, loose matches on Subject: below --
2010-08-02 16:55 tmonahan
2010-08-02 18:53 ` Marcel Holtmann
2010-08-02 22:41   ` Kevin Hayes
2010-08-02 22:58     ` Marcel Holtmann
2010-08-03  0:51       ` Kevin Hayes
     [not found]         ` <B7132A25476D334D9130FE7532F2A56310A0B08A61@SC1EXMB-MBCL.global.athero s.com>
2010-08-03  1:30           ` Peter Krystad
2010-08-03  1:59             ` Marcel Holtmann
2010-08-03  8:07             ` Gustavo F. Padovan
2010-08-03 13:40               ` Tim Monahan-Mitchell
2010-08-03  1:59         ` Marcel Holtmann
2010-08-03  4:47           ` Kevin Hayes
2010-08-03 12:59   ` David Vrabel
2010-08-03 16:14     ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.