Return-Path: Date: Thu, 21 Dec 2006 12:15:07 -0200 From: Cris To: bluez-devel@lists.sourceforge.net Message-Id: <20061221121507.4297aca7.ml133@netpole.com.br> In-Reply-To: <1166705598.9307.7.camel@violet> References: <45896C24.2070106@pracucci.com> <1166631806.17802.10.camel@violet> <458A2914.1060800@idlum.be> <1166705598.9307.7.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Inquiry cache management (clock offset) Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net On Thu, 21 Dec 2006 13:53:18 +0100 Marcel Holtmann wrote: > Hi Pierre-Yves, > > > > the main disadvantage is that it gives you nothing. You can't move the > > > clock offset around from adapter A to adapter B. As the word says, it is > > > a clock _offset_ and this means it depends on the local clock on the > > > chip. So a received clock offset on adapter A is invalid on adapter B > > > and it might happen that the connection establishment takes longer than > > > if you would have used no clock offset at all. > > > > And what about computing the clock offset between local adapters, and > > then based on this information compute the proper clock offset with the > > remote device for the adapter actually used to connect it? > > with Bluetooth 1.2 you can even read the local clock and do your > computation from there. However I doubt that this will give any real > improvement. Feel free to prove me otherwise, but please make sure that > your testing is done with real life scenarios. Meaning moving targets. Sorry to kick in like that, but moving targets don't matter here: One device will get the offset from peer. The other device, which is on the same host, and which want's to use the inquiry's result, won't move in relation to the first. There is a drift between the two local devices, such that some correction may be necessary from time to time, but if you know the offset between the two local devices, it should be possible to compute the offset from peer to the second device. Once the connection is established, it's the link manager (hardware) who takes care of the adjustments. OTOH, the paging process is really only a few time slots and it is doubtful that a human being is able to feel the difference. As such, it shouldn't be difficult to compute the correctly derived offset, but it's probably not worth even that. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel