Wird mein Bluetooth Stick nicht unterstützt ?

Spot

Spot

Waldgänger
Hallo !

Ich habe einen Bluetooth USB-Stick geschenkt bekommen.
Natürlich wollte ich ihn gleich in Betrieb nehmen.
Doch bislang hatte ich wenig erfolg...

Nachdem ich den Stick angeschlossen habe, zeigt mit "dmesg" folgendes:

Code:
usb 1-7: new full speed USB device using ohci_hcd and address 6
usb 1-7: configuration #1 chosen from 1 choice

Weiter ist dieser Eintrag vorhanden:

Code:
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new interface driver hci_usb

"hciconfig" zeigt leider folgendes: :(

Code:
hci0:	Type: USB
	BD Address: [B]00:00:00:00:00:00[/B] 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

Geladen für bluetooth sind folgende Module:

Code:
[B]l2cap                  20608  0 [/B]
ipv6                  248388  8 
nvidia               7813728  24 
agpgart                27352  1 nvidia
isofs                  31268  0 
zlib_inflate           16768  1 isofs
ppdev                   7556  0 
lp                      9220  0 
[B]hci_usb                13596  0 [/B]
[B]bluetooth              50916  2 l2cap,hci_usb[/B]
parport_pc             35172  1 
parport                31432  3 ppdev,lp,parport_pc
rtc_cmos                7584  0 
rtc_core               15496  1 rtc_cmos
rtc_lib                 2944  1 rtc_core
ppp_generic            23828  0 
emu10k1_gp              3200  0 
pcspkr                  2944  0 
k8temp                  4736  0 
i2c_nforce2             6016  0 
i2c_core               19328  2 nvidia,i2c_nforce2
sg                     26640  0 
evdev                   9344  3 
thermal                13084  0 
processor              29400  1 thermal
fan                     3844  0 
button                  6544  0 
battery                10756  0 
ac                      4612  0 
fuse                   42260  0 
snd_cmipci             31872  0 
snd_opl3_lib            8704  1 snd_cmipci
snd_mpu401_uart         7040  1 snd_cmipci
slhc                    5632  1 ppp_generic
snd_emu10k1           132928  2 
snd_util_mem            3840  1 snd_emu10k1
snd_hwdep               7300  2 snd_opl3_lib,snd_emu10k1
snd_seq_oss            29440  0 
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                47056  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            37024  0 
snd_mixer_oss          14464  1 snd_pcm_oss
forcedeth              45196  0 
snd_ens1371            21152  0 
gameport               11272  4 emu10k1_gp,snd_cmipci,snd_ens1371
snd_rawmidi            19104  3 snd_mpu401_uart,snd_emu10k1,snd_ens1371
snd_seq_device          6924  5 snd_opl3_lib,snd_emu10k1,snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec         95268  2 snd_emu10k1,snd_ens1371
ac97_bus                2176  1 snd_ac97_codec
snd_pcm                68996  5 snd_cmipci,snd_emu10k1,snd_pcm_oss,snd_ens1371,snd_ac97_codec
snd_timer              19204  4 snd_opl3_lib,snd_emu10k1,snd_seq,snd_pcm
snd                    44772  19 snd_cmipci,snd_opl3_lib,snd_mpu401_uart,snd_emu10k1,snd_hwdep,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
soundcore               6368  1 snd
snd_page_alloc          8072  2 snd_emu10k1,snd_pcm
[B]usbhid                 40896  0 
hid                    33920  1 usbhid
ff_memless              5128  1 usbhid[/B]
ext3                  121992  2 
jbd                    43412  1 ext3
mbcache                 6912  1 ext3
dm_crypt               11908  0 
dm_mod                 51652  1 dm_crypt
sd_mod                 22656  4 
sr_mod                 14884  0 
cdrom                  33824  1 sr_mod
ohci1394               28848  0 
ieee1394               79800  1 ohci1394
ehci_hcd               32524  0 
ohci_hcd               21380  0 
pata_acpi               5248  0 
[B]usbcore               125292  5 hci_usb,usbhid,ehci_hcd,ohci_hcd[/B]
sata_nv                22152  3 
ata_generic             5252  0 
pata_amd               10500  0 
libata                137712  4 pata_acpi,sata_nv,ata_generic,pata_amd

Code:
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 005: ID 1131:1001 [B]Integrated System Solution Corp. KY-BT100 Bluetooth Adapter[/B]
Bus 001 Device 003: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 001 Device 002: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 001 Device 001: ID 0000:0000

€ Laut dieser und dieser Seite geht der Adapter problemlos unter Linux

Gibt es noch Hoffnung das der Stick mit Linux zum laufen bringen kann ?
Kann ja nicht sein, das die BD-Adresse nur aus 0en besteht :(

Werden noch mehr Infos benötigt ?

MFG Nordmende :)
 
Verändert
Code:
hciconfig hci0 up
irgendwas?
 
Code:
[ich@Ich Gothic II]$ hciconfig hci0 up
Can't init device hci0: Permission denied (13)

In der Grupppe "tty" bin ich aber:

Code:
[ich@Ich Gothic II]$ groups ich
tty games video audio optical storage power vboxusers scanner users

€ Ich sollt's wohl mal als root ausführen :D

Code:
[root@Ich Gothic II]# hciconfig hci0 up
[root@Ich Gothic II]#

(Bitte nicht vom "Gothic II" stören lassen)

€ "hciconfig" spuckt was vernünftiges aus ! :)

