Skip to contentSkip to conversation

'hcitool scan' failing

Bluez-users Mahesh T. Pai 2 participants 6 messages Jan 30, 2007 – Feb 2, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I am trying to set up bluetooth networking on two systems running debian unstable. One is an i386 and other is running amd64. The OS/software is otherwise identical for both systems.

The USB dongles are detected, and show up in output of 'hcitool dev'; but neither system picks up signals from the other - `hcitool scan' simply fails.

Here is is relevant output from the i386 machine (no network to the amd64 machine, obviously)

Kernel version is 2.6.18-3-686 #1 SMP (it is a single processor machine, just in case it is relevant.)

# lsmod |grep blue
bluetooth              45732  8 bnep,rfcomm,l2cap,hci_usb
# lsmod |grep usb
hci_usb                16028  2
bluetooth              45732  8 bnep,rfcomm,l2cap,hci_usb
usbcore               112676  3 hci_usb,uhci_hcd
# lsusb
lsusb
Bus 001 Device 002: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
Bus 001 Device 001: ID 0000:0000

(device ID is same on both systems)

Contents of /proc/bus/usb/devices is

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 27/900 us ( 3%), #Int=  1, #Iso=  2
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.18-3-686 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=16 #Cfgs=  1
P:  Vendor=1131 ProdID=1001 Rev= 3.73
S:  Product=ISSCBTA
C:* #Ifs= 3 Cfg#= 1 Atr=c0 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=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) 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=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=83(I) 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=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=83(I) 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=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=83(I) 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=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
I:  If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)

Output of /proc/devices is

Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
14 sound
29 fb
99 ppdev
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
216 rfcomm
226 drm

Block devices:
1 ramdisk
2 fd
3 ide0
22 ide1

I have attached a file which is the output of hcidump -w (as desired in the archives).

Out put of hciconfig -a is:-

hci0: Type: USB
BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10 UP RUNNING PSCAN ISCAN
RX bytes:2473 acl:0 sco:0 events:62 errors:0
TX bytes:983 acl:0 sco:0 commands:58 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: MASTER
Name: 'nandini.home-0'
Class: 0x3e0104
Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio Device Class: Computer, Desktop workstation
HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe
Manufacturer: Integrated System Solution Corp. (57)

On the amd64 system, the Link Mode:' entry is SLAVE ACCEPT', which I believe is the the way it should be. RSWITCH is disabled in Link
Policy line. (I have been playing around a lot with the
configuration.)

Other USB devices work fine on both systems. (printer, digital camera, a nokia 3100 phone which will not work with gnokii... etc)

For the amd64 machine, I checked the Mother board manufacturer's site for bios updates, and find that 4 later versions are available. (Again, just in case the info is relevant - thinking of bios upgrades because dmesg complains of losing clock ticks _and_ some thing about bios handoff failure.).

Here is something which may be relevant in the logs:-

Jan 31 00:26:14 nandini pand[7138]: Accept failed. Interrupted system call(4)
Jan 31 00:26:14 nandini pand[7138]: Service record unregistration failed.
Jan 31 00:27:38 nandini pand[8330]: Accept failed. Interrupted system call(4)
Jan 31 00:27:38 nandini pand[8330]: Service record unregistration failed.
Jan 31 00:28:45 nandini pand[8357]: Accept failed. Interrupted system call(4)

(on later occassion - after a reboot).

hcid[8383]: Can't open system message bus connection:
+Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or +directory

Jan 31 01:32:06 nandini hcid[8383]: D-Bus failed to register /org/bluez/hci0

+object

[Where am I | what is] going wrong?

	���E�c3�����E�k���E	˗�E�	3��˗�E>	ӗ�E�9	���E�:	3�����E�G	���E�_	#��EW	3��#��E�e	+��EY�	O��Eos	3��O��E�	W��Ee�	{��E��	3��{��E/�	���E��	���E8�	3�����E�	���E�	Ӟ�E�B

3��Ӟ�E?R
۞�E&j ���E0_
3�����E1l
��E� +��E�z
3��+��E�
3��Eס W��E��
3��W��E&�
_��E�� :��Ep�3��:��E�D��E� ���Ep�
3�����E��
���E��

(PS:- I am not subscribed - I use the gmane archives).

Signature · 2 lines
 Mahesh T. Pai <<>> http://paivakil.blogspot.com/
Free Software - it is free as in FREEDOM

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw
Quoted 3 lines · [email protected] (Mahesh T. Pai) writes:

I am trying to set up bluetooth networking on two systems running debian unstable. One is an i386 and other is running amd64. The OS/software is otherwise identical for both systems.

And here is the output of syslog at bootup:-

# grep -i blue /var/log/syslog
Jan 31 02:14:10 nandini hcid[4736]: Default passkey agent (:1.9, /org/bluez/applet) registered
Jan 31 02:34:47 nandini hcid[4736]: Releasing agent :1.9, /org/bluez/applet
Jan 31 02:34:47 nandini hcid[4736]: Unregister path:/org/bluez/hci0
Jan 31 02:34:47 nandini hcid[4736]: Unregister path:/org/bluez
Jan 31 02:34:48 nandini hcid[5383]: Bluetooth HCI daemon
Jan 31 02:34:48 nandini sdpd[5385]: Bluetooth SDP daemon
Jan 31 02:34:48 nandini pand[5387]: Bluetooth PAN daemon version 3.7
Jan 31 02:34:48 nandini hcid[5383]: Register path:/org/bluez fallback:1
Jan 31 02:34:48 nandini hcid[5383]: Register path:/org/bluez/hci0 fallback:0
Jan 31 02:34:49 nandini hcid[5383]: Default passkey agent (:1.9, /org/bluez/applet) registered
Jan 31 02:53:03 nandini hcid[5383]: Register path:/org/bluez/hci0 fallback:0
Jan 31 02:53:03 nandini hcid[5383]: D-Bus failed to register /org/bluez/hci0 object
Jan 31 09:04:47 nandini kernel: Bluetooth: Core ver 2.10
Jan 31 09:04:47 nandini kernel: Bluetooth: HCI device and connection manager initialized
Jan 31 09:04:47 nandini kernel: Bluetooth: HCI socket layer initialized
Jan 31 09:04:47 nandini kernel: Bluetooth: HCI USB driver ver 2.9
Jan 31 09:04:48 nandini usbmgr[1891]: "bluetooth" was loaded
Jan 31 09:05:08 nandini hcid[2492]: Bluetooth HCI daemon
Jan 31 09:05:08 nandini hcid[2492]: Register path:/org/bluez fallback:1
Jan 31 09:05:08 nandini hcid[2492]: Register path:/org/bluez/hci0 fallback:0
Jan 31 09:05:08 nandini kernel: Bluetooth: L2CAP ver 2.8
Jan 31 09:05:08 nandini kernel: Bluetooth: L2CAP socket layer initialized
Jan 31 09:05:08 nandini sdpd[2495]: Bluetooth SDP daemon
Jan 31 09:05:08 nandini kernel: Bluetooth: RFCOMM socket layer initialized
Jan 31 09:05:08 nandini kernel: Bluetooth: RFCOMM TTY layer initialized
Jan 31 09:05:08 nandini kernel: Bluetooth: RFCOMM ver 1.8
Jan 31 09:05:08 nandini kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.2
Jan 31 09:05:08 nandini kernel: Bluetooth: BNEP filters: protocol multicast
Jan 31 09:05:08 nandini pand[2514]: Bluetooth PAN daemon version 3.7
Signature · 13 lines
 Mahesh T. Pai <<>> http://paivakil.blogspot.com/
Netiquette Guidelines ==>> http://tools.ietf.org/html/rfc1855


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#2 lore raw
In reply to Mahesh T. Pai
Quoted 6 lines · Mahesh T. Pai

I am trying to set up bluetooth networking on two systems running debian unstable. One is an i386 and other is running amd64. The OS/software is otherwise identical for both systems.

Bus 001 Device 002: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

[...]

Quoted 4 lines

Out put of hciconfig -a is:-

hci0: Type: USB

        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10

Here's the corresponding output on my system:

Bus 001 Device 024: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

hci0: Type: USB

        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 64:10

Note my BD address is also "11:11:11:11:11:11". These cheap dongles
appear to all have the same BD address. That will cause problems if two of them are in range of each other; it's similar to having to Ethernet cards on the same network with the same MAC address. This is a violation of the Bluetooth spec - those IDs are supposed to be unique. I suppose you get what you pay for.

If the BD address is the same for both machines, I don't think it's
going to be possible to get them to talk to each other. They should be able to talk to other devices with other, unique BD addresses, but they will get seriously confused trying to communicate with each other.

Some Ethernet cards allow you to change their MAC address; anyone
know of a way to change a dongle's BD address?

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw
Quoted 11 lines · Raymond Ingles

On 1/30/07, Mahesh T. Pai <[email protected]> wrote:

Bus 001 Device 024: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

hci0: Type: USB

        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 64:10

Note my BD address is also "11:11:11:11:11:11". These cheap dongles
appear to all have the same BD address. That will cause problems if two of them are in range of each other; it's similar to having to

Well, I have verified that the mac addreses are different. The dongles are from different vendors.

And, some time back, I had got `hcitool scan' to detect the dongles, but after a reboot, they no longer get each other. The only thing I remember doing was to reconfigure libbluetooth2.

