Skip to contentSkip to conversation

"hcitool dev" shows no devices

Bluez-users Marco Trudel 2 participants 5 messages Jan 30, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello everybody

I've a 2.4.26 kernel. I patched it using the "patch-2.4.26-mh2.gz" from the bluez homepage. * Then, in "make menuconfig" I selected this points:
# Bluetooth support -> Bluetooth subsystem support
# L2CAP protocol support (NEW)
# RFCOMM protocol support
# RFCOMM TTY support (NEW)
# Bluetooth support -> Bluetooth device drivers -> HCI USB driver (new)

Then I compiled and installed the new kernel.
After that I compiled and installed the bluez-libs and bluez-utils.

Everything works well...
Now I try "hcitool dev" but no devices are showed (I have two D-Link DBT120 connected to usb ports).

Any Ideas why they aren't recognized?
Did I miss to add a feature to the kernel?

kind regards
Marco

* Something gets rejected during the patch (It doesn't seem important to me, but maybee it is):

Makefile.rej:
***************
*** 1,7 ****
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
- EXTRAVERSION =

  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)

--- 1,7 ----
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
+ EXTRAVERSION = -mh2

  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Marco,

Quoted 12 lines

I've a 2.4.26 kernel. I patched it using the "patch-2.4.26-mh2.gz" from the bluez homepage. *
Then, in "make menuconfig" I selected this points:
# Bluetooth support -> Bluetooth subsystem support
# L2CAP protocol support (NEW)
# RFCOMM protocol support
# RFCOMM TTY support (NEW)
# Bluetooth support -> Bluetooth device drivers -> HCI USB driver (new)

Then I compiled and installed the new kernel.
After that I compiled and installed the bluez-libs and bluez-utils.

Quoted 6 lines

Everything works well...
Now I try "hcitool dev" but no devices are showed (I have two D-Link DBT120 connected to usb ports).

Any Ideas why they aren't recognized?
Did I miss to add a feature to the kernel?

what does "hciconfig -a" say? What is in /proc/bus/usb/devices?

Quoted 13 lines

* Something gets rejected during the patch (It doesn't seem important to me, but maybee it is):

Makefile.rej:
***************
*** 1,7 ****
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
- EXTRAVERSION =

   KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Quoted 7 lines

--- 1,7 ----
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
+ EXTRAVERSION = -mh2

   KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)

You can ignore this one. It will almost fail if you don't use a vanilla base.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Hello Marcel

I found out why they aren't recognized.
hcid needs to be running in order to start them (HCI dev X up)... stupid me... I thought that this isn't necessary.

thanks a lot!

But another question arised starting hcid:
The location of etc/bluetooth/pin. Is it hardcoded?
I crosscompiled the bluez libs/utils and hcid now tells me on start:
Can't open PIN file /usr/local/arm/2.95.3/arm-linux/etc/bluetooth/pin. No such file or directory(2)

Can I change the location of the pin-file? maybee in the hcid.conf?

kind regards
Marco

Quoted 14 lines · Marcel Holtmann

Hi Marco,

Quoted 11 lines

I've a 2.4.26 kernel. I patched it using the "patch-2.4.26-mh2.gz" from the bluez homepage. * Then, in "make menuconfig" I selected this points:
# Bluetooth support -> Bluetooth subsystem support
# L2CAP protocol support (NEW)
# RFCOMM protocol support
# RFCOMM TTY support (NEW)
# Bluetooth support -> Bluetooth device drivers -> HCI USB driver (new)

Then I compiled and installed the new kernel.
After that I compiled and installed the bluez-libs and bluez-utils.

Quoted 8 lines
Quoted 5 lines

Everything works well...
Now I try "hcitool dev" but no devices are showed (I have two D-Link DBT120 connected to usb ports).

Any Ideas why they aren't recognized?
Did I miss to add a feature to the kernel?

what does "hciconfig -a" say? What is in /proc/bus/usb/devices?

hci0: Type: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT

hci1: Type: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0 DOWN
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0
Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DH1 HV1
Link policy:
Link mode: SLAVE ACCEPT

Quoted 31 lines
Quoted 12 lines

* Something gets rejected during the patch (It doesn't seem important to me, but maybee it is):

Makefile.rej:
***************
*** 1,7 ****
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
- EXTRAVERSION =

  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
Quoted 7 lines

--- 1,7 ----
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 26
+ EXTRAVERSION = -mh2

  KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)

You can ignore this one. It will almost fail if you don't use a vanilla base.

Regards

Marcel

Quoted 11 lines

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi Marco,

Quoted 7 lines

But another question arised starting hcid:
The location of etc/bluetooth/pin. Is it hardcoded?
I crosscompiled the bluez libs/utils and hcid now tells me on start:
Can't open PIN file /usr/local/arm/2.95.3/arm-linux/etc/bluetooth/pin. No such file or directory(2)

Can I change the location of the pin-file? maybee in the hcid.conf?

there is no option for that. However you can provide a patch if you think such an option is usefull.

You forgot "--sysconfdir=/etc" when you call configure as it is written in the README.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Hello Marcel

Quoted 8 lines · Marcel Holtmann

Hi Marco,

Quoted 5 lines

But another question arised starting hcid:
The location of etc/bluetooth/pin. Is it hardcoded?
I crosscompiled the bluez libs/utils and hcid now tells me on start:
Can't open PIN file /usr/local/arm/2.95.3/arm-linux/etc/bluetooth/pin. No such file or directory(2)

Quoted 8 lines
Quoted 1 line

Can I change the location of the pin-file? maybee in the hcid.conf?

there is no option for that. However you can provide a patch if you think such an option is usefull.

You forgot "--sysconfdir=/etc" when you call configure as it is written in the README.

that does exactly what I need (and my c knowledge is very limited, I'd require a couple of weeks for a patch :-))!

thanks a lot for your help!

kind regards
Marco

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users