All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] problem decoding Link_Policy_Settings parameter
Date: Fri, 28 Jan 2005 17:36:43 +0100	[thread overview]
Message-ID: <1106930203.11596.43.camel@pegasus> (raw)
In-Reply-To: <ctbg5m$29s$1@sea.gmane.org>

Hi,

> I hope you could help me with this stoping problem:
> 
> let's say I do 'hcitool cc --role=m 00:10:60:A5:8F:8A'
> and now, the output in hcidump is the following:
> 
> < HCI Command: Create Connection (0x01|0x0005) plen 13
>    8A 8F A5 60 10 00 18 CC 02 00 00 00 00
>  > HCI Event: Command Status (0x0f) plen 4
>    00 01 05 04
>  > HCI Event: Connect Complete (0x03) plen 11
>    00 29 00 8A 8F A5 60 10 00 01 00
> < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
>    29 00 0F 00
>  > HCI Event: Command Complete (0x0e) plen 6
>    01 0D 08 00 29 00
>  > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
>    8A 8F A5 60 10 00 01
>  > HCI Event: Max Slots Change (0x1b) plen 3
>    29 00 05
> 
> 
> My problem is I cannot render an interpretation of the Write Link Policy 
> Settings Command, because I read 0x000F as the Link_Policy_Settings 
> parameter, and by looking at the bluetooth specification this value is 
> not allowed (or at least it is not defined), so what a strange way of 
> telling the device to stay master!

the connection handle is 41 and the link policy is 15. This means that
role switch, hold mode, sniff mode and park state are enabled. The math
is quite simple:

	1 + 2 + 4 + 8 = 15

The link policy is a bit oriented value.

> thanks all (especially Marcel cause none post of mine has miss one of 
> his answers)

You are welcome.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-01-28 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-27 19:41 [Bluez-users] problem decoding Link_Policy_Settings parameter soraberri
2005-01-28 16:36 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1106930203.11596.43.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.