* Read clock not implemented in management
@ 2011-06-08 12:46 Claudio Takahasi
2011-06-08 12:53 ` Santiago Carot
0 siblings, 1 reply; 8+ messages in thread
From: Claudio Takahasi @ 2011-06-08 12:46 UTC (permalink / raw)
To: sancane, Elvis Pfützenreuter, BlueZ development
Hi Santiago and Elvis,
Read clock is not implemented in the management interface. Does it
break something important in the health plug-in?
I am not aware when hciops will be dropped, but the fact is: if the
system uses mgmtops instead of hciops health will not work properly.
BR,
Claudio.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
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
0 siblings, 1 reply; 8+ messages in thread
From: Santiago Carot @ 2011-06-08 12:53 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: Elvis Pfützenreuter, BlueZ development
Hello Claudio.
2011/6/8 Claudio Takahasi <claudio.takahasi@openbossa.org>:
> Hi Santiago and Elvis,
>
> Read clock is not implemented in the management interface. Does it
> break something important in the health plug-in?
>
Read clock is only required for Clock Shynchronization Protocol (CSP)
in MCAP, but CSP is not mandatory for HDP and although this feature
was implemented in MCAP is not used in the Health Plugin so it won't
break the API.
> I am not aware when hciops will be dropped, but the fact is: if the
> system uses mgmtops instead of hciops health will not work properly.
>
Well, as far as I know, only MCAP uses it for CSP and it's an optional
part in the specification so it won't a severe problem for health
applications.
> BR,
> Claudio.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-08 12:53 ` Santiago Carot
@ 2011-06-09 9:48 ` Santiago Carot
2011-06-09 12:23 ` Elvis Pfutzenreuter
0 siblings, 1 reply; 8+ messages in thread
From: Santiago Carot @ 2011-06-09 9:48 UTC (permalink / raw)
To: Claudio Takahasi; +Cc: Elvis Pfützenreuter, BlueZ development
Hi.
2011/6/8 Santiago Carot <sancane@gmail.com>:
> Hello Claudio.
>
> 2011/6/8 Claudio Takahasi <claudio.takahasi@openbossa.org>:
>> Hi Santiago and Elvis,
>>
>> Read clock is not implemented in the management interface. Does it
>> break something important in the health plug-in?
>>
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.
Regards.
>
> Read clock is only required for Clock Shynchronization Protocol (CSP)
> in MCAP, but CSP is not mandatory for HDP and although this feature
> was implemented in MCAP is not used in the Health Plugin so it won't
> break the API.
>
>> I am not aware when hciops will be dropped, but the fact is: if the
>> system uses mgmtops instead of hciops health will not work properly.
>>
>
> Well, as far as I know, only MCAP uses it for CSP and it's an optional
> part in the specification so it won't a severe problem for health
> applications.
>
>> BR,
>> Claudio.
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-09 9:48 ` Santiago Carot
@ 2011-06-09 12:23 ` Elvis Pfutzenreuter
2011-06-09 12:28 ` Johan Hedberg
0 siblings, 1 reply; 8+ messages in thread
From: Elvis Pfutzenreuter @ 2011-06-09 12:23 UTC (permalink / raw)
To: Santiago Carot; +Cc: Claudio Takahasi, BlueZ development
On Jun 9, 2011, at 6:48 AM, Santiago Carot wrote:
> Hi.
>
> 2011/6/8 Santiago Carot <sancane@gmail.com>:
>> Hello Claudio.
>>
>> 2011/6/8 Claudio Takahasi <claudio.takahasi@openbossa.org>:
>>> Hi Santiago and Elvis,
>>>
>>> Read clock is not implemented in the management interface. Does it
>>> break something important in the health plug-in?
>>>
>
> 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?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-09 12:23 ` Elvis Pfutzenreuter
@ 2011-06-09 12:28 ` Johan Hedberg
2011-06-09 12:42 ` Elvis Pfutzenreuter
0 siblings, 1 reply; 8+ messages in thread
From: Johan Hedberg @ 2011-06-09 12:28 UTC (permalink / raw)
To: Elvis Pfutzenreuter; +Cc: Santiago Carot, Claudio Takahasi, BlueZ development
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?
Johan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-09 12:28 ` Johan Hedberg
@ 2011-06-09 12:42 ` Elvis Pfutzenreuter
2011-06-09 19:09 ` Gustavo F. Padovan
0 siblings, 1 reply; 8+ messages in thread
From: Elvis Pfutzenreuter @ 2011-06-09 12:42 UTC (permalink / raw)
To: Johan Hedberg; +Cc: Santiago Carot, Claudio Takahasi, BlueZ development
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).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-09 12:42 ` Elvis Pfutzenreuter
@ 2011-06-09 19:09 ` Gustavo F. Padovan
2011-06-10 14:12 ` Claudio Takahasi
0 siblings, 1 reply; 8+ messages in thread
From: Gustavo F. Padovan @ 2011-06-09 19:09 UTC (permalink / raw)
To: Elvis Pfutzenreuter
Cc: Johan Hedberg, Santiago Carot, Claudio Takahasi,
BlueZ development
* 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Read clock not implemented in management
2011-06-09 19:09 ` Gustavo F. Padovan
@ 2011-06-10 14:12 ` Claudio Takahasi
0 siblings, 0 replies; 8+ messages in thread
From: Claudio Takahasi @ 2011-06-10 14:12 UTC (permalink / raw)
To: Gustavo F. Padovan
Cc: Elvis Pfutzenreuter, Johan Hedberg, Santiago Carot,
Claudio Takahasi, BlueZ development
Hi Gustavo,
On Thu, Jun 9, 2011 at 4:09 PM, Gustavo F. Padovan
<padovan@profusion.mobi> wrote:
> * 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
>
We gonna need a similar approach to read the Tx Power and RSSI of an active
connection to implement the Proximity Profile(Path Loss Service). It'd
be good to
keep consistency, using the same approach if possible.
What are your arguments against L2CAP socket options? Blocking: wait
for response
of the HCI commands. Something else?
If we agree to use management interface I think we need to add another
channel, use
HCI_CHANNEL_CONTROL doesn't look correct to me.
BR,
Claudio.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-06-10 14:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-06-10 14:12 ` Claudio Takahasi
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).