And I cannot find the bnep0 nr rfcomm0 interfaces, though the relevant modules are loaded in the kernel.

Signature · 13 lines
 Mahesh T. Pai <<>> http://paivakil.blogspot.com/
REVOLUTION, n. An abrupt change in the form of misgovernment.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#4 lore raw
Quoted 7 lines · Mahesh T. Pai
Quoted 3 lines · Raymond Ingles

Note my BD address is also "11:11:11:11:11:11". These cheap dongles
appear to all have the same BD address. That will cause problems if two of them are in range of each other; it's similar to having to

Well, I have verified that the mac addreses are different. The dongles are from different vendors.

Oh, well, so much for that theory. I'm afraid I can't help you much
further, I'm still a newbie myself at this. Do you have any other bluetooth devices that you can successfully detect with those dongles, as a test?

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

#5 lore raw
Quoted 3 lines · Raymond Ingles

further, I'm still a newbie myself at this. Do you have any other bluetooth devices that you can successfully detect with those dongles, as a test?

Tested; working with more than one device (both mobiles - one a Sony Ericsonn, and other a Motorola A920.

I also cannot get to use rfcomm0 or bnep0 interfaces up.

Signature · 15 lines
 Mahesh T. Pai <<>> http://paivakil.blogspot.com/
The trouble with the world is that the stupid are cocksure
and the intelligent are full of doubt.
--Bertrand Russell


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