public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Simon Hay <sjeh3@cam.ac.uk>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Connection time behaviour question
Date: Fri, 19 Dec 2008 20:06:12 +0100	[thread overview]
Message-ID: <1229713572.879.15.camel@californication> (raw)
In-Reply-To: <E13683A3-C5FF-4F4E-AD0F-F639F8369ECD@cam.ac.uk>

Hi Simon,

> > I don't see any issue here, but the whole concept of connecting to a
> > remote device to read its RSSI is broken by design. The RSSI value  
> > of an
> > already connection is basically useless. What you want is the link
> > quality, but even that doesn't really help you since it is vendor
> > specific and every company defines it differently.
> 
> 
> Thanks for the reply.  I appreciate your point about RSSI vs link  
> quality, and understand the issue there, but actually that's  
> incidental to the point I'm really trying to understand - reading the  
> RSSI is just something to do with the connection before I throw it  
> away again.  I'm trying to get to the bottom of what's changed to  
> cause the different behaviour in the connection times - why passing in  
> a clock offset doesn't seem to make a difference any more, and why we  
> see this regular pattern of times going up and up then jumping back  
> down again.  Is there anything that was deliberately changed in this  
> regard, or is it a side effect of something else?

you can't pass in the clock offset except you use the low-level HCI
Create Connection command. And that is not guaranteed to work as
expected at all. The kernel has full control over these information and
you should not mess with it. However when reading the clock offset of a
remote connection the kernel will store that clock offset and reuse
during the next connection attempt. You have to create proper L2CAP
connections and not just fake them via HCI Create Connection.

Regards

Marcel



      reply	other threads:[~2008-12-19 19:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-19 13:33 Connection time behaviour question Simon Hay
2008-12-19 18:49 ` Marcel Holtmann
2008-12-19 17:58   ` Simon Hay
2008-12-19 19:06     ` 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=1229713572.879.15.camel@californication \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=sjeh3@cam.ac.uk \
    /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