hcid config
Been having some problems with a comOne dongle both before and after upgrading to kernel 2.6.7 (debian unstable).
So - I've just plugged in a belken dongle from another machine too (with ideas of using one to test what services the other is showing).
Both appear in /var/log/messages and also in /proc/bus/usb/devices
So - some simple tests:
chris@chris:~$ hcitool dev
Devices:
hci0 00:30:C2:08:0A:A1
hci1 00:0A:3A:54:5B:49
chris@chris:~$ hcitool -i hci0 scan
Scanning ...
00:0A:D9:94:BF:68 Chris Mobile
00:0A:3A:54:5B:49 WINDOWS-2000
chris@chris:~$ hcitool -i hci1 scan
Scanning ...
00:30:C2:08:0A:A1 Chris
00:0A:D9:94:BF:68 Chris MobileNow - this is odd - in hcid.conf I have
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
I was expecting two names - chris-0 (where now it's Chris) and chris-1 (where now of all things its WINDOWS-2000).
Any ideas?
Signature · 13 lines
Chris ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Chris,
Quoted 26 lines
Been having some problems with a comOne dongle both before and after upgrading to kernel 2.6.7 (debian unstable).
So - I've just plugged in a belken dongle from another machine too (with ideas of using one to test what services the other is showing).
Both appear in
/var/log/messagesand also in/proc/bus/usb/devicesSo - some simple tests:
chris@chris:~$ hcitool dev Devices: hci0 00:30:C2:08:0A:A1 hci1 00:0A:3A:54:5B:49 chris@chris:~$ hcitool -i hci0 scan Scanning ... 00:0A:D9:94:BF:68 Chris Mobile 00:0A:3A:54:5B:49 WINDOWS-2000 chris@chris:~$ hcitool -i hci1 scan Scanning ... 00:30:C2:08:0A:A1 Chris 00:0A:D9:94:BF:68 Chris MobileNow - this is odd - in hcid.conf I have
Quoted 8 lines
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";I was expecting two names - chris-0 (where now it's Chris) and chris-1 (where now of all things its WINDOWS-2000).
check if you have hcid running as root.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marcel" == Marcel Holtmann <[email protected]> writes:
Marcel> Hi Chris,
Marcel> check if you have hcid running as root.
chris@chris:~$ ps aux | grep hci root 3810 0.0 0.1 1896 796 ? Ss 08:35 0:00 hcid: processing events
It's started up from /etc/init.d/bluez-utils script under boot.
Regards
Signature · 13 lines
Chris ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Chris,
Quoted 4 lines
chris@chris:~$ ps aux | grep hci root 3810 0.0 0.1 1896 796 ? Ss 08:35 0:00 hcid: processing eventsIt's started up from
/etc/init.d/bluez-utilsscript under boot.
and what do "hciconfig -a" say?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marcel" == Marcel Holtmann <[email protected]> writes:
Marcel> and what do "hciconfig -a" say?
hci0: Type: USB
BD Address: 00:30:C2:08:0A:A1 ACL MTU: 128:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:2762 acl:20 sco:0 events:74 errors:0
TX bytes:427 acl:10 sco:0 commands:32 errors:0
Features: 0xff 0xff 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'Chris'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x72 LMP Ver: 1.1 (0x1) LMP Subver: 0x72
Manufacturer: Cambridge Silicon Radio (10)
hci1: Type: USB
BD Address: 00:0A:3A:54:5B:49 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1619 acl:0 sco:0 events:45 errors:0
TX bytes:161 acl:0 sco:0 commands:25 errors:0
Features: 0xff 0xff 0x0b 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'WINDOWS-2000'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)Signature · 13 lines
Chris Searle ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Chris,
Quoted 17 lines
hci0: Type: USB
BD Address: 00:30:C2:08:0A:A1 ACL MTU: 128:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:2762 acl:20 sco:0 events:74 errors:0
TX bytes:427 acl:10 sco:0 commands:32 errors:0
Features:0xff0xff0x050x000x000x000x000x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'Chris'
Class:0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev:0x72LMP Ver: 1.1 (0x1) LMP Subver:0x72
Manufacturer: Cambridge Silicon Radio (10)hci1: Type: USB
Quoted 14 lines
BD Address: 00:0A:3A:54:5B:49 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1619 acl:0 sco:0 events:45 errors:0
TX bytes:161 acl:0 sco:0 commands:25 errors:0
Features: 0xff 0xff 0x0b 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: SLAVE ACCEPT
Name: 'WINDOWS-2000'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)these devices are not brought up by hcid. Activate "autoinit" in hcid.conf and restart the hcid.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marcel" == Marcel Holtmann <[email protected]> writes:
Marcel> these devices are not brought up by hcid. Activate Marcel> "autoinit" in hcid.conf and restart the hcid.
Not sure here - here's the hcid.conf file (as it is - the only change I have made (ages back) is to pin_helper - this is redirected to a script that returns a fixed PIN). autoinit appears to be set already.
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.4 2004/04/29 20:14:21 holtmann Exp $ #
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# pin_helper /usr/bin/bluez-pin;
pin_helper /etc/bluetooth/bluepin
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp rswitch,hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
Signature · 13 lines
Chris Searle ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Marcel" == Marcel Holtmann <[email protected]> writes:
Marcel> these devices are not brought up by hcid. Activate Marcel> "autoinit" in hcid.conf and restart the hcid.
Still not getting any further. autoinit is already yes in the config file (see other post).
Some more info: on hcitool inq that both devices are reporting class 0x000000.
Manually restarting hcid makes no difference (same result as using the /etc/init.d script). Stopping all other bluez things (sdp, dund etc) then just starting hcid - no change.
Not sure how to follow this further.
Signature · 13 lines
Chris Searle ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Chris,
Quoted 11 lines
Still not getting any further. autoinit is already yes in the config file (see other post).
Some more info: on hcitool inq that both devices are reporting class
0x000000.Manually restarting hcid makes no difference (same result as using the
/etc/init.dscript). Stopping all other bluez things (sdp, dund etc) then just starting hcid - no change.Not sure how to follow this further.
what version of bluez-utils are you using? Try a newer or an older one and see if the problem still exists.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users