Code:
[root@Ich Gothic II]# hciconfig
hci0:	Type: USB
	BD Address: 00:11:67:1B:F4:7E ACL MTU: 678:8 SCO MTU: 48:10
	UP RUNNING 
	RX bytes:348 acl:0 sco:0 events:11 errors:0
	TX bytes:38 acl:0 sco:0 commands:11 errors:0

€2

Das Handy wird auch gefunden !

Code:
[root@Ich Gothic II]# hcitool scan
Scanning ...
	00:1D:28:79:D8:A4	K810i
 
Zuletzt bearbeitet:
"ich" sollte das auch nicht dürfen ;)
Versuch's mal mit root-Rechten ...
 
Schon probiert ;)

Jetzt versuch ich mit Bluemote meinen PC per Handy fernzusteuern

€ Versuche mit dieser Anleitung mein Handy jetzt mit dem PC zu verbinden.
Mein PC will ich dann mit anyRemote fernsteuern (anyRemote und anyRemote2html sind installiert)
Doch es funktioniert nicht :(

Die Kommandos

Code:
$ /etc/init.d/hcid start
$ /etc/init.d/bluez-utils start

gibt es bei mir nicht....(nutze ArchLinux)

Hier mal meine confi-Dateien aus /etc/bluetooth

hcid.conf

Code:
#
# HCI daemon configuration file.
#

# 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 none;

	# Pairing mode
	#   none  - Pairing disabled
	#   multi - Allow pairing with already paired devices
	#   once  - Pair once and deny successive attempts
	pairing multi;

	# Default PIN code for incoming connections
	passkey "1234";
}

# Default settings for HCI devices
device {
	# Local device name
	#   %d - device id
	#   %h - host name
	name "K810i (%d)";

	# Local device class
	class 0x000100;

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

	# Default link policy
	#   none    - no specific policy
	#   rswitch - allow role switch
	#   hold    - allow hold mode
	#   sniff   - allow sniff mode
	#   park    - allow park mode
	lp rswitch,hold,sniff,park;
}

rfcomm.conf

Code:
#
# RFCOMM configuration file.
#

rfcomm0 {
#	# Automatically bind the device at startup
	bind yes;
#
#	# Bluetooth address of the device
#	device 11:22:33:44:55:66;
device 00:11:67:1B:F4:7E;
#
#	# RFCOMM channel for the connection
	channel	2;
#
#	# Description of the connection
	comment "blablabla";
}

