All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] HCI_switch_role
@ 2004-03-04  2:59 Thor Egil Skaug
  2004-03-04 10:49 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Thor Egil Skaug @ 2004-03-04  2:59 UTC (permalink / raw)
  To: bluez-users

Does anyone know why the HCI_switch_role command takes a BDADDR argument
instead of
a connectionhandle?

The role_change event should be sent from both devices to their
respective sw stacks after this.

I don't understand the following from the BT specification:

1. Is the BDADDR the address of the remote device, or the local device
(to the caller)?

2. In the returned event, what bdaddr is returned to the
(HCI_switch_role) calling stack, and what bdaddr
   is returned to the stack on the remote device?
3. What if there is more than one connection between two devices?

Thor


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] HCI_switch_role
  2004-03-04  2:59 [Bluez-users] HCI_switch_role Thor Egil Skaug
@ 2004-03-04 10:49 ` Peter Stephenson
  2004-03-04 23:01   ` Thor Egil Skaug
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Stephenson @ 2004-03-04 10:49 UTC (permalink / raw)
  To: bluez-users

"Thor Egil Skaug" wrote:
> Does anyone know why the HCI_switch_role command takes a BDADDR argument
> instead of
> a connectionhandle?

It's not clear to me, either, but it may be for compatibility with the
role-change event when generated during connection creation: in that
case, the connection_complete event hasn't come up yet, so there's no
valid ACL handle.  Hence it has to report the BD ADDR (as with
the connection_request event).

> The role_change event should be sent from both devices to their
> respective sw stacks after this.
> 
> I don't understand the following from the BT specification:
> 
> 1. Is the BDADDR the address of the remote device, or the local device
> (to the caller)?

The remote device.

> 2. In the returned event, what bdaddr is returned to the
> (HCI_switch_role) calling stack, and what bdaddr
>    is returned to the stack on the remote device?

Each side reports the remote address (where it reports anything).

> 3. What if there is more than one connection between two devices?

There can't be, you can only have one ACL between any two devices.
This a specific error code acl_connection_already_exists or something
similar if you try and add another one.

pws


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* RE: [Bluez-users] HCI_switch_role
  2004-03-04 10:49 ` Peter Stephenson
@ 2004-03-04 23:01   ` Thor Egil Skaug
  2004-03-05  0:49     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Thor Egil Skaug @ 2004-03-04 23:01 UTC (permalink / raw)
  To: 'Peter Stephenson', bluez-users

Is a slave allowed to switch role to master?

Thor


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* RE: [Bluez-users] HCI_switch_role
  2004-03-04 23:01   ` Thor Egil Skaug
@ 2004-03-05  0:49     ` Marcel Holtmann
  2004-03-05 12:01       ` Steven Singer
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2004-03-05  0:49 UTC (permalink / raw)
  To: Thor Egil Skaug; +Cc: 'Peter Stephenson', BlueZ Mailing List

Hi Thor,

> Is a slave allowed to switch role to master?

every side can switch the role.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] HCI_switch_role
  2004-03-05  0:49     ` Marcel Holtmann
@ 2004-03-05 12:01       ` Steven Singer
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Singer @ 2004-03-05 12:01 UTC (permalink / raw)
  To: Thor Egil Skaug; +Cc: Marcel Holtmann, BlueZ Mailing List

Marcel Holtmann wrote:
> Thor Egil Skaug wrote:
>> Is a slave allowed to switch role to master?
> 
> every side can switch the role.

Strictly, both sides can attempt to initiate a switch. Both sides are
also allowed to refuse.

Provided the baseband supports it (check the features) and the link
manager has been told to allow it (check the link policy) then it
should be OK (barring a burst of radio noise that knocks out critical
radio packets - in which case, just try again).

Note that although you can read the features for both sides, you can
check only the local link policy. However, instead of all that, you may
as well just go ahead and try to switch.

	- Steven
-- 



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

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

end of thread, other threads:[~2004-03-05 12:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-04  2:59 [Bluez-users] HCI_switch_role Thor Egil Skaug
2004-03-04 10:49 ` Peter Stephenson
2004-03-04 23:01   ` Thor Egil Skaug
2004-03-05  0:49     ` Marcel Holtmann
2004-03-05 12:01       ` Steven Singer

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.