LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Bluetooth (https://www.linuxquestions.org/questions/linux-hardware-18/bluetooth-401670/)

mvo 01-10-2006 12:11 PM

Bluetooth
 
Hello,

on FC4 I want to use my USB MSI bluetooth dongle.
I have gnome-bluetooth and kde bluez installed.
When I insert the dongle, I can't see it in gnome-bluetooth.
I enabled bluetooth and kudzu with chkconfig...
I see in dmesg:

Dmesg says:
Bluetooth: Core ver 2.7
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.7
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM ver 1.5
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
but this is also in dmesg without connecting the dongle.

after connecting it adds:
usb 2-1: new full speed USB device using uhci_hcd and address 2
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new driver hci_usb

Where in my linux-system can I find clues about whether the dongle works and how to detect it?

Any help would be very appreciated.

Cheers, Marcel

cs-cam 01-11-2006 06:32 AM

That dmesg output is just the kernel initialising the Bluetooth subsystem, nothing to do with your dongle as you've obviously figured out ;)

Run this, it'll tell you if your dongle is recognised or not:
Code:

hcitool dev
hciconfig <- will give you more info re: networking side of it

If they both look okay then search for devices with this command:
Code:

hcitool scan
If all that works fine then you just need to configure whatever GUI system you wish to use. I can't help you with that sorry, I use CLI stuff with Bluetooth along with some bash and python scripts.

mvo 01-11-2006 01:45 PM

Hey!

Thank you so much for your help. That means a lot to me.
I did the commands and this is the output
[root@laptoppie marcel]# hcitool dev
Devices: hci0 00:02:72:C2:C1:C9
[root@laptoppie marcel]# hcitool scan
Scanning ...
[root@laptoppie marcel]#
hciconfig didn't work...(?) with command not found error, also not in /sbin (i use FC4)
And as can be seen 'hcitool scan' doesnt return more output than 'Scanning...'
The USB bluetooth is 'MSI' and a v1.2 version

Is there a way to get it working?

Marcel

cs-cam 01-11-2006 05:11 PM

It looks like it is being recognised okay, do you have any Bluetooth devices in range that are enabled for the dongle to find? Something like a laptop could easily have it's Bluetooth profile setup not to be found but if you have a phone or something it definitely shouldn't have much security enabled.

Can you 'locate hciconfig' and see if it's anywhere on your system? If it's not there, install all the bluez packages with yum. All you need to do now is confirm the computer can actually find devices and then once it's found them, ping their address to make sure it can open a connection okay :)

mvo 01-11-2006 06:21 PM

Things are looking indeed good, seems to be well recognized (the dongle) as I have following output:
[root@laptoppie marcel]# /usr/sbin/hciconfig
hci0: Type: USB
BD Address: 00:02:72:C2:C1:C9 ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:1435 acl:0 sco:0 events:74 errors:0
TX bytes:377 acl:0 sco:0 commands:22 errors:0

[root@laptoppie marcel]# hcitool scan
Scanning ...
00:0A:94:9F:05:C7 BT Headset-F
Now the remaining challenge is to connect to the headset (for voip / skype) so I thought of
[root@laptoppie marcel]# hcitool cc 00:0A:94:9F:05:C7
Can't create connection: Connection timed out
[root@laptoppie marcel]# hcitool auth 00:0A:94:9F:05:C7
Not connected
Perhaps important matter: the headset needs a PIN identification. Can or need I to include this in the hcitool connect command (cc?) or will hcitool prompt for it?
As you can see, not yet operational/working, what is the catch?
How do I ping the headset to open a connection?
btw: I installed with yum libbluetooth-dev and other blue-packages...

Hope someone can help me out with this last step.

Thanks! Marcel

cs-cam 01-11-2006 06:52 PM

Looks great so far! You won't use hcitool to connect to the headset, being an audio device you'll need some special software. Here is a link to get you started, best of luck :) Post back if you have any problems.

anil_iyengar 02-10-2006 08:27 AM

Bluetooth
 
Quote:

Originally Posted by cs-cam
That dmesg output is just the kernel initialising the Bluetooth subsystem, nothing to do with your dongle as you've obviously figured out ;)

Run this, it'll tell you if your dongle is recognised or not:
Code:

hcitool dev
hciconfig <- will give you more info re: networking side of it

If they both look okay then search for devices with this command:
Code:

hcitool scan
If all that works fine then you just need to configure whatever GUI system you wish to use. I can't help you with that sorry, I use CLI stuff with Bluetooth along with some bash and python scripts.

Hi i have problem when i try to connect my mobile phone to the laptop.but after the scan it does show me the mobile phone with the address and even my phone shows as a unknow device on its bluetooth list....now on my phone it askes for a pass key i enter the passkey as "0000"...and i press ok and the laptop doesnt respond...

Can you tell me if m doin the rite thing?????????

Thanks....

cs-cam 02-10-2006 05:51 PM

You need to set the pin for the laptop in /etc/bluetooth/pin and then restart the Bluetooth service. Some distrobutions ship with an app that will popup when a device is trying to pair with the machine but not all. Once the pin is set to 0000 in the pin file then pairing shouldn't be a problem:)


All times are GMT -5. The time now is 12:00 PM.