in dem Ordner /etc/rd.d gibt es bei mir ein Bluetooth Script mit folgendem Inhalt:

Code:
#!/bin/sh
#
# Start/stop the Bluetooth daemons
#

. /etc/rc.conf
. /etc/rc.d/functions

DAEMON_NAME="hcid"
HID2HCI_NAME="hid2hci"
SDPD_NAME="sdpd"
HIDD_NAME="hidd"
RFCOMM_NAME="rfcomm"
PAND_NAME="pand"
DUND_NAME="dund"

DAEMON_EXEC="/usr/sbin/hcid"
HID2HCI_EXEC="/usr/sbin/hid2hci"
SDPD_EXEC="/usr/sbin/sdpd"
HIDD_EXEC="/usr/bin/hidd"
RFCOMM_EXEC="/usr/bin/rfcomm"
PAND_EXEC="/usr/bin/pand"
DUND_EXEC="/usr/bin/dund"

DAEMON_ENABLE="true"
HID2HCI_ENABLE="true"
SDPD_ENABLE="true"
HIDD_ENABLE="true"
RFCOMM_ENABLE="false"
DUND_ENABLE="false"
PAND_ENABLE="false"

DAEMON_CONFIG="/etc/bluetooth/hcid.conf"
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

HIDD_OPTIONS=""
DUND_OPTIONS=""
PAND_OPTIONS=""

[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth

case "$1" in
  start)
    stat_busy "Starting bluetooth subsystem:"
    if [ "$DAEMON_ENABLE" = "true" -a -x "$DAEMON_EXEC" -a -f "$DAEMON_CONFIG" ] ; then
      stat_append " $DAEMON_NAME"
      if [ "$SDPD_ENABLE" = "true" ]; then
        $DAEMON_EXEC -f $DAEMON_CONFIG
      else
        $DAEMON_EXEC -s -f $DAEMON_CONFIG
      fi
    fi
    if [ "$HID2HCI_ENABLE" = "true" -a -x "$HID2HCI_EXEC" ] ; then
      stat_append " $HID2HCI_NAME"
      $HID2HCI_EXEC --tohci > /dev/null 2>&1 || true
    fi
    if [ "$SDPD_ENABLE" = "true" -a -x "$SDPD_EXEC" ] ; then
      stat_append " $SDPD_NAME"
      $SDPD_EXEC
    fi
    if [ "$HIDD_ENABLE" = "true" -a -x "$HIDD_EXEC" ]; then
      stat_append " $HIDD_NAME"
      $HIDD_EXEC $HIDD_OPTIONS --server
    fi
    if [ "$RFCOMM_ENABLE" = "true" -a -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ]; then
      stat_append " $RFCOMM_NAME"
      $RFCOMM_EXEC -f $RFCOMM_CONFIG bind all
    fi
    if [ "$DUND_ENABLE" = "true" -a -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ]; then
      stat_append " $DUND_NAME"
      $DUND_EXEC $DUND_OPTIONS
    fi
    if [ "$PAND_ENABLE" = "true" -a -x "$PAND_EXEC" -a -n "$PAND_OPTIONS" ]; then
      stat_append " $PAND_NAME"
      $PAND_EXEC $PAND_OPTIONS
    fi
    add_daemon bluetooth
    stat_done
    ;;
  stop)
    stat_busy "Stopping bluetooth subsystem:"

    stat_append " $PAND_NAME"
    killall $PAND_NAME >/dev/null 2>&1

    stat_append " $DUND_NAME"
    killall $DUND_NAME >/dev/null 2>&1

    if [ -x "$RFCOMM_EXEC" ]; then
      stat_append " $RFCOMM_NAME"
      $RFCOMM_EXEC release all >/dev/null 2>&1
    fi

    stat_append " $HIDD_NAME"
    killall $HIDD_NAME >/dev/null 2>&1

    stat_append " $SDPD_NAME"
    killall $SDPD_NAME >/dev/null 2>&1

    stat_append " $DAEMON_NAME"
    killall $DAEMON_NAME >/dev/null 2>&1

    rm_daemon bluetooth
    stat_done
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0

