* Getting/setting Inquiry trasmit power level unsolved
@ 2009-11-13 18:47 Natale Vinto
2009-11-15 11:57 ` Marcel Holtmann
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-11-13 18:47 UTC (permalink / raw)
To: linux-bluetooth
Hi all,
I've this issue: while trying to get/set inquiry transmit power level
from a bluetooth usb dongle on 2.6 kernels I got always this error:
Can't read inquiry transmit power level on hci0: Input/output error (5)
I've tried with any bluetooth usb dongle class (1.1, 2 and 2.1) from
many vendors (ex. Sitecom, Trust, D-Link, Belkin, etc), in many 2.6.x
kernels ( 2.6.{27,31} ) on Debian and Ubuntu machines using BlueZ 3.x
and 4.x stack and I got always that error while trying to get the TPL
with:
hciconfig <device> inqtpl
I searched a lot in mailing list archives and I haven't seen any
solution for this issue, I've found maybe useful only this old email
http://osdir.com/ml/bluez.devel/2003-06/msg00140.html
where is suggested a CSR chipset based hardware.
Also looking in sources I found that the problem comes from this pieces of code:
int8_t level;
if (hci_read_inquiry_transmit_power_level(dd, &level, 1000) < 0) {
fprintf(stderr, "Can't read inquiry transmit power level
on hci%d: %s (%d)\n",
hdev, strerror(errno), errno);
exit(1);
}
My question is : how can I have the inqtpl option working? Should I
buy only CSR hardware dongle? I'm considering usb dongle because they
are the most common in the market, although it could be a linux-usb
issue I wonder how to try to fix it!
I'm working as sys admin (part-time, do the evolution baby!) for
embedded devices for a company that deal with proximity marketing
using linux and they would be very pleased to make you a donation if
you could suggest us a solution in order to have this issue fixed
cause it would optimize inquiries so fine, this is a primary goal for
the development team itself.
Thank you
Best Regards
--
Natale Vinto
http://www.hictech.com
http://bluesman.gotext.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-13 18:47 Getting/setting Inquiry trasmit power level unsolved Natale Vinto
@ 2009-11-15 11:57 ` Marcel Holtmann
2009-11-17 16:53 ` Natale Vinto
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2009-11-15 11:57 UTC (permalink / raw)
To: Natale Vinto; +Cc: linux-bluetooth
Hi Natale,
> I've this issue: while trying to get/set inquiry transmit power level
> from a bluetooth usb dongle on 2.6 kernels I got always this error:
>
> Can't read inquiry transmit power level on hci0: Input/output error (5)
>
> I've tried with any bluetooth usb dongle class (1.1, 2 and 2.1) from
> many vendors (ex. Sitecom, Trust, D-Link, Belkin, etc), in many 2.6.x
> kernels ( 2.6.{27,31} ) on Debian and Ubuntu machines using BlueZ 3.x
> and 4.x stack and I got always that error while trying to get the TPL
> with:
>
> hciconfig <device> inqtpl
>
> I searched a lot in mailing list archives and I haven't seen any
> solution for this issue, I've found maybe useful only this old email
>
> http://osdir.com/ml/bluez.devel/2003-06/msg00140.html
>
> where is suggested a CSR chipset based hardware.
> Also looking in sources I found that the problem comes from this pieces of code:
>
> int8_t level;
>
> if (hci_read_inquiry_transmit_power_level(dd, &level, 1000) < 0) {
> fprintf(stderr, "Can't read inquiry transmit power level
> on hci%d: %s (%d)\n",
> hdev, strerror(errno), errno);
> exit(1);
> }
>
> My question is : how can I have the inqtpl option working? Should I
> buy only CSR hardware dongle? I'm considering usb dongle because they
> are the most common in the market, although it could be a linux-usb
> issue I wonder how to try to fix it!
what does hciconfig hci0 commands tell you? Does it show that this
command is supported by the firmware. And this is a pure 2.1 feature so
all older dongles will not have it.
Regards
Marcel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-15 11:57 ` Marcel Holtmann
@ 2009-11-17 16:53 ` Natale Vinto
2009-11-17 20:56 ` Marcel Holtmann
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-11-17 16:53 UTC (permalink / raw)
To: linux-bluetooth
Hi Marcel,
I have a 2.1+EDR bluetooth usb dongle from Cubic 3c Corp.
Here there is a picture of it:
http://www.ec21.com/global/common/imageView.jsp?title=Sell%20bluetooth%20mini%20dongle,%20100m&img=http://image.ec21.com/image/skye112/OF0007943009_1/Sell_bluetooth_mini_dongle_100m.jpg
The command hciconfig hci0 gives this result on 2.6.31 Kubuntu Karmic:
hci0: Type: USB
BD Address: 00:15:83:0C:1F:55 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:999 acl:0 sco:0 events:30 errors:0
TX bytes:367 acl:0 sco:0 commands:28 errors:0
Here you are some useful information about it:
lsusb:
Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd
Bluetooth Dongle (HCI mode)
lsmod | grep bt:
btusb 11568 2
bluetooth 53828 9 rfcomm,sco,bnep,l2cap,btusb
usbcore 146288 4 btusb,ehci_hcd,uhci_hcd
so I get always:
hciconfig hci0 inqtpl
Can't read inquiry transmit power level on hci0: Input/output error (5)
either on Ubuntu/Debian Bluez 4.x/3.x
so isn't it a CSR based chip? I thought they would work fine with TPL, isn't it?
Best Regards
This doesn't work also on Bluez 3.x, what's wrong?
2009/11/15 Marcel Holtmann <marcel@holtmann.org>
>
> Hi Natale,
>
> > I've this issue: while trying to get/set inquiry transmit power level
> > from a bluetooth usb dongle on 2.6 kernels I got always this error:
> >
> > Can't read inquiry transmit power level on hci0: Input/output error (5)
> >
> > I've tried with any bluetooth usb dongle class (1.1, 2 and 2.1) from
> > many vendors (ex. Sitecom, Trust, D-Link, Belkin, etc), in many 2.6.x
> > kernels ( 2.6.{27,31} ) on Debian and Ubuntu machines using BlueZ 3.x
> > and 4.x stack and I got always that error while trying to get the TPL
> > with:
> >
> > hciconfig <device> inqtpl
> >
> > I searched a lot in mailing list archives and I haven't seen any
> > solution for this issue, I've found maybe useful only this old email
> >
> > http://osdir.com/ml/bluez.devel/2003-06/msg00140.html
> >
> > where is suggested a CSR chipset based hardware.
> > Also looking in sources I found that the problem comes from this pieces of code:
> >
> > int8_t level;
> >
> > if (hci_read_inquiry_transmit_power_level(dd, &level, 1000) < 0) {
> > fprintf(stderr, "Can't read inquiry transmit power level
> > on hci%d: %s (%d)\n",
> > hdev, strerror(errno), errno);
> > exit(1);
> > }
> >
> > My question is : how can I have the inqtpl option working? Should I
> > buy only CSR hardware dongle? I'm considering usb dongle because they
> > are the most common in the market, although it could be a linux-usb
> > issue I wonder how to try to fix it!
>
> what does hciconfig hci0 commands tell you? Does it show that this
> command is supported by the firmware. And this is a pure 2.1 feature so
> all older dongles will not have it.
>
> Regards
>
> Marcel
>
>
--
Natale Vinto
http://www.hictech.com
http://bluesman.gotext.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-17 16:53 ` Natale Vinto
@ 2009-11-17 20:56 ` Marcel Holtmann
2009-11-17 21:18 ` Natale Vinto
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2009-11-17 20:56 UTC (permalink / raw)
To: Natale Vinto; +Cc: linux-bluetooth
Hi Natale,
so first of all, stop TOP posting. Otherwise I just going to ignore your
emails. This is an open source mailing that follows proper standards and
etiquette,
> I have a 2.1+EDR bluetooth usb dongle from Cubic 3c Corp.
>
> Here there is a picture of it:
> http://www.ec21.com/global/common/imageView.jsp?title=Sell%20bluetooth%20mini%20dongle,%20100m&img=http://image.ec21.com/image/skye112/OF0007943009_1/Sell_bluetooth_mini_dongle_100m.jpg
>
> The command hciconfig hci0 gives this result on 2.6.31 Kubuntu Karmic:
> hci0: Type: USB
> BD Address: 00:15:83:0C:1F:55 ACL MTU: 310:10 SCO MTU: 64:8
> UP RUNNING PSCAN
> RX bytes:999 acl:0 sco:0 events:30 errors:0
> TX bytes:367 acl:0 sco:0 commands:28 errors:0
>
> Here you are some useful information about it:
>
> lsusb:
> Bus 002 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd
> Bluetooth Dongle (HCI mode)
>
> lsmod | grep bt:
> btusb 11568 2
> bluetooth 53828 9 rfcomm,sco,bnep,l2cap,btusb
> usbcore 146288 4 btusb,ehci_hcd,uhci_hcd
>
> so I get always:
> hciconfig hci0 inqtpl
> Can't read inquiry transmit power level on hci0: Input/output error (5)
>
> either on Ubuntu/Debian Bluez 4.x/3.x
>
> so isn't it a CSR based chip? I thought they would work fine with TPL, isn't it?
# hciconfig hci0 inqtpl
hci0: Type: USB
BD Address: 00:19:DB:xx:xx:xx ACL MTU: 310:10 SCO MTU: 64:8
Inquiry transmit power level: 4
# hcidump -X -V
< HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
> HCI Event: Command Complete (0x0e) plen 5
Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
status 0x00 level 4
Looks all good to me and works perfectly fine with the CSR dongle, I
tested this with.
Regards
Marcel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-17 20:56 ` Marcel Holtmann
@ 2009-11-17 21:18 ` Natale Vinto
2009-11-18 17:59 ` Natale Vinto
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-11-17 21:18 UTC (permalink / raw)
To: linux-bluetooth
Hi Marcel,
I'm sorry I didn't even know the meaning of top-posting before this
email, I just answered using gmail.
> # hciconfig hci0 inqtpl
> hci0: Type: USB
> BD Address: 00:19:DB:xx:xx:xx ACL MTU: 310:10 SCO MTU: 64:8
> Inquiry transmit power level: 4
>
> # hcidump -X -V
> < HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
>> HCI Event: Command Complete (0x0e) plen 5
> Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
> status 0x00 level 4
>
> Looks all good to me and works perfectly fine with the CSR dongle, I
> tested this with.
>
So I'll try only with CSR dongles, thank you for useful informations.
Best Regards
--
Natale Vinto
http://www.hictech.com
http://bluesman.gotext.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-17 21:18 ` Natale Vinto
@ 2009-11-18 17:59 ` Natale Vinto
2009-11-18 18:15 ` Marcel Holtmann
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-11-18 17:59 UTC (permalink / raw)
To: linux-bluetooth
Hi,
I would also know what could be the problem for other CSR based usb
bluetooth dongles, the dongle I've linked before from Cubic 3c. Corp.
is CSR according to lsusb. Is a linux-usb issue or the implementation
of TPL in BlueZ that deal only with certain kind of chipset?
When you talk about CSR dongle do you mean some developer stuff like
Nanosira-EDR USB Bluetooth Dongle
available at http://www.csr.com/store/search.php?q=PTS
or other CSR based dongles as Belkin or Targus ACB10US, as I read in Bluez News?
Just to understand, thanks
Best Regards
Natale Vinto
http://www.hictech.com
http://bluesman.gotext.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-18 17:59 ` Natale Vinto
@ 2009-11-18 18:15 ` Marcel Holtmann
2009-11-27 18:11 ` Natale Vinto
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2009-11-18 18:15 UTC (permalink / raw)
To: Natale Vinto; +Cc: linux-bluetooth
Hi Natale,
> I would also know what could be the problem for other CSR based usb
> bluetooth dongles, the dongle I've linked before from Cubic 3c. Corp.
> is CSR according to lsusb. Is a linux-usb issue or the implementation
> of TPL in BlueZ that deal only with certain kind of chipset?
>
> When you talk about CSR dongle do you mean some developer stuff like
> Nanosira-EDR USB Bluetooth Dongle
> available at http://www.csr.com/store/search.php?q=PTS
> or other CSR based dongles as Belkin or Targus ACB10US, as I read in Bluez News?
I tried it with a Fujitsu-Siemens BlueCore4-External flashed with a 2.1
firmware. That was the one I had laying on my desk.
And as I said, before run "hciconfig hci0 commands" and see if the
command is actually supported. Maybe the ROM chips are different.
Regards
Marcel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-18 18:15 ` Marcel Holtmann
@ 2009-11-27 18:11 ` Natale Vinto
2009-12-14 16:24 ` Natale Vinto
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-11-27 18:11 UTC (permalink / raw)
To: linux-bluetooth
Hi Marcel,
> I tried it with a Fujitsu-Siemens BlueCore4-External flashed with a 2.1
> firmware. That was the one I had laying on my desk.
I've tried then with a Belkin F8T017 v2.1 + EDR usb dongle Class 1 on
Ubuntu 2.6.31.6 Bluez 4.51
hciconfig hci0 commands gives me
'Read Inquiry Transmit Power Level'
'Write Inquiry Transmit Power Level'
So now hciconfig hci0 inqtpl :
hci0: Type: USB
BD Address: 00:19:0E:XX:XX:XX ACL MTU: 1021:8 SCO MTU: 64:1
Inquiry transmit power level: 0
but hciconfig hci0 inqtpl 1 nothing . Analyzing packets on on hci0 I
got the same result as you in the previous mail but while reading TPL,
but while trying to write TPL for example to level 4 I got this with
hciconfig hci0 inqtpl 4
# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Write Inquiry Response Transmit Power Level (0x03|0x0059) plen 1
level 4
> HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Response Transmit Power Level (0x03|0x0059) ncmd 1
status 0x00
keeping TPL to 0 level. I'm waiting another Belkin that should be CSR
based as linked on CSR website, is F8T016 and is Class 2, hoping will
work, but I would know: does TPL work only for Class 1? Is 0 a valid
level?
Best Regards
--
Natale
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-11-27 18:11 ` Natale Vinto
@ 2009-12-14 16:24 ` Natale Vinto
2009-12-14 17:55 ` Marcel Holtmann
0 siblings, 1 reply; 11+ messages in thread
From: Natale Vinto @ 2009-12-14 16:24 UTC (permalink / raw)
To: linux-bluetooth
Hi Marcel,
I finally got the Belkin F8T016, linked from CSR website (
http://www.csr.com/applications/qual-mod.php?catID=14 ) as qualified
end product with CSR's BlueCore chip.
I read this spec:
Bluetooth v2.1 + EDR
Class 2
The output is always the same:
# hciconfig hci0
hci0: Type: USB
BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1129 acl:0 sco:0 events:42 errors:0
TX bytes:1616 acl:0 sco:0 commands:42 errors:0
# lsusb
Bus 002 Device 006: ID 050d:016a Belkin Components
# hciconfig hci0 commands | grep "Inquiry Transmit Power Level"
'Read Inquiry Transmit Power Level'
'Write Inquiry Transmit Power Level'
(started hcidump here)
# hciconfig hci0 inqtpl
hci0: Type: USB
BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
Inquiry transmit power level: 0
# hciconfig hci0 inqtpl 1
# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
> HCI Event: Command Complete (0x0e) plen 5
Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
status 0x00 level 0
< HCI Command: Write Inquiry Response Transmit Power Level (0x03|0x0059) plen 1
level 1
> HCI Event: Command Complete (0x0e) plen 4
Write Inquiry Response Transmit Power Level (0x03|0x0059) ncmd 1
status 0x00
but inquiry transmit level remains 0
# hciconfig hci0 inqtpl
hci0: Type: USB
BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
Inquiry transmit power level: 0
This try made on Ubuntu 9.10 2.6.31 (kernel.org) and 2.6.31-16-generic
(Ubuntu kernel)
# dpkg -l bluez
ii bluez 4.51-0ubuntu2 Bluetooth tools and daemons
So I wonder what is the problem...have I to flash in someway some firmware?
Best Regards
--
Natale
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-12-14 16:24 ` Natale Vinto
@ 2009-12-14 17:55 ` Marcel Holtmann
2009-12-23 13:53 ` Steven Singer
0 siblings, 1 reply; 11+ messages in thread
From: Marcel Holtmann @ 2009-12-14 17:55 UTC (permalink / raw)
To: Natale Vinto; +Cc: linux-bluetooth
Hi Natale,
> I finally got the Belkin F8T016, linked from CSR website (
> http://www.csr.com/applications/qual-mod.php?catID=14 ) as qualified
> end product with CSR's BlueCore chip.
> I read this spec:
> Bluetooth v2.1 + EDR
> Class 2
>
> The output is always the same:
>
> # hciconfig hci0
> hci0: Type: USB
> BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
> UP RUNNING PSCAN
> RX bytes:1129 acl:0 sco:0 events:42 errors:0
> TX bytes:1616 acl:0 sco:0 commands:42 errors:0
>
> # lsusb
> Bus 002 Device 006: ID 050d:016a Belkin Components
>
> # hciconfig hci0 commands | grep "Inquiry Transmit Power Level"
> 'Read Inquiry Transmit Power Level'
> 'Write Inquiry Transmit Power Level'
>
> (started hcidump here)
>
> # hciconfig hci0 inqtpl
> hci0: Type: USB
> BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
> Inquiry transmit power level: 0
>
> # hciconfig hci0 inqtpl 1
>
> # hcidump -X -V
> HCI sniffer - Bluetooth packet analyzer ver 1.42
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Read Inquiry Response Transmit Power Level (0x03|0x0058) plen 0
> > HCI Event: Command Complete (0x0e) plen 5
> Read Inquiry Response Transmit Power Level (0x03|0x0058) ncmd 1
> status 0x00 level 0
> < HCI Command: Write Inquiry Response Transmit Power Level (0x03|0x0059) plen 1
> level 1
> > HCI Event: Command Complete (0x0e) plen 4
> Write Inquiry Response Transmit Power Level (0x03|0x0059) ncmd 1
> status 0x00
>
> but inquiry transmit level remains 0
> # hciconfig hci0 inqtpl
> hci0: Type: USB
> BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
> Inquiry transmit power level: 0
>
> This try made on Ubuntu 9.10 2.6.31 (kernel.org) and 2.6.31-16-generic
> (Ubuntu kernel)
> # dpkg -l bluez
> ii bluez 4.51-0ubuntu2 Bluetooth tools and daemons
>
> So I wonder what is the problem...have I to flash in someway some firmware?
you would have to talk to CSR here. I have no idea what their firmware
is doing.
Regards
Marcel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Getting/setting Inquiry trasmit power level unsolved
2009-12-14 17:55 ` Marcel Holtmann
@ 2009-12-23 13:53 ` Steven Singer
0 siblings, 0 replies; 11+ messages in thread
From: Steven Singer @ 2009-12-23 13:53 UTC (permalink / raw)
Cc: linux-bluetooth
Marcel Holtmann wrote:
> Natale Vinto wrote:
>> I finally got the Belkin F8T016, linked from CSR website (
>> http://www.csr.com/applications/qual-mod.php?catID=14 ) as qualified
>> end product with CSR's BlueCore chip.
[...]
>> The output is always the same:
>>
>> # hciconfig hci0
>> hci0: Type: USB
>> BD Address: 00:0A:3A:xx:xx:xx ACL MTU: 1021:8 SCO MTU: 64:1
I can tell from the ACL MTU that's not one of ours.
I have heard rumours (probably on this mailing list) that OEMs
sometimes change the chipset they use in devices without telling
anyone.
Isn't there some option to hciconfig that dumps the manufacturer ID
and firmware version (maybe hciconfig hci0 version)?
--
Steven Singer
Software Engineer
Cambridge Silicon Radio Ltd. Tel: +44 (0)1223 692000 Fax: +44 (0)1223 692001
Churchill House, Cambridge Business Park, Cowley Road, Cambridge CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-12-23 13:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 18:47 Getting/setting Inquiry trasmit power level unsolved Natale Vinto
2009-11-15 11:57 ` Marcel Holtmann
2009-11-17 16:53 ` Natale Vinto
2009-11-17 20:56 ` Marcel Holtmann
2009-11-17 21:18 ` Natale Vinto
2009-11-18 17:59 ` Natale Vinto
2009-11-18 18:15 ` Marcel Holtmann
2009-11-27 18:11 ` Natale Vinto
2009-12-14 16:24 ` Natale Vinto
2009-12-14 17:55 ` Marcel Holtmann
2009-12-23 13:53 ` Steven Singer
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).