2006-11-13 11:32:40

by Arthur

[permalink] [raw]
Subject: [Bluez-users] Targus ACB20EU: Scan times out

(Sorry for reposting this ten days after the first mail. My other mail
address seems to get caught in quite a few spam filters.)

Hello all

Scanning for other devices with the Targus ACB20EU USB dongle (a
bluetooth 2.0 adapter with EDR support according to the packaging)
always times out. It doesn't help to run hcid or hciconfig hci0 up
beforehand. This is how it looks like:

# hcitool scan
Scanning ...
Inquiry failed: Connection timed out

Running hcidump -X -V at the same time only yields this output:

# hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Inquiry (0x01|0x0001) plen 5
lap 0x9e8b33 len 8 num 0
> HCI Event: Command Complete (0x0e) plen 4
Inquiry (0x01|0x0001) ncmd 1
0000: 0c

hciconfig -a gives an input/output error:

# hciconfig -a
hci0: Type: USB
BD Address: 00:16:38:3A:63:5E ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING
RX bytes:275 acl:0 sco:0 events:37 errors:0
TX bytes:667 acl:0 sco:0 commands:37 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xfd 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Can't read local name on hci0: Input/output error (5)

Here the associated dump:

# hcidump -X -V
< HCI Command: Read Local Name (0x03|0x0014) plen 0
> HCI Event: Command Complete (0x0e) plen 4
Read Local Name (0x03|0x0014) ncmd 1
status 0x0c name '.'
Error: Command Disallowed

This is on a 2.6.17-10-386 kernel on Ubuntu Edgy (2006.10).

Any ideas or suggestions are heartily welcome.

Regards

Arthur


Attachments:
(No filename) (1.64 kB)
(No filename) (2.28 kB)
(No filename) (373.00 B)
(No filename) (164.00 B)
Download all attachments

2006-11-14 20:59:22

by Arthur

[permalink] [raw]
Subject: Re: [Bluez-users] Targus ACB20EU: Scan times out

Hi Marcel

> Scanning for other devices with the Targus ACB20EU USB dongle (a
> > bluetooth 2.0 adapter with EDR support according to the packaging)
> > always times out. It doesn't help to run hcid or hciconfig hci0 up
> > beforehand. This is how it looks like:
> >
> > # hcitool scan
> > Scanning ...
> > Inquiry failed: Connection timed out
> >
> > Running hcidump -X -V at the same time only yields this output:
> >
> > # hcidump -X -V
> > HCI sniffer - Bluetooth packet analyzer ver 1.32
> > device: hci0 snap_len: 1028 filter: 0xffffffff
> > < HCI Command: Inquiry (0x01|0x0001) plen 5
> > lap 0x9e8b33 len 8 num 0
> > > HCI Event: Command Complete (0x0e) plen 4
> > Inquiry (0x01|0x0001) ncmd 1
> > 0000: 0c
>
> this is a broken chip anyway. The failure of HCI_Inquiry must be
> answered with a HCI_Command_Status event and not a HCI_Command_Complete
> event.
>
> Is this another Broadcom based dongle?
>
> Try loading the hci_usb with "reset=1" and post the content
> of /proc/bus/usb/devices.


A thousand thanks for your answer. Yes, now I can see that it's a Broadcom
BCM2045B2.
What's up with the "reset=1" parameter? I've now successfully paired it with
a Nokia BH-300 Headset and have it working with the btsco tools. :)
Wonderful.

Again, many thanks.

Regards

Arthur


For reference some data from /proc/bus/usb/devices and hciconfig -a:

# modprobe hci_usb reset=1
# cat /proc/bus/usb/devices
[... other devices ...]

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 6 Spd=12 MxCh= 3
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0a5c ProdID=4500 Rev= 1.00
S: Manufacturer=Broadcom
S: Product=BCM2045B2
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms

T: Bus=01 Lev=02 Prnt=06 Port=00 Cnt=01 Dev#= 7 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0a5c ProdID=2100 Rev= 1.00
S: Manufacturer=Broadcom Corp
S: Product=BCM92045DG-Flash_UHE
C:* #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 32 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 32 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 64 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 64 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=83(I) Atr=01(Isoc) MxPS= 64 Ivl=1ms
E: Ad=03(O) Atr=01(Isoc) MxPS= 64 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=84(I) Atr=02(Bulk) MxPS= 32 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 32 Ivl=0ms
I: If#= 3 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

# hciconfig -a
hci0: Type: USB
BD Address: 00:16:38:3A:63:5E ACL MTU: 1017:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1045 acl:0 sco:0 events:47 errors:0
TX bytes:358 acl:0 sco:0 commands:24 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xfd 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'hobbes-0'
Class: 0x3e0100
Service Classes: Networking, Rendering, Capturing, Object Transfer,
Audio
Device Class: Computer, Uncategorized
HCI Ver: 2.0 (0x3) HCI Rev: 0x2000 LMP Ver: 2.0 (0x3) LMP Subver:
0x415c
Manufacturer: Broadcom Corporation (15)


Attachments:
(No filename) (4.10 kB)
(No filename) (5.57 kB)
(No filename) (347.00 B)
(No filename) (164.00 B)
Download all attachments

2006-11-14 06:19:38

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Targus ACB20EU: Scan times out

Hi Arthur,

> Scanning for other devices with the Targus ACB20EU USB dongle (a
> bluetooth 2.0 adapter with EDR support according to the packaging)
> always times out. It doesn't help to run hcid or hciconfig hci0 up
> beforehand. This is how it looks like:
>
> # hcitool scan
> Scanning ...
> Inquiry failed: Connection timed out
>
> Running hcidump -X -V at the same time only yields this output:
>
> # hcidump -X -V
> HCI sniffer - Bluetooth packet analyzer ver 1.32
> device: hci0 snap_len: 1028 filter: 0xffffffff
> < HCI Command: Inquiry (0x01|0x0001) plen 5
> lap 0x9e8b33 len 8 num 0
> > HCI Event: Command Complete (0x0e) plen 4
> Inquiry (0x01|0x0001) ncmd 1
> 0000: 0c

this is a broken chip anyway. The failure of HCI_Inquiry must be
answered with a HCI_Command_Status event and not a HCI_Command_Complete
event.

Is this another Broadcom based dongle?

Try loading the hci_usb with "reset=1" and post the content
of /proc/bus/usb/devices.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users