Wie schaffe ich es jetzt, meinen PC mit meinem Handy zu koppeln ?
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

So habe nun große Fortschritte gemacht !:

Der Bluetooth Manager "Blueman" funktioniert jetzt richtig:
Kann die "Abfrage" starten und das Handy wird auch gefunden.
Koppeln klappt auch und Dateien aufs Handy (K810i) schicken klappt auch :)

Als Programm zur Fernsteuerung nutze ich "anyremote".
Dies ist auf dem Handy installiert.
Auf dem PC nutze ich aber kanyremote, ein anyremote mit gui.

Ich habe es schon erfolgreich geschafft, xine fernzusteuern.
Bei Amarok hats leider nicht so gut geklappt.

Ich probier noch ein bisschen rum ;)

Hier nochmal ein paar Datei-Ausgaben:

hcid.conf

Code:
#
# HCI daemon configuration file.
#

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

	# Default PIN code for incoming connections
	passkey "0000";
}

# Default settings for HCI devices
device {
	# Local device name
	#   %d - device id
	#   %h - host name
	name "PC";

	# Local device class
	class 0x000100;

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

	# Default link policy
	#   none    - no specific policy
	#   rswitch - allow role switch
	#   hold    - allow hold mode
	#   sniff   - allow sniff mode
	#   park    - allow park mode
	lp rswitch,hold,sniff,park;
}

rfcomm.conf

Code:
#
# RFCOMM configuration file.
#

rfcomm0 {
#	# Automatically bind the device at startup
	bind yes;
#
#	# Bluetooth address of the device
#	device 11:22:33:44:55:66;
#device 00:11:67:1B:F4:7E;stick
device 00:1D:28:79:D8:A4;
#
#	# RFCOMM channel for the connection
	channel	2;
#
#	# Description of the connection
	comment "blablabla";
}

/etc/rc.d/bluetooth

Code:
#!/bin/sh
#
# Start/stop the Bluetooth daemons
#

. /etc/rc.conf
. /etc/rc.d/functions

DAEMON_NAME="hcid"
HID2HCI_NAME="hid2hci"
SDPD_NAME="sdpd"
HIDD_NAME="hidd"
RFCOMM_NAME="rfcomm"
PAND_NAME="pand"
DUND_NAME="dund"

DAEMON_EXEC="/usr/sbin/hcid"
HID2HCI_EXEC="/usr/sbin/hid2hci"
SDPD_EXEC="/usr/sbin/sdpd"
HIDD_EXEC="/usr/bin/hidd"
RFCOMM_EXEC="/usr/bin/rfcomm"
PAND_EXEC="/usr/bin/pand"
DUND_EXEC="/usr/bin/dund"

DAEMON_ENABLE="true"
HID2HCI_ENABLE="true"
SDPD_ENABLE="true"
HIDD_ENABLE="true"
RFCOMM_ENABLE="false"
DUND_ENABLE="false"
PAND_ENABLE="false"

DAEMON_CONFIG="/etc/bluetooth/hcid.conf"
RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

HIDD_OPTIONS=""
DUND_OPTIONS=""
PAND_OPTIONS=""

[ -f /etc/conf.d/bluetooth ] && . /etc/conf.d/bluetooth

