* [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality?
@ 2004-06-23 5:19 Albert Huang
2004-06-23 7:31 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Albert Huang @ 2004-06-23 5:19 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
Hello,
Does anyone have a rough estimate, or even a list, of the devices that
support hci_read_rssi and hci_read_link_quality? Am I correct in
assuming that some devices supoprt it and some don't? For example, a
program that reads rssi and link quality that works beautifully on an
x86 with a d-link usb bluetooth dongle doesn't seem to work at all on
an HP ipaq h5550. On the ipaq, the link quality is always 0 and rssi
is always 255.
The attached patch changes cmd_lq in hcitool.c to print out an
unsigned integer instead of a signed integer.
thanks.
-albert
[-- Attachment #2: cmd_lq.diff --]
[-- Type: text/plain, Size: 483 bytes --]
Index: tools/hcitool.c
===================================================================
RCS file: /cvsroot/bluez/utils/tools/hcitool.c,v
retrieving revision 1.44
diff -u -r1.44 hcitool.c
--- tools/hcitool.c 12 Jun 2004 09:41:17 -0000 1.44
+++ tools/hcitool.c 23 Jun 2004 05:17:27 -0000
@@ -982,7 +982,7 @@
rp.status);
exit(1);
}
- printf("Link quality: %d\n", rp.link_quality);
+ printf("Link quality: %u\n", rp.link_quality);
close(dd);
free(cr);
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality?
2004-06-23 5:19 [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality? Albert Huang
@ 2004-06-23 7:31 ` Marcel Holtmann
2004-06-23 15:12 ` Albert Huang
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-06-23 7:31 UTC (permalink / raw)
To: Albert Huang; +Cc: BlueZ Mailing List
Hi Albert,
> Does anyone have a rough estimate, or even a list, of the devices that
> support hci_read_rssi and hci_read_link_quality? Am I correct in
> assuming that some devices supoprt it and some don't? For example, a
> program that reads rssi and link quality that works beautifully on an
> x86 with a d-link usb bluetooth dongle doesn't seem to work at all on
> an HP ipaq h5550. On the ipaq, the link quality is always 0 and rssi
> is always 255.
the link quality command is vendor specific, so you can't rely on it. We
only know how CSR uses it. The RSSI must be announced in the features
bits.
> The attached patch changes cmd_lq in hcitool.c to print out an
> unsigned integer instead of a signed integer.
Does this make any difference? The link quality is only uint8.
Regards
Marcel
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality?
2004-06-23 7:31 ` Marcel Holtmann
@ 2004-06-23 15:12 ` Albert Huang
0 siblings, 0 replies; 3+ messages in thread
From: Albert Huang @ 2004-06-23 15:12 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
> Does this make any difference? The link quality is only uint8.
hmm... yes, I don't know what got into me that late in the night. I
guess I was seeing negative numbers for rssi and thought gee, link
quality shouldn't be negative. A useless, but harmless patch.
-albert
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-23 15:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 5:19 [Bluez-devel] how well supported is hci_read_rssi and hci_read_link_quality? Albert Huang
2004-06-23 7:31 ` Marcel Holtmann
2004-06-23 15:12 ` Albert Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox