Linux bluetooth development
 help / color / mirror / Atom feed
From: "Gustavo F. Padovan" <padovan@profusion.mobi>
To: Elvis Pfutzenreuter <epx@signove.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>,
	Santiago Carot <sancane@gmail.com>,
	Claudio Takahasi <claudio.takahasi@openbossa.org>,
	BlueZ development <linux-bluetooth@vger.kernel.org>
Subject: Re: Read clock not implemented in management
Date: Thu, 9 Jun 2011 16:09:43 -0300	[thread overview]
Message-ID: <20110609190943.GC2533@joana> (raw)
In-Reply-To: <82461851-7132-415D-A9D1-AE5C1B64440E@signove.com>

* Elvis Pfutzenreuter <epx@signove.com> [2011-06-09 09:42:42 -0300]:

> On Jun 9, 2011, at 9:28 AM, Johan Hedberg wrote:
> 
> > Hi,
> > 
> > On Thu, Jun 09, 2011, Elvis Pfutzenreuter wrote:
> >>> Coming back to this issue. I'm not caught up with this stuff and I
> >>> dont know if there are any special reason to not provide a read clock
> >>> functionality in the bluetooth API. although I think it's a pity  to
> >>> restrict MCAP features after the good work Elvis did in CSP.
> >> 
> >> More to the point, could we implement HCI read clock for mgmt interface? Or
> >> it simply won't have read clock by design?
> > 
> > There's no obvious reason why it couldn't have it. However other means
> > should be considered too, e.g. would it be cleaner to get the info
> > directly through the socket (using a socket option or something
> > similar)? Or was this already considered when the HCI socket solution
> > was implemented?
> 
> Not exactly, I just made use of hci_read_clock() that already existed in BlueZ
> API, and copied the code into hciops.
> 
> Getting clock via a socket option sounds better to me since a) we need
> connection ACL to read it, getting it through a L2CAP socket would imply the
> ACL; b) it would allow other apps to use the feature (e.g. PyBluez that
> currently reads clock using an HCI socket).

Getting it from a L2CAP socket does not seems right. If you want to read a
clock value, probably the ACL link is already there. Implement this on
the management interface is the best option.

	Gustavo

  reply	other threads:[~2011-06-09 19:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 12:46 Read clock not implemented in management Claudio Takahasi
2011-06-08 12:53 ` Santiago Carot
2011-06-09  9:48   ` Santiago Carot
2011-06-09 12:23     ` Elvis Pfutzenreuter
2011-06-09 12:28       ` Johan Hedberg
2011-06-09 12:42         ` Elvis Pfutzenreuter
2011-06-09 19:09           ` Gustavo F. Padovan [this message]
2011-06-10 14:12             ` Claudio Takahasi

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=20110609190943.GC2533@joana \
    --to=padovan@profusion.mobi \
    --cc=claudio.takahasi@openbossa.org \
    --cc=epx@signove.com \
    --cc=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=sancane@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox