linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] RE: RE: RE: FWD: Re: Re:Request with RSSI
       [not found] <1150787688.18381.0.camel@localhost>
@ 2006-06-21  5:02 ` Mingfan lu
  2006-06-21  7:10   ` [Bluez-devel] " Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Mingfan lu @ 2006-06-21  5:02 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 4481 bytes --]

Marcel,
   I want to get RSSI value when inquiring, and my dongole support the feature:
  mylinux:/home/lucharse# hciconfig hci0 features
hci0:   Type: USB
        BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
        Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
                <3-slot packets> <5-slot packets> <encryption> <slot offset>
                <timing accuracy> <role switch> <sniff mode> <RSSI>
                <channel quality> <SCO link> <HV2 packets> <HV3 packets>
                <u-law log> <A-law log> <CVSD> <power control>
                <transparent SCO> <broadcast encrypt> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <inquiry with RSSI>
                <AFH cap. slave> <AFH cap. master> <AFH class. master>
   
  I set the inquiry mode to 1 which is inquiry with RSSI:
   
  mylinux:/home/lucharse# hciconfig hci0 inqmode 1
mylinux:/home/lucharse# hciconfig hci0 inqmode
hci0:   Type: USB
        BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
        Inquiry mode: Inquiry with RSSI
  
But when I use the sample code from from Scott W Gifford(http://sourceforge.net/mailarchive/message.php?msg_id=10195457) which is claimed to inquiry with RSSI, the output shows that the inquiry result without RSSI value. and the hcidump(-X -V) show the event type is EVT_INQUIRY_RESULT.
   
  mylinux:/home/lucharse/testcase# ./a.out
activate_rssi: err=0
begin_inquiry: starting
Polling...
Got event!  Type is 2
inquiry_result: num 1
 00:0F:B3:9B:04:D3:    ?
Polling...
Got event!  Type is 2
inquiry_result: num 1
 00:14:A4:D7:52:48:    ?
Polling...
Got event!  Type is 2
inquiry_result: num 1
 00:14:A4:D7:52:91:    ?
Polling...
Got event!  Type is 2
inquiry_result: num 1
 00:20:E0:7A:F4:E6:    ?
Polling...
Polling...
Program finished.
cancel_inquiry: err=0

  while using hcidump -X -V:
   
  mylinux:/home/lucharse/# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.31
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1
    mode 1
> HCI Event: Command Complete (0x0e) plen 4
    Write Inquiry Mode (0x03|0x0045) ncmd 1
    status 0x00
< HCI Command: Inquiry (0x01|0x0001) plen 5
    lap 0x9e8b33 len 48 num 0
> HCI Event: Command Status (0x0f) plen 4
    Inquiry (0x01|0x0001) status 0x00 ncmd 1
> HCI Event: Inquiry Result (0x02) plen 16
    bdaddr 00:0F:B3:9B:04:D3 mode 1 clkoffset 0x10e4 class 0x020104
> HCI Event: Inquiry Result (0x02) plen 16
    bdaddr 00:14:A4:D7:52:48 mode 1 clkoffset 0x7c5a class 0x72010c
> HCI Event: Inquiry Result (0x02) plen 16
    bdaddr 00:14:A4:D7:52:91 mode 1 clkoffset 0x4c9b class 0x72010c
> HCI Event: Inquiry Result (0x02) plen 16
    bdaddr 00:20:E0:7A:F4:E6 mode 1 clkoffset 0x6ec5 class 0x00010c
< HCI Command: Inquiry Cancel (0x01|0x0002) plen 0
> HCI Event: Command Complete (0x0e) plen 4
    Inquiry Cancel (0x01|0x0002) ncmd 1
    status 0x00

  in your last mail, you ask me to to use hcidump(-X -V), but I can't see the RSSI value. 
   
  The sample code I used uses the HCI raw socket, and I review the DBus API(bluez-utils-3.1), I don't know which API can give me the RSSI wheng inquirying.
   
  How do you think about it?
   
  Hi,

>   I have the same problem, I have called "hciconfig hci0 inqmode 1"
> first to switch the feature, but I still have the the problem I only
> can get the inquiry result  without RSSI value.
> I am sure that my dongle supports the feature. 

if you run "hcidump -X -V" and then start an inquiry you should see the
new inquiry result with RSSI event. However the inquiry() API call of
the Bluetooth library can't handle the RSSI value. Even if the kernel
sees it. There is no way to get it back to the application. So you
either gonna use the HCI raw socket or the new BlueZ D-Bus API to
actually get the RSSI value.

Regards

Marcel

   
  

Marcel Holtmann <marcel@holtmann.org> 写道:
  Hi,

> In fact, the code I used to inquiry with rssi from Scott W Gifford
> (http://sourceforge.net/mailarchive/message.php?msg_id=10195457) uses
> the raw socket, but I can only get EVT_INQUIRY_RESULT event type. So,
> raw socket can't give me the rssi value. How do you think about it?

please summarize your problem and repost to the BlueZ developer mailing
list address. You used the wrong address and I didn't see it last time.

Regards

Marcel





With respects,
        Mingfan.Lu 

 		
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件! 

[-- Attachment #1.2: Type: text/html, Size: 6961 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  5:02 ` [Bluez-devel] RE: RE: RE: FWD: Re: Re:Request with RSSI Mingfan lu
@ 2006-06-21  7:10   ` Marcel Holtmann
  2006-06-21  8:09     ` 回复: " Mingfan lu
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-21  7:10 UTC (permalink / raw)
  To: BlueZ development

Hi,

>  I want to get RSSI value when inquiring, and my dongole support the
> feature:
> mylinux:/home/lucharse# hciconfig hci0 features
> hci0:   Type: USB
>         BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
>         Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
>                 <3-slot packets> <5-slot packets> <encryption> <slot
> offset>
>                 <timing accuracy> <role switch> <sniff mode> <RSSI>
>                 <channel quality> <SCO link> <HV2 packets> <HV3
> packets>
>                 <u-law log> <A-law log> <CVSD> <power control>
>                 <transparent SCO> <broadcast encrypt> <enhanced iscan>
>                 <interlaced iscan> <interlaced pscan> <inquiry with
> RSSI>
>                 <AFH cap. slave> <AFH cap. master> <AFH class. master>
>  
> I set the inquiry mode to 1 which is inquiry with RSSI:
>  
> mylinux:/home/lucharse# hciconfig hci0 inqmode 1
> mylinux:/home/lucharse# hciconfig hci0 inqmode
> hci0:   Type: USB
>         BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
>         Inquiry mode: Inquiry with RSSI
> 
> But when I use the sample code from from Scott W
> Gifford(http://sourceforge.net/mailarchive/message.php?msg_id=10195457) which is claimed to inquiry with RSSI, the output shows that the inquiry result without RSSI value. and the hcidump(-X -V) show the event type is EVT_INQUIRY_RESULT.
>  
> mylinux:/home/lucharse/testcase# ./a.out
> activate_rssi: err=0
> begin_inquiry: starting
> Polling...
> Got event!  Type is 2
> inquiry_result: num 1
>  00:0F:B3:9B:04:D3:    ?
> Polling...
> Got event!  Type is 2
> inquiry_result: num 1
>  00:14:A4:D7:52:48:    ?
> Polling...
> Got event!  Type is 2
> inquiry_result: num 1
>  00:14:A4:D7:52:91:    ?
> Polling...
> Got event!  Type is 2
> inquiry_result: num 1
>  00:20:E0:7A:F4:E6:    ?
> Polling...
> Polling...
> Program finished.
> cancel_inquiry: err=0
> 
> while using hcidump -X -V:
>  
> mylinux:/home/lucharse/# hcidump -X -V
> HCI sniffer - Bluetooth packet analyzer ver 1.31
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1
>     mode 1
> > HCI Event: Command Complete (0x0e) plen 4
>     Write Inquiry Mode (0x03|0x0045) ncmd 1
>     status 0x00
> < HCI Command: Inquiry (0x01|0x0001) plen 5
>     lap 0x9e8b33 len 48 num 0
> > HCI Event: Command Status (0x0f) plen 4
>     Inquiry (0x01|0x0001) status 0x00 ncmd 1
> > HCI Event: Inquiry Result (0x02) plen 16
>     bdaddr 00:0F:B3:9B:04:D3 mode 1 clkoffset 0x10e4 class 0x020104
> > HCI Event: Inquiry Result (0x02) plen 16
>     bdaddr 00:14:A4:D7:52:48 mode 1 clkoffset 0x7c5a class 0x72010c
> > HCI Event: Inquiry Result (0x02) plen 16
>     bdaddr 00:14:A4:D7:52:91 mode 1 clkoffset 0x4c9b class 0x72010c
> > HCI Event: Inquiry Result (0x02) plen 16
>     bdaddr 00:20:E0:7A:F4:E6 mode 1 clkoffset 0x6ec5 class 0x00010c
> < HCI Command: Inquiry Cancel (0x01|0x0002) plen 0
> > HCI Event: Command Complete (0x0e) plen 4
>     Inquiry Cancel (0x01|0x0002) ncmd 1
>     status 0x00
> 
> in your last mail, you ask me to to use hcidump(-X -V), but I can't
> see the RSSI value. 
>  
> The sample code I used uses the HCI raw socket, and I review the DBus
> API(bluez-utils-3.1), I don't know which API can give me the RSSI
> wheng inquirying.
>  
> How do you think about it?

this is strange. If "hciconfig hci0 inqmode" tells you that you use
Inquiry with RSSI then you should get the Inquiry with RSSI Results.
What hardware is this (hciconfig hci0 version).

Regards

Marcel

> 



_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* 回复: Re: [Bluez-devel] RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  7:10   ` [Bluez-devel] " Marcel Holtmann
@ 2006-06-21  8:09     ` Mingfan lu
  2006-06-21  8:21       ` [Bluez-devel] 回复: " Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Mingfan lu @ 2006-06-21  8:09 UTC (permalink / raw)
  To: marcel, BlueZ development

[-- Attachment #1: Type: text/plain, Size: 3666 bytes --]

mylinux:/home/lucharse/ContentPushing # hciconfig hci0 version
hci0:   Type: USB
        BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
        HCI Ver: 1.2 (0x2) HCI Rev: 0x1f4 LMP Ver: 1.2 (0x2) LMP Subver: 0x1f4
        Manufacturer: Integrated System Solution Corp. (57)


Marcel Holtmann <marcel@holtmann.org> 写道:  Hi,

> I want to get RSSI value when inquiring, and my dongole support the
> feature:
> mylinux:/home/lucharse# hciconfig hci0 features
> hci0: Type: USB
> BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
> Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
> <3-slot packets> <5-slot packets> > offset>
> 
> > packets>
> 

> 

> > RSSI>
> 
> 
> I set the inquiry mode to 1 which is inquiry with RSSI:
> 
> mylinux:/home/lucharse# hciconfig hci0 inqmode 1
> mylinux:/home/lucharse# hciconfig hci0 inqmode
> hci0: Type: USB
> BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
> Inquiry mode: Inquiry with RSSI
> 
> But when I use the sample code from from Scott W
> Gifford(http://sourceforge.net/mailarchive/message.php?msg_id=10195457) which is claimed to inquiry with RSSI, the output shows that the inquiry result without RSSI value. and the hcidump(-X -V) show the event type is EVT_INQUIRY_RESULT.
> 
> mylinux:/home/lucharse/testcase# ./a.out
> activate_rssi: err=0
> begin_inquiry: starting
> Polling...
> Got event! Type is 2
> inquiry_result: num 1
> 00:0F:B3:9B:04:D3: ?
> Polling...
> Got event! Type is 2
> inquiry_result: num 1
> 00:14:A4:D7:52:48: ?
> Polling...
> Got event! Type is 2
> inquiry_result: num 1
> 00:14:A4:D7:52:91: ?
> Polling...
> Got event! Type is 2
> inquiry_result: num 1
> 00:20:E0:7A:F4:E6: ?
> Polling...
> Polling...
> Program finished.
> cancel_inquiry: err=0
> 
> while using hcidump -X -V:
> 
> mylinux:/home/lucharse/# hcidump -X -V
> HCI sniffer - Bluetooth packet analyzer ver 1.31
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1
> mode 1
> > HCI Event: Command Complete (0x0e) plen 4
> Write Inquiry Mode (0x03|0x0045) ncmd 1
> status 0x00
> < HCI Command: Inquiry (0x01|0x0001) plen 5
> lap 0x9e8b33 len 48 num 0
> > HCI Event: Command Status (0x0f) plen 4
> Inquiry (0x01|0x0001) status 0x00 ncmd 1
> > HCI Event: Inquiry Result (0x02) plen 16
> bdaddr 00:0F:B3:9B:04:D3 mode 1 clkoffset 0x10e4 class 0x020104
> > HCI Event: Inquiry Result (0x02) plen 16
> bdaddr 00:14:A4:D7:52:48 mode 1 clkoffset 0x7c5a class 0x72010c
> > HCI Event: Inquiry Result (0x02) plen 16
> bdaddr 00:14:A4:D7:52:91 mode 1 clkoffset 0x4c9b class 0x72010c
> > HCI Event: Inquiry Result (0x02) plen 16
> bdaddr 00:20:E0:7A:F4:E6 mode 1 clkoffset 0x6ec5 class 0x00010c
> < HCI Command: Inquiry Cancel (0x01|0x0002) plen 0
> > HCI Event: Command Complete (0x0e) plen 4
> Inquiry Cancel (0x01|0x0002) ncmd 1
> status 0x00
> 
> in your last mail, you ask me to to use hcidump(-X -V), but I can't
> see the RSSI value. 
> 
> The sample code I used uses the HCI raw socket, and I review the DBus
> API(bluez-utils-3.1), I don't know which API can give me the RSSI
> wheng inquirying.
> 
> How do you think about it?

this is strange. If "hciconfig hci0 inqmode" tells you that you use
Inquiry with RSSI then you should get the Inquiry with RSSI Results.
What hardware is this (hciconfig hci0 version).

Regards

Marcel

> 



_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel



With respects,
        Mingfan.Lu 

 __________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

[-- Attachment #2: Type: text/html, Size: 5170 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] 回复: Re:  RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  8:09     ` 回复: " Mingfan lu
@ 2006-06-21  8:21       ` Marcel Holtmann
  2006-06-21  8:50         ` 回复: Re: 回复: Re: [Bluez-devel] " Mingfan lu
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-21  8:21 UTC (permalink / raw)
  To: Mingfan lu; +Cc: BlueZ development

Hi,

> mylinux:/home/lucharse/ContentPushing # hciconfig hci0 version
> hci0:   Type: USB
>         BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
>         HCI Ver: 1.2 (0x2) HCI Rev: 0x1f4 LMP Ver: 1.2 (0x2) LMP
> Subver: 0x1f4
>         Manufacturer: Integrated System Solution Corp. (57)

this chips firmware is totally broken. I just checked mine and I am
seeing the same. No Inquiry with RSSI Result events.

However their support for Inquiry with RSSI is simply not there. See my
tested inquiry mode settings:

# hciconfig hci0 inqmode 5
# sudo hciconfig hci0 inqmode
hci0:   Type: USB
        BD Address: 22:22:22:22:22:22 ACL MTU: 678:8 SCO MTU: 48:10
        Inquiry mode: Unknown (0x05)

So they store the value somewhere, but that's it.

If you wanna really use Inquiry with RSSI, then you might wanna make
sure you get a CSR BlueCore4 based dongle. They simply work.

Regards

Marcel




_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* 回复: Re: 回复: Re: [Bluez-devel] RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  8:21       ` [Bluez-devel] 回复: " Marcel Holtmann
@ 2006-06-21  8:50         ` Mingfan lu
  2006-06-21  8:59           ` [Bluez-devel] 回复: Re: 回复: " Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Mingfan lu @ 2006-06-21  8:50 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

I can't understand your test , why you set the mode 5? 
  what is the relation between  your result and the problem?   

Marcel Holtmann <marcel@holtmann.org> :
  Hi,

> mylinux:/home/lucharse/ContentPushing # hciconfig hci0 version
> hci0: Type: USB
> BD Address: 00:11:67:19:3D:EC ACL MTU: 678:8 SCO MTU: 48:10
> HCI Ver: 1.2 (0x2) HCI Rev: 0x1f4 LMP Ver: 1.2 (0x2) LMP
> Subver: 0x1f4
> Manufacturer: Integrated System Solution Corp. (57)

this chips firmware is totally broken. I just checked mine and I am
seeing the same. No Inquiry with RSSI Result events.

However their support for Inquiry with RSSI is simply not there. See my
tested inquiry mode settings:

# hciconfig hci0 inqmode 5
# sudo hciconfig hci0 inqmode
hci0: Type: USB
BD Address: 22:22:22:22:22:22 ACL MTU: 678:8 SCO MTU: 48:10
Inquiry mode: Unknown (0x05)

So they store the value somewhere, but that's it.

If you wanna really use Inquiry with RSSI, then you might wanna make
sure you get a CSR BlueCore4 based dongle. They simply work.

Regards

Marcel





With respects,
        Mingfan.Lu 

 		
---------------------------------
 Mp3疯狂搜-新歌热歌高速下   

[-- Attachment #2: Type: text/html, Size: 1786 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] 回复: Re: 回复: Re:  RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  8:50         ` 回复: Re: 回复: Re: [Bluez-devel] " Mingfan lu
@ 2006-06-21  8:59           ` Marcel Holtmann
  2006-06-21  9:12             ` [Bluez-devel] 回复: " Mingfan lu
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-21  8:59 UTC (permalink / raw)
  To: Mingfan lu; +Cc: BlueZ development

Hi,

> I can't understand your test , why you set the mode 5? 
> what is the relation between  your result and the problem?   

it means that they support the inquiry mode command, but don't do
actually anything with it. Setting it to 5 is not allowed. So this
command should fail and later on it should retrieve only 0 or 1 as valid
values, but it doesn't. This leads to the conclusion that they only
store the inquiry mode value somewhere, but never evaluate it. And this
means they will never switch to Inquiry with RSSI as you have seen
before.

Regards

Marcel

> 



_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bluez-devel] 回复: Re:  回复: Re: 回复: Re:  RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  8:59           ` [Bluez-devel] 回复: Re: 回复: " Marcel Holtmann
@ 2006-06-21  9:12             ` Mingfan lu
  2006-06-21  9:25               ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Mingfan lu @ 2006-06-21  9:12 UTC (permalink / raw)
  To: BlueZ development; +Cc: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 2083 bytes --]

Hi,
   I reviewed the hciconfig.c.
   If you set mode 5, it just output like you test. I can see any limitation of the mode num, 5 it can be dealt with. So, I don't think it can give such a conclusion you claimed.
   
  static void cmd_inq_mode(int ctl, int hdev, char *opt)
{
 int dd;
   dd = hci_open_dev(hdev);
 if (dd < 0) {
  fprintf(stderr, "Can't open device hci%d: %s (%d)\n",
      hdev, strerror(errno), errno);
  exit(1);
 }
   if (opt) {
  uint8_t mode = atoi(opt);
    if (hci_write_inquiry_mode(dd, mode, 2000) < 0) {
   fprintf(stderr, "Can't set inquiry mode on hci%d: %s (%d)\n",
      hdev, strerror(errno), errno);
   exit(1);
  }
 } else {
  uint8_t mode;
    if (hci_read_inquiry_mode(dd, &mode, 1000) < 0) {
   fprintf(stderr, "Can't read inquiry mode on hci%d: %s (%d)\n",
      hdev, strerror(errno), errno);
   exit(1);
  }
    print_dev_hdr(&di);
  printf("\tInquiry mode: ");
  switch (mode) {
  case 0:
   printf("Standard Inquiry\n");
   break;
  case 1:
   printf("Inquiry with RSSI\n");
   break;
  case 2:
   printf("Inquiry with RSSI or Extended Inquiry\n");
   break;
  default:
   printf("Unknown (0x%02x)\n", mode);
   break;
  }
 }
   hci_close_dev(dd);
}

Marcel Holtmann <marcel@holtmann.org> 写道:
  Hi,

> I can't understand your test , why you set the mode 5? 
> what is the relation between your result and the problem? 

it means that they support the inquiry mode command, but don't do
actually anything with it. Setting it to 5 is not allowed. So this
command should fail and later on it should retrieve only 0 or 1 as valid
values, but it doesn't. This leads to the conclusion that they only
store the inquiry mode value somewhere, but never evaluate it. And this
means they will never switch to Inquiry with RSSI as you have seen
before.

Regards

Marcel

> 



_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel



With respects,
        Mingfan.Lu 

 		
---------------------------------
 雅虎免费邮箱-3.5G容量,20M附件

[-- Attachment #1.2: Type: text/html, Size: 3609 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] 回复: Re: 回复: Re: 回复: Re:  RE: RE: FWD: Re: Re:Request with RSSI
  2006-06-21  9:12             ` [Bluez-devel] 回复: " Mingfan lu
@ 2006-06-21  9:25               ` Marcel Holtmann
  2006-06-21  9:33                 ` [Bluez-deve]Re: Re:: Re: RE: RE: FWD:Re: " Mingfan lu
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-21  9:25 UTC (permalink / raw)
  To: BlueZ development

Hi,

>  I reviewed the hciconfig.c.
>  If you set mode 5, it just output like you test. I can see any
> limitation of the mode num, 5 it can be dealt with. So, I don't think
> it can give such a conclusion you claimed.

this has nothing to do with our code. The chip must refuse any values
other than 0 and 1. And such a behavior leads the conclusion that their
implementation doesn't care about the inquiry mode at all. Otherwise
they would have been more careful with the implementation.

Anyway, the firmware of this chip is broken. Get yourself a working
dongle from CSR and you can use Inquiry with RSSI. Otherwise you can't.

Regards

Marcel




_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-deve]Re: Re:: Re:  RE: RE: FWD:Re: Re:Request with RSSI
  2006-06-21  9:25               ` Marcel Holtmann
@ 2006-06-21  9:33                 ` Mingfan lu
  2006-06-21  9:43                   ` [Bluez-devel] " Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Mingfan lu @ 2006-06-21  9:33 UTC (permalink / raw)
  To: marcel; +Cc: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]

I see. Thank you for your patience and nice answer. 
  I will get a new dongle :)
  ps, is there any plan for  official document for bluez, although the bluez is being under development. 

Marcel Holtmann <marcel@holtmann.org> 写道: 
  Hi,

> I reviewed the hciconfig.c.
> If you set mode 5, it just output like you test. I can see any
> limitation of the mode num, 5 it can be dealt with. So, I don't think
> it can give such a conclusion you claimed.

this has nothing to do with our code. The chip must refuse any values
other than 0 and 1. And such a behavior leads the conclusion that their
implementation doesn't care about the inquiry mode at all. Otherwise
they would have been more careful with the implementation.

Anyway, the firmware of this chip is broken. Get yourself a working
dongle from CSR and you can use Inquiry with RSSI. Otherwise you can't.

Regards

Marcel




_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel



With respects,
        Mingfan.Lu 

 		
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件! 

[-- Attachment #2: Type: text/html, Size: 1759 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bluez-devel] [Bluez-deve]Re: Re:: Re: RE: RE: FWD:Re: Re:Request with RSSI
  2006-06-21  9:33                 ` [Bluez-deve]Re: Re:: Re: RE: RE: FWD:Re: " Mingfan lu
@ 2006-06-21  9:43                   ` Marcel Holtmann
  0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2006-06-21  9:43 UTC (permalink / raw)
  To: Mingfan lu; +Cc: BlueZ development

Hi,

> ps, is there any plan for  official document for bluez, although the
> bluez is being under development. 

what do you mean by document. We have manpages for all commands and
there are some howtos you can find on the web.

Regards

Marcel




_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-06-21  9:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1150787688.18381.0.camel@localhost>
2006-06-21  5:02 ` [Bluez-devel] RE: RE: RE: FWD: Re: Re:Request with RSSI Mingfan lu
2006-06-21  7:10   ` [Bluez-devel] " Marcel Holtmann
2006-06-21  8:09     ` 回复: " Mingfan lu
2006-06-21  8:21       ` [Bluez-devel] 回复: " Marcel Holtmann
2006-06-21  8:50         ` 回复: Re: 回复: Re: [Bluez-devel] " Mingfan lu
2006-06-21  8:59           ` [Bluez-devel] 回复: Re: 回复: " Marcel Holtmann
2006-06-21  9:12             ` [Bluez-devel] 回复: " Mingfan lu
2006-06-21  9:25               ` Marcel Holtmann
2006-06-21  9:33                 ` [Bluez-deve]Re: Re:: Re: RE: RE: FWD:Re: " Mingfan lu
2006-06-21  9:43                   ` [Bluez-devel] " Marcel Holtmann

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).