All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] 'hcitool scan' failing
@ 2007-01-30 21:10 Mahesh T. Pai
  2007-01-31  3:49 ` Mahesh T. Pai
  2007-01-31 15:30 ` Raymond Ingles
  0 siblings, 2 replies; 6+ messages in thread
From: Mahesh T. Pai @ 2007-01-30 21:10 UTC (permalink / raw)
  To: bluez-users

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


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?


[-- Attachment #2: noremotedevice.log --]
[-- Type: application/octet-stream, Size: 728 bytes --]

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

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

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

[-- Attachment #4: Type: text/plain, Size: 347 bytes --]

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

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

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

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

* Re: [Bluez-users] 'hcitool scan' failing
  2007-01-30 21:10 [Bluez-users] 'hcitool scan' failing Mahesh T. Pai
@ 2007-01-31  3:49 ` Mahesh T. Pai
  2007-01-31 15:30 ` Raymond Ingles
  1 sibling, 0 replies; 6+ messages in thread
From: Mahesh T. Pai @ 2007-01-31  3:49 UTC (permalink / raw)
  To: bluez-users

paivakil@gmail.com (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



-- 
 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] 'hcitool scan' failing
  2007-01-30 21:10 [Bluez-users] 'hcitool scan' failing Mahesh T. Pai
  2007-01-31  3:49 ` Mahesh T. Pai
@ 2007-01-31 15:30 ` Raymond Ingles
  2007-01-31 17:17   ` Mahesh T. Pai
  1 sibling, 1 reply; 6+ messages in thread
From: Raymond Ingles @ 2007-01-31 15:30 UTC (permalink / raw)
  To: BlueZ users

On 1/30/07, Mahesh T. Pai <paivakil@gmail.com> wrote:
>
> 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
[...]
> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] 'hcitool scan' failing
  2007-01-31 15:30 ` Raymond Ingles
@ 2007-01-31 17:17   ` Mahesh T. Pai
  2007-01-31 18:34     ` Raymond Ingles
  0 siblings, 1 reply; 6+ messages in thread
From: Mahesh T. Pai @ 2007-01-31 17:17 UTC (permalink / raw)
  To: bluez-users

"Raymond Ingles" <sorceror171@gmail.com> writes:

> On 1/30/07, Mahesh T. Pai <paivakil@gmail.com> 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.

-- 
 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] 'hcitool scan' failing
  2007-01-31 17:17   ` Mahesh T. Pai
@ 2007-01-31 18:34     ` Raymond Ingles
  2007-02-02 20:14       ` Mahesh T. Pai
  0 siblings, 1 reply; 6+ messages in thread
From: Raymond Ingles @ 2007-01-31 18:34 UTC (permalink / raw)
  To: BlueZ users

On 1/31/07, Mahesh T. Pai <paivakil@gmail.com> wrote:
> "Raymond Ingles" <sorceror171@gmail.com> writes:
> >  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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] 'hcitool scan' failing
  2007-01-31 18:34     ` Raymond Ingles
@ 2007-02-02 20:14       ` Mahesh T. Pai
  0 siblings, 0 replies; 6+ messages in thread
From: Mahesh T. Pai @ 2007-02-02 20:14 UTC (permalink / raw)
  To: bluez-users

"Raymond Ingles" <sorceror171@gmail.com> writes:

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


-- 
 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2007-02-02 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-30 21:10 [Bluez-users] 'hcitool scan' failing Mahesh T. Pai
2007-01-31  3:49 ` Mahesh T. Pai
2007-01-31 15:30 ` Raymond Ingles
2007-01-31 17:17   ` Mahesh T. Pai
2007-01-31 18:34     ` Raymond Ingles
2007-02-02 20:14       ` Mahesh T. Pai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.