PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Wird mein Bluetooth Stick nicht unterstützt ?



Nordmende
15.02.08, 22:02
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:


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:


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


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

Geladen für bluetooth sind folgende Module:


l2cap 20608 0
ipv6 248388 8
nvidia 7813728 24
agpgart 27352 1 nvidia
isofs 31268 0
zlib_inflate 16768 1 isofs
ppdev 7556 0
lp 9220 0
hci_usb 13596 0
bluetooth 50916 2 l2cap,hci_usb
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_r awmidi
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_emu10k 1,snd_hwdep,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mi xer_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
usbhid 40896 0
hid 33920 1 usbhid
ff_memless 5128 1 usbhid
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
usbcore 125292 5 hci_usb,usbhid,ehci_hcd,ohci_hcd
sata_nv 22152 3
ata_generic 5252 0
pata_amd 10500 0
libata 137712 4 pata_acpi,sata_nv,ata_generic,pata_amd

€ "lsusb"


Bus 002 Device 001: ID 0000:0000
Bus 001 Device 005: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
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 (http://de.opensuse.org/HKL/Bluetooth) und dieser (http://wiki.ubuntu-forum.de/index.php/Whitelist) 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 :)

Nordmende
16.02.08, 19:18
Bin dank des Befehls


hciconfig hci0 up

weiter gekommen !

Jetzt spucken folgende Befehle folgendes aus:


[ich@Ich ~]$ hcitool scan
Scanning ...
00:1D:28:79:D8:A4 K810i


[ich@Ich ~]$ hciconfig -a
hci0: Type: USB
BD Address: 00:11:67:1B:F4:7E ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN ISCAN
RX bytes:4105 acl:9 sco:0 events:78 errors:0
TX bytes:950 acl:8 sco:0 commands:50 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'K810i (0)'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.2 (0x2) HCI Rev: 0x1f4 LMP Ver: 1.2 (0x2) LMP Subver: 0x1f4
Manufacturer: Integrated System Solution Corp. (57)


Versuche mit dieser (http://www.jochen-lillich.de/article/bluetooth-unter-linux) 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



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


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


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


#!/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 dem Handy zu koppeln ?

Rain_maker
16.02.08, 19:29
FYI:

http://www.unixboard.de/vb3/showthread.php?t=35925

Nordmende
16.02.08, 20:12
Wieso verlinkst du in ein anderes Forum wo ich ein gleiches Thema eröffnet habe ?

FYI: Ich stelle die Fragen immer in mehreren Forum, um einfach die Wahrscheinlichkeit Hilfe zu bekommen, zu erhöhen.

buzz768
16.02.08, 21:10
In rfcomm.conf solltest du die Adresse das Mobiltelefons angeben, also 00:1D:28:79:D8:A4. Bluetooth startest du mit /etc/rc.d/bluetooth start. Schau vorher mal in /etc/conf.d/bluetooth hinein, evtl. musst du da einige Dienste aktivieren, z.B.


RFCOMM_ENABLE="true"

Nordmende
16.02.08, 21:33
Die Adresse ist in der rfcomm.conf doch angegeben ;)

Die /etc/conf.d/bluetooth habe ich jetzt entsprechend editiert:

Sollte ich vll. noch andere Sachen auf "true" setzen ?


# Bluetooth configuraton file

# Bluetooth services (allowed values are "true" and "false")

# Run the hcid daemon (default: true)
DAEMON_ENABLE="true"

# Run hid2hci (default: false)
#HID2HCI_ENABLE="false"

# Run the sdp daemon (default: false)
# If this is disabled, hcid's internal sdp daemon will be used
#SDPD_ENABLE="false"

# Run the bluetooth HID daemon (default: false)
#HIDD_ENABLE="false"

# Activate rfcomm ports (default: false)
RFCOMM_ENABLE="true"

# Run bluetooth dial-up networking daemon (default: false)
DUND_ENABLE="false"

# Run bluetooth PAN daemon (default: false)
#PAND_ENABLE="false"

# hcid configuration file (default: /etc/bluetooth/hcid.conf)
#DAEMON_CONFIG="/etc/bluetooth/hcid.conf"

# rfcomm configuration file (default: /etc/bluetooth/rfcomm.conf)
#RFCOMM_CONFIG="/etc/bluetooth/rfcomm.conf"

# Options for hidd, dund and pand (default: none)
#HIDD_OPTIONS=""
#DUND_OPTIONS=""
#PAND_OPTIONS=""


Probiere dann gleich mal obs geht

Nordmende
16.02.08, 21:53
Bin weitergekommen.

Auf einmal funktioniert der Bluetooth Manager 0.3 (Blueman).
Ich hab dann mal versucht, ein Bild vom PC mittels Blueman aufs Handy zu schicken.
Hat geklappt ! Ich konnt mir das Bild dann auf dem Handy anschauen :)