case "$1" in
  start)
    stat_busy "Starting bluetooth subsystem:"
    if [ "$DAEMON_ENABLE" = "true" -a -x "$DAEMON_EXEC" -a -f "$DAEMON_CONFIG" ] ; then
      stat_append " $DAEMON_NAME"
      if [ "$SDPD_ENABLE" = "true" ]; then
        $DAEMON_EXEC -f $DAEMON_CONFIG
      else
        $DAEMON_EXEC -s -f $DAEMON_CONFIG
      fi
    fi
    if [ "$HID2HCI_ENABLE" = "true" -a -x "$HID2HCI_EXEC" ] ; then
      stat_append " $HID2HCI_NAME"
      $HID2HCI_EXEC --tohci > /dev/null 2>&1 || true
    fi
    if [ "$SDPD_ENABLE" = "true" -a -x "$SDPD_EXEC" ] ; then
      stat_append " $SDPD_NAME"
      $SDPD_EXEC
    fi
    if [ "$HIDD_ENABLE" = "true" -a -x "$HIDD_EXEC" ]; then
      stat_append " $HIDD_NAME"
      $HIDD_EXEC $HIDD_OPTIONS --server
    fi
    if [ "$RFCOMM_ENABLE" = "true" -a -x "$RFCOMM_EXEC" -a -f "$RFCOMM_CONFIG" ]; then
      stat_append " $RFCOMM_NAME"
      $RFCOMM_EXEC -f $RFCOMM_CONFIG bind all
    fi
    if [ "$DUND_ENABLE" = "true" -a -x "$DUND_EXEC" -a -n "$DUND_OPTIONS" ]; then
      stat_append " $DUND_NAME"
      $DUND_EXEC $DUND_OPTIONS
    fi
    if [ "$PAND_ENABLE" = "true" -a -x "$PAND_EXEC" -a -n "$PAND_OPTIONS" ]; then
      stat_append " $PAND_NAME"
      $PAND_EXEC $PAND_OPTIONS
    fi
    add_daemon bluetooth
    stat_done
    ;;
  stop)
    stat_busy "Stopping bluetooth subsystem:"

    stat_append " $PAND_NAME"
    killall $PAND_NAME >/dev/null 2>&1

    stat_append " $DUND_NAME"
    killall $DUND_NAME >/dev/null 2>&1

    if [ -x "$RFCOMM_EXEC" ]; then
      stat_append " $RFCOMM_NAME"
      $RFCOMM_EXEC release all >/dev/null 2>&1
    fi

    stat_append " $HIDD_NAME"
    killall $HIDD_NAME >/dev/null 2>&1

    stat_append " $SDPD_NAME"
    killall $SDPD_NAME >/dev/null 2>&1

    stat_append " $DAEMON_NAME"
    killall $DAEMON_NAME >/dev/null 2>&1

    rm_daemon bluetooth
    stat_done
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0

Zum start muss ich immer folgendes mache, damit die Bluetooth-Verbindung funktioniert:

Code:
[root@Ich ich]# hciconfig hci0 up
[root@Ich ich]# /etc/rc.d/bluetooth restart
:: Stopping bluetooth subsystem:  pand dund rfcomm hidd sdpd hcid        [DONE] 
:: Starting bluetooth subsystem:  hcid hid2hci sdpd hidd rfcomm          [DONE]
 
Zuletzt bearbeitet:
Es klappt !!! :)

Hab mir ein kleines Skript gebastelt welches ich nach dem start ausführe:

Code:
hciconfig hci0 up &
/etc/rc.d/bluetooth start &
blueman

Damit funktioniert Bluetooth und zugleich startet Blueman.
Ich führe dann ein beliebiges Programm, z.b. Amarok aus, und starte dann kanyremote.
Im Handy starte ich dann ebenfalls die Anwendung "anyremote" welche dann automatisch das richtige Profil, hier amarok auswählt.

Auf dem Handy kann ich dann wie auf dem PC z.b. Amarok steuern:)

Jetzt teste ich weitere Programme ;)
 
Aber ohne deinen Tipp wäre ich keinen Schritt weit gekommen ;)

Danke dafür :) ;)
 

Ähnliche Themen

Ethernet wird nicht erkannt

UMTS Stick für Dauerbetrieb

Rollei Mini Wifi Camcorder

OpenSuse 12.3 / Tiefschlaf funktioniert nicht

LIDL-Surf-Stick Huawei E 1550 an CentOs 6.2

Zurück
Oben