From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jul 23 15:02:39 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40056106568C for ; Wed, 23 Jul 2008 15:02:39 +0000 (UTC) (envelope-from awnishupadhyay@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 0394E8FC20 for ; Wed, 23 Jul 2008 15:02:38 +0000 (UTC) (envelope-from awnishupadhyay@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so390310yxb.13 for ; Wed, 23 Jul 2008 08:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=flTPupGVjjA6KNBKzhbhRhhrmVxDaH1cPHeEDIfNpa8=; b=RajGtm1t1rI2cBQu+t8VVaytxTIMf6RCgKtkSVgt6nTzUbyT6OIDHQi8QBEPPaABk+ BwQ/om+YChFUPSZ5KLplFdpCtaxnmLsgi+AQ373Q0tpBV7edVcxhvu82rfE5NfwmfbNv u3o1/0RAQXm8mhT/7wjFNmH+l+Rf/TX1yrdCs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=wHedhncfgUf7t8ronxlnaaVAOkSSNXGvXzPJ08F8S1B/7KHmClTE7wU3qZDayqlLky lXJPmN7RkoLovh6Gk4SZAwPrPAymbPREb2w0Rn3hynrlDGrpYWHDgaieefwQXq90OaPK Hq6FFu1tIYHX9QmcwpKsAX8UEuYpJd7OD/RIo= Received: by 10.151.114.9 with SMTP id r9mr203345ybm.178.1216823815730; Wed, 23 Jul 2008 07:36:55 -0700 (PDT) Received: by 10.150.51.12 with HTTP; Wed, 23 Jul 2008 07:36:55 -0700 (PDT) Message-ID: Date: Wed, 23 Jul 2008 15:36:55 +0100 From: "awnish upadhyay" To: freebsd-bluetooth@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: bluetooth link quality and rssi ? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2008 15:02:39 -0000 Hi , In BlueZ, what does 'hcitool rssi
' return? does it return the actual RSSI value or is the output similar to the result of the HCI_Read_RSSI command as mentioned in the BT spec? The BT spec says that HCI_Read_RSSI will read the value for the difference between the measured Received Signal Strength Indication (RSSI) and the limits of the Golden Receive Power Range for a connection handle to another Bluetooth device. Put in other words, will 'hcitool rssi
' return this difference or does it give the exact RSSI value which is compared with the GRPR? I ran some test between an Nokia, Windows MObile and a Belkin BT USB device. I was measuring the RSSI value as seen by the belkin BT device (connected to a PC) while the mobiles weres moved to different locations (I was not doing any data transfer.. but I had the two devices connected and collected the data in a file). I noticed that the RSSI values were highly variable. Even two sets of observations with identical conditions were giving very different values for RSSI. So, my next question is how accurate is the RSSI value? I know the BT spec says that there can be a 6dB +/- variation. Is the result value in dB? Can I use RSSI to quantify the distance between two BT devices? Meaning lower values of RSSI -> higher distance? I was looking at other parameters (link quality, transmit power) and found that the link quality seemed to be a better indicator of the distance.. with increasing separation between the devices, the command 'hcitool lq
' was giving lower values.. meaning there was a degradation in the link quality. Any comments on this? i wanted to know the unit of link quality.and what is the relation between rssi and link quality ? also can we predict the distance depending upon the link quality and rssi.. In Bluetooth, the transmitted power for a link is adjustable and the LM can change the power of a link depending on the conditions. So again, can the transmit power level (hcitool tpl
) be used as an indicator of the distance? In my tests, I did see a variation in the tpl value for different positions. And one last question.. do any of these values depend on the manufacturer - i.e. for the same distance and identical environmental conditions.. will a 3COM device, Belkin device and say a cisco device give different values? -- Awnish Upadhyay Msc. Mobile and Radio Communication, 07809682838.