Nur eines klappt nicht:
Ich kann das Handy nicht durchsuchen und ich kann es nicht mit dem PC koppeln :(

Habe ich vll. den falschen Kanal ausgewählt ?

Hier mal ein paar Bilder:

http://www.abload.de/img/2008-02-16-223719_96b2a.png (http://www.abload.de/image.php?img=2008-02-16-223719_96b2a.png)

Das kommt, wenn ich auf "Durchsuchen" klicke:

http://www.abload.de/img/2008-02-16-223848_32xac.png (http://www.abload.de/image.php?img=2008-02-16-223848_32xac.png)

Hier ein paar Infos übers Gerät mittels Blueman:

http://www.abload.de/img/2008-02-16-224051_368z0.png (http://www.abload.de/image.php?img=2008-02-16-224051_368z0.png)

http://www.abload.de/img/2008-02-16-224054_362v8.png (http://www.abload.de/image.php?img=2008-02-16-224054_362v8.png)

http://www.abload.de/img/2008-02-16-224101_362k5.png (http://www.abload.de/image.php?img=2008-02-16-224101_362k5.png)

In meinem Handy (K810i) wird unter verbundene Geräte folgendes angezeigt: K810i (0)

€ Habe jetzt mal in der rfcomm.conf diese Adresse: 00:1D:28:79:D8:A4 eingetragen.
Blueman zeigt mir, das dies die BD-Adresse meines Handy's sei. Die oben in der rfcomm.conf angezeigte BD-Adresse soll die vom Stick sein.

Mit der neuen Adresse kann ich mit meinem Handy nach dem PC suchen und finde ihn auch.
Nur koppeln kann ich die Geräte nicht. Immer stimmt die Kennung nicht :(

Doch kp wie die sein soll...... 0000, 1234, 1111 ?
Wo steht die Kennung vom Handy ? Ist es die PIN die ich in der hcid.conf festlege ?

€ Mit der neuen BD-Adresse kann ich ebenfalls erfolgreich eine Datei aufs Handy schicken, nur das koppeln klappt wie gesagt nicht :(

Rain_maker
16.02.08, 22:19
Wieso verlinkst du in ein anderes Forum wo ich ein gleiches Thema eröffnet habe ?

Gegenfrage, wieso machst Du es eigentlich nie?

So etwas sollte eigentlich eine Selbstverständlichkeit sein.

FYI:

Mehrere Helferteams ohne Querverweise arbeiten zu lassen ist eine Beleidigung des Communitygedankens.

Nordmende
16.02.08, 23:16
Normalerweise halte ich die verschiedenen Foren auch auf dem aktuellen Stand ! ;)

Nur weil ich gerade so große Fortschritte mache, bin ich nicht zu gekommen ;)

Habe es geschaft, mit meinem Handy Xine fernzusteuern und bei amarok hats teilweise nicht so gut geklappt :(

Ich probier nochmal rum, währenddessen hiefe ich die anderen Foren auf den aktuellen Stand ;)

€ Es klappt !!! :)

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


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

Nordmende
17.02.08, 22:31
Na geil, heute geht kanyremote auf einmal nicht...........


[ich@Ich Server-mode]$ kanyremote
Use port 5050
Debug No
kanyremote: Fatal IO error: client killed


Geht wieder, nutze jetzt nicht mehr kanyremote (mit kde gui), sondern anyremote